Stanley Lee wrote:
> Hi Jan,
> 
> I'm using a PICKIT 2 from Microchip. Using Jeff's pk2 command line
> program to flash my code into the program memory. Already contacted
> pickit-pro development mailing list and himself.

That could be the source of your problem. If i understand this correct
in the pk2.cfg there is a Mask defined for each pic type which is anded
 to your configuration bits given in the hex file.
The Mask for the pic18f looks ok to me compared with the config register
in the datasheet (chapter 23.1).

Try to read out the hex file after programming it to the pic and compare
the config bits.

Then try to programm your pic with
piklab-prog --programmer=pickit2 --device=18f2620 --command=program
LED_toggle.hex

jan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to