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

How can I understand the compatibility of a bootloader?

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



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

How can I understand the compatibility of a bootloader?
PostPosted: Tue Jul 20, 2010 2:32 am     Reply with quote

How can I understand the compatibility of bootloader for any PICs?To determine the compatibility of bootloader for PIC,where should I look from datasheet?
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: Tue Jul 20, 2010 5:50 am     Reply with quote

The PIC must support self programming of flash memory. If you want an incremental bootloader (one that can modify as little as a single byte of flash memory) then you need a PIC with RAM size > the PICs page erase size.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
theasus



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

PostPosted: Tue Jul 20, 2010 9:02 am     Reply with quote

For example I know that bootloader can't be load to 16f628. But I couldn't find anything about "self programming of flash memory" in 16f628's datasheet. How can I understand this specification?
ckielstra



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

View user's profile Send private message

PostPosted: Tue Jul 20, 2010 11:29 am     Reply with quote

If you want to know which processors support 'self programming' have a look at http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=1002&mid=10&lang=en&pageId=74,
It is in the column named 'self-write'.

Another method is to check the datasheet. If it is not mentioned to support Self Programming then it doesn't. Microchip doesn't say 'this chip has no self programming', which is strange but I do understand from a marketing perspective. It would be a very long list to mention all the things the chip can not do (it does not fly to the moon, does not cook food, etc).
So check if there is a chapter on writing to Flash Program Memory, if this chapter is missing then the chip does not support this feature. So yes, for the PIC16F628 there is no information of self programming because the chip doesn't support it.

If you want to read more about Self Programming find a chip that does support the feature and read the datasheet.
There is also a separate manual on Flash Programming for most chips, for example for the PIC16F88: PIC16F87/88 FLASH Memory Programming Specification
theasus



Joined: 31 May 2009
Posts: 79

View user's profile Send private message

PostPosted: Wed Jul 21, 2010 2:10 am     Reply with quote

OK thanks for your answers. I understand compatibility of bootloader for PICs thanks to you.
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