View previous topic :: View next topic |
Author |
Message |
Fabri
Joined: 22 Aug 2005 Posts: 275
|
one firmware in two different pic |
Posted: Tue Feb 26, 2013 12:46 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Tue Feb 26, 2013 5:14 am |
|
|
Yes, the bootloader can manipulate the configuration data. |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19384
|
|
Posted: Tue Feb 26, 2013 5:35 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Fabri
Joined: 22 Aug 2005 Posts: 275
|
|
Posted: Tue Feb 26, 2013 7:48 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Tue Feb 26, 2013 11:59 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
Fabri
Joined: 22 Aug 2005 Posts: 275
|
|
Posted: Tue Feb 26, 2013 2:16 pm |
|
|
As I told I don't want write configuration bits.
I'll read device ID as you suggest.
Regards,
Fabrizio |
|
![](templates/subSilver/images/spacer.gif) |
|