View previous topic :: View next topic |
Author |
Message |
Pota78
Joined: 09 Sep 2005 Posts: 16
|
Bootloader for a 18f4520 |
Posted: Thu Nov 10, 2005 3:12 am |
|
|
Hi everyone, I read many post about Bootloaders but I'm not able to find a simple bootloader for the 18f4520...
Every bootloader I found is for 18f452 and I'm not sure the code is portable to his 0 friend...
I tried the tinybootloader but I was not able to make it work...
Have you ever used a bootloader with this pic?
what did you use? Thank you very much |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
Re: Bootloader for a 18f4520 |
Posted: Thu Nov 10, 2005 3:28 am |
|
|
Pota78 wrote: | Hi everyone, I read many post about Bootloaders but I'm not able to find a simple bootloader for the 18f4520...
Every bootloader I found is for 18f452 and I'm not sure the code is portable to his 0 friend...
I tried the tinybootloader but I was not able to make it work...
Have you ever used a bootloader with this pic?
what did you use? Thank you very much |
The fuses are different. Yes I have used a bootloader with this PIC - it was my own. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
Pota78
Joined: 09 Sep 2005 Posts: 16
|
|
Posted: Thu Nov 10, 2005 3:39 am |
|
|
From which code have you started from? If I ask you to send me your code I have not many possibilities that you send it to me, right?
By the way, what program did you use to send the hex file to the pic? hyperterminal?
Thank you very much,
Andrea |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Thu Nov 10, 2005 3:56 am |
|
|
I wrote my own code in assembler however it is possible for you to modify the bootloader code provided by CCS for this PIC.
I use my own application to upload, download, erase target devices. I sell my bootloaders so sorry but no I cannot send it to you but I am sure someone can point you to a free bootloader if you do not want to modify the CCS bootloader yourself. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
Pota78
Joined: 09 Sep 2005 Posts: 16
|
|
Posted: Thu Nov 10, 2005 4:11 am |
|
|
Thank you very much... so, is there anyone else who could suggest me a working (and free) Bootloader for pic18f4520?
Andrew, my name is Andrea, the italian translation of Andrew, we have the same name... sure that you cannot send me just a little portion of the code?
Naturally i'm joking, thank you very much
Andrea |
|
|
Pota78
Joined: 09 Sep 2005 Posts: 16
|
|
Posted: Thu Nov 10, 2005 4:13 am |
|
|
I'm still here...
In the CCS bootloader I find this comment after the #use rs232 directive:
Code: | //Jumpers: 8 to 11, 7 to 12 |
what does it mean? |
|
|
Guest
|
|
Posted: Thu Nov 10, 2005 8:59 am |
|
|
Pota78 wrote: | Thank you very much... so, is there anyone else who could suggest me a working (and free) Bootloader for pic18f4520?
|
andrea,
the following bootloader should either work directly or with only trivial modifications...
http://www.microchipc.com/PIC18bootload/
jds-pic |
|
|
Pota78
Joined: 09 Sep 2005 Posts: 16
|
|
Posted: Thu Nov 10, 2005 12:01 pm |
|
|
Thank you, but I found the error in my customization of the tiny bootloader and now it works great
Thank you very much
Andrea |
|
|
Guest
|
|
Posted: Thu Nov 10, 2005 5:39 pm |
|
|
What did you customize to get it to work?
Thanks
Pota78 wrote: | Thank you, but I found the error in my customization of the tiny bootloader and now it works great
Thank you very much
Andrea |
|
|
|
Pota78
Joined: 09 Sep 2005 Posts: 16
|
|
Posted: Fri Nov 11, 2005 8:54 am |
|
|
I have choosen the right pic after the LIST directive (18f4520)
I have written the right oscillator frequency (in my case 8000000)
I have deleted the __config directives and I have re-written them without using the CONFIGXX words (Config1h etc.)
Ex:
Code: | config ieso=off, OSC = HS,BOREN = ON Etc... |
I set the baud rate to 57600 first (not very stable) and to 38400 then...
And that's all, I 've used mpasm to assemble...
To use tiny bootloader I use the reset pin (as described on tiny website).
It's working great now |
|
|
|