Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Bug report

(you are viewing a thread; or go back to list of threads)

Bug report (by Max)
Hello Jonathan!

I found a problem with this device

PIC 16F88, 20 MHZ crystal @ 2ms cycle time, running (EOLIENNE4.LD)
using Ldmicro 2.2, JDM programmer and IC-Prog or Winpic800

My digital output (YPOWER) could only be programmed if I use pin #1 or pin #13 on the MCU.. If I use any other pins when programming, I receive the following message from IC-Prog

( Verify failed at address 0000h )

If I try to read the data from the PIC, the fuse setting are totally messed up

I have also tried with WINPIC800 and I got an error message when I verifying the programme…

( Error – Verifying address 0X002007 Verified: 0X3F42 Read: 0X3FFF )

Any idea…


Thanks
Thu Nov 18 2010, 00:31:01, download attachment EOLIENNE4.ld
(no subject) (by Jonathan Westhues)
No matter what code LDmicro generates, your programming tool should be able to write it to the PIC. So my first guess is that the problem is with your programming setup, not with LDmicro. (Of course, if LDmicro generates bad code, then your program won't work; but you're not getting even that far.)

My guess is that the issue relates to your use of the in-system programming pins. Is there anything attached to those beyond the programming header? The answer seems to be yes, since you indicate that you've put YPOWER on pin 13, PGD, but what?

In general, I'd recommend not using the programming pins unless you've run out of others, and using those only as outputs, driving small loads (>10k impedance, say). But that doesn't immediately explain the problem here.
Thu Nov 18 2010, 00:47:35
(no subject) (by Max)
-The code completely write to the PIC only the compare fail
-I don't use the in circuit programming (ICSP)
-(YPOWER) is on pin #10... not 13
-This is my pin out

#1 = Digital IN (Proximity switch)
#2 = Digital IN (Priximity switch)
#5 = Vss
#8 = RX 19200
#10= Digital out (Status led)
#11= TX 19200
#14= Vdd
#15= Xtal
#16= Xtal
#17= Analog IN (Voltage input)
#18= Analog IN (Current input)

ICSP for the pic 16F88 is the following pins

#4 = MCRL
#12= PGC
#13= PGD

So I'm not using any of the ICSP pins...
Thu Nov 18 2010, 10:36:14
(no subject) (by Jonathan Westhues)
I don't have any good suggestions. As far as I know, no matter what goes in the hex file, the programmer should always be able to write it to the PIC. So my inclination would be to say that there's some issue with the programming setup, but I have no idea why it depends on the pin assignment.

I don't have the hardware to test this myself. But if someone does, then it would be interesting to know whether everything works with an official programmer (e.g., the PICkit 2).
Thu Nov 18 2010, 10:42:51
(no subject) (by Max)
Thanks for your reply!

If anyone have an official programmer and a PIC16F88, please try to programme to following HEX and post the result of the comparison

Thanks
Thu Nov 18 2010, 13:54:05, download attachment EOLIENNE4.hex
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):