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

18F2550 Bootloader

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



Joined: 13 Jan 2018
Posts: 23
Location: Tun

View user's profile Send private message Visit poster's website

18F2550 Bootloader
PostPosted: Wed May 16, 2018 8:40 am     Reply with quote

Hello ...
Can anybody provide me with a bootloader for MCU 18F2550 compatible with Pic c ccs software ??!
If not, how can i burn the hex file to the MCU without Pickit ?
Thank you
temtronic



Joined: 01 Jul 2010
Posts: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed May 16, 2018 10:11 am     Reply with quote

CCS probably has a bootloader in the examples folder and searching this and the code library forum should get some hits....
As for burning a PIC without a PICkit, there are several 'homemade' burners using ICSP pins but I've seen Pickit3s sell for maybe $25USD. A proper burner should always work...homemade ,well a minor wiring error could cost you a week's work finding the fault....
Jay
eng.mohamedtoumi



Joined: 13 Jan 2018
Posts: 23
Location: Tun

View user's profile Send private message Visit poster's website

PostPosted: Wed May 16, 2018 10:14 am     Reply with quote

Confused Confused
is there is any way to program 18F2550 Via Usb without any burner ... ?!
temtronic



Joined: 01 Jul 2010
Posts: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed May 16, 2018 10:45 am     Reply with quote

No. As shipped all PICs have NOTHING in their memory. You need at the very least to 'burn' in a 'bootloader', in order to then 'download' your real program. A bootloader is typically accessed via the HW UART or the HW USB peripheral within the PIC. Once the bootloader is resident , you need to press a button to initiate the programming of the PIC with your program.
I'm not aware of any PICs that have a bootloader preinstalled.

Jay
eng.mohamedtoumi



Joined: 13 Jan 2018
Posts: 23
Location: Tun

View user's profile Send private message Visit poster's website

PostPosted: Wed May 16, 2018 11:01 am     Reply with quote

okey thanks for your reply ...
So now i will burn i have to burn a bootloader to my 18F2550 ...
as i ve seen burning bootloader need a 4MHz external crystal ... while in my project i'm using the 8Mhz internal oscillator ... can i run the code (writen with 8Mhz internal oscillator) and burn it to a Mcu with 4Mhz external oscillator
??
Thanks
Ttelmah



Joined: 11 Mar 2010
Posts: 19545

View user's profile Send private message

PostPosted: Wed May 16, 2018 11:38 am     Reply with quote

No. You can use your crystal. You just have to code the bootloader to match your oscillator configuration.
However if you are using the internal oscillator you cannot use USB, so your bootloader will have to be serial not USB.
You doe reaslise the 18Fx550, needs a crystal that is a multiple of 4MHz, to do USB?.
temtronic



Joined: 01 Jul 2010
Posts: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed May 16, 2018 11:55 am     Reply with quote

Mr T's right , of course. What I do with 2550 /4550 projects is printout the 'clock diagram' fig 2-1 to decide how to design/code for clock. It's easy to see that you need a real or external xtal to use USB.
You can use your 8MHz xtal as there's a divider available to make 4MHz that then feeds the PLL for USB clock.

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19545

View user's profile Send private message

PostPosted: Wed May 16, 2018 1:08 pm     Reply with quote

He says: " i'm using the 8Mhz internal oscillator ".
Problem is this won't support USB. OK for serial, but pointless for a USB chip....
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