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

one firmware in two different pic

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



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

one firmware in two different pic
PostPosted: Tue Feb 26, 2013 12:46 am     Reply with quote

Hi to all,

I have one firmware to load with bootloader in PIC18F4525 and PIC18F46K22. Configuration bit are already programmed based on PIC used. Is there possibility to check PIC by firmware and change some configuration by firmware ?

Thanks and Regards,
Fabri
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Tue Feb 26, 2013 5:14 am     Reply with quote

Yes, the bootloader can manipulate the configuration data.
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Tue Feb 26, 2013 5:35 am     Reply with quote

However, consider just having the bootloader _not_ use the configuration data at all.
Remember that most changes here will stop the bootloader from working. Anything that affects the clock rate, protection etc. etc..
Have it just ignore any data in this range.

Best Wishes
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Tue Feb 26, 2013 7:48 am     Reply with quote

Thanks for reply,
I'm not interest to manipulate configuration because already programmed. Anyway I need my runtime firmware can configure some option based on pic used. Can I detect, by firmware, PIC code set different option ?

Thanks,
Fabrizio
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Tue Feb 26, 2013 11:59 am     Reply with quote

It's in fact better not to write to configuration bits. Your post has been unclear in this point.

You can however readout the DEVID words and make your firmware act specifically on it.
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Tue Feb 26, 2013 2:16 pm     Reply with quote

As I told I don't want write configuration bits.

I'll read device ID as you suggest.

Regards,
Fabrizio
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