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 support@ccsinfo.com

Bootloader? What is that for?!!

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



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

Bootloader? What is that for?!!
PostPosted: Sat Mar 02, 2013 9:06 am     Reply with quote

Hello guys!
I am not a professional ccs programmer that's why I often ask such a type of questions.
What is a bootloader and why we use it?
Thank you for helping me understand controllers better!
_________________
A person who never made a mistake never tried anything new.
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Sat Mar 02, 2013 9:16 am     Reply with quote

Brief explanation:

its a small program that you burn once with a normal programmer like a Pickit ...

later when you want to upload your code you send it to the pic using the serial port...

the small program you burned, takes the serial data and writes it to your code space...

basically eliminates the need for a programmer.
this allows for firmware updates without a programmer.

G.
_________________
CCS PCM 5.078 & CCS PCH 5.093
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Mar 02, 2013 3:32 pm     Reply with quote

Just to emphasize it a bit more:
A bootloader is a program on your chip that allows someone in the field (customer or service person) to update the firmware without special programming hardware. Often the user then connects the serial port to his PC for uploading the new firmware software. USB and ethernet bootloaders also exist.

When your chip is only ever going to be programmed in the factory or your lab, then you don't need a bootloader. A bootloader is slower than programming with your special programming hardware (ICD, PicKit, etc) and it takes up about 1k of ROM.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

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

PostPosted: Sun Mar 03, 2013 2:27 am     Reply with quote

A bootloader can be used to replace all or just part of the space you have allocated for the application program. Depending on the implementation. a bootloader can modify as little as a single byte of program memory. This enables a bootloader to be used to update tables maintained in program memory (for example an emulated EEPROM) without updating the application itself.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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