On Dienstag, 24. Juli 2007, Robert Bergfors wrote:
> Hello,
>
> I have recently moved to SDCC and even more recently started using PIC18*,
> more specifically 18f2550. I have two problems that I canät seem to figure
> out;
>
> 1. Whenever power is applied, the device seems to start up in a random
> state and doesn't seem to start running the program. Programming the
> device seems so make the device do *something*, but that seems quite
> random as well, at different times, flashing the device with the exacttly
> same hef file seems to do different things each time.
> I program the device while it is in the circuit, the ICSP lines are
> dedicated to programming, and a standard ASCII LCD is attatched in 4-bit
> mode.
>

It looks to me like you scramble the flash contents while uploading it.

Some ideas where to start looking:

Did you try to re-read the flash contents of the pic and compared them with 
the original hex?

the ICSP Lines have to be very short or shielded.

try to flash at a lower speed.

if you're using a home-brew ParallelPort programmer, use a very short cable to 
connect it (I'm using a 30cm cable, everything longer only works at extremly 
low speed). 

check if the programming voltage is stable and not to low/high.

/Ernst

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to