CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Bootloader for a 18f4520

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Pota78



Joined: 09 Sep 2005
Posts: 16

View user's profile Send private message

Bootloader for a 18f4520
PostPosted: Thu Nov 10, 2005 3:12 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

Re: Bootloader for a 18f4520
PostPosted: Thu Nov 10, 2005 3:28 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Nov 10, 2005 3:39 am     Reply with quote

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? Smile

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Nov 10, 2005 3:56 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Nov 10, 2005 4:11 am     Reply with quote

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? Smile

Naturally i'm joking, thank you very much Smile
Andrea
Pota78



Joined: 09 Sep 2005
Posts: 16

View user's profile Send private message

PostPosted: Thu Nov 10, 2005 4:13 am     Reply with quote

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








PostPosted: Thu Nov 10, 2005 8:59 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Nov 10, 2005 12:01 pm     Reply with quote

Thank you, but I found the error in my customization of the tiny bootloader and now it works great Smile

Thank you very much
Andrea
Guest








PostPosted: Thu Nov 10, 2005 5:39 pm     Reply with quote

What did you customize to get it to work? Question

Thanks
Very Happy


Pota78 wrote:
Thank you, but I found the error in my customization of the tiny bootloader and now it works great Smile

Thank you very much
Andrea
Pota78



Joined: 09 Sep 2005
Posts: 16

View user's profile Send private message

PostPosted: Fri Nov 11, 2005 8:54 am     Reply with quote

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 Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group