Sorry for another email. I have received modified version of Jan's makefile. The compilation and build process is solved. However, I am encountering the same problem as I have experienced before, and that is the PIC18F2620 doesn't execute the operation of blinking the LEDs automatically right after external power is applied. I'm thinking of trying the same code (except for some fusebits/hardware tweaks on a PIC16F877A, PIC16F688, PIC16F690, or PIC16F628. Any suggestions if this thought is a feasible alternative to sideline the development?
I have sent Jan a copy of the Makefile and source code. I will be testing modified version of the source code and Makefile on a PIC16F877a to see if anything different would result. Please feel free to ask me for the files if you're interested.
StanleyOn 10/5/07, email@example.com <firstname.lastname@example.org > wrote:Stanley Lee schrieb:
The above places for sdcc, gputils etc. look good.
> Anyway, there is one strange thing that I have found. I have modified
> jan's template as shown in the attached zip file and still got the
> following error message:
> [error message start]
> prak@prak-laptop:/media/sda5/LED_toggle$ make
What did you change in the Makefile looks like you exchanged sdcc to
gplink in the
LNK = $(TOOLSDIR)/bin/sdcc
line. Did you?
Use sdcc to link your files not gplink direclty. sdcc will use gplink
with the correct paths/options etc.
> However, when I have modified another Makefile and code similar to the
> one Xiaofan's last reply suggested, I manage to get a hex file created
> in the end. However, it had the same behaviour as the one I have made
> with piklab, which is my code doesn't automatically execute whenever I
> apply an external power supply. It only executes when I plug in my
> PICKIT2 after instructing PICKIT2 to be on with the command "pk2 -on".
> I'm beginning to suspect that this is a hardware problem, perhaps with
> the power on timer and the brown out register.
Please, if possible, send me
1. Your code
2. the Makefile
I will check it on a pic18f2320 on my boards here.
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