|
|
View previous topic :: View next topic |
Author |
Message |
Guest
|
dspic30 Bootloader Question |
Posted: Fri Oct 17, 2008 9:40 am |
|
|
Has anyone used the ingenia bootloader? So far it's the only bootloader I've been able to get to the point of loading a program on a dspic30. I realize this isn't ingenia's site, but they don't have a ton of documentation.
My question is this:
I get a warning that my hex file contains data in protected 'config' addresses, protected addresses will not be overwritten.
Even with a very simple blinking program, I get this error
Code: |
#include <30F4011.h>
#device *=16
#FUSES NOWDT,XT_PLL16,NOCKSFSM,PUT64,NOBROWNOUT,NOPWMPIN,NOPROTECT,NOWRT,NODEBUG,NOCOE,ICS0,RESERVED
#use delay(clock=117964800)
void main()
{
while(1)
{
output_toggle(PIN_B0); //hooked up to an LED
delay_ms(500);
}
}
|
what lines of this code would the CCS compiler place in configuration memory |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Fri Oct 17, 2008 10:52 am |
|
|
Everything in the #fuse directive is placed in protect memory.
Fuses configure the PIC for your target hardware platform. This is the same information that is required for a bootloader. As the bootloader is the first thing installed on the PIC, the bootloader's fuse setting will be inherited by the application program bootloaded to the PIC.
A bootloader usually silently discards the config records (fuses settings). In your case the bootloader issues a warning message. My suggestion is do NOT make any changes to the application program and simply ignore the bootloader warning message. If possible, modify the bootloader to prevent it from issuing this class of warning message. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
Guest
|
|
Posted: Fri Oct 17, 2008 11:30 am |
|
|
Even when I comment out the #fuse statements, there are still values in the F80000 adresses. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Fri Oct 17, 2008 11:54 am |
|
|
Anonymous wrote: | Even when I comment out the #fuse statements, there are still values in the F80000 adresses. |
The hex file will still contain values at F80000 even if they are all 0xFF
The problem is the bootloader not the application. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|
|
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
|