View previous topic :: View next topic |
Author |
Message |
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
Bootloader DATA EEPROM |
Posted: Mon Sep 14, 2009 1:43 pm |
|
|
18F452 @ 18.432MHz ccs 3.249
I have an application that stores the current language in data EEPROM.
addr=0xf00000
Code: | #rom int8 0xf00000={HARD_MAJOR... |
now after the bootloader is run and new application is loaded, the language
changes.
Is the bootloader not updating the data EEPROM? Is it corrupting it?
Also can the main application and bootloader be compiled into 1 image.
I want arrow electronics to write these chips,... but also have the ability to bootload new code into them if the need arises.
Thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Sep 14, 2009 1:56 pm |
|
|
Does your bootloader (firmware, inside your PIC) look for the data
eeprom address in the Hex file that is sent to the PIC ? Then does it
use the method described in the Data EEPROM section of the data
sheet to write to eeprom ?
My guess is, probably not. |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Sep 14, 2009 2:08 pm |
|
|
right, right,...
deja vu all over again.
I hate it when I fix the same thing twice.
Grep to the rescue! |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Sep 14, 2009 2:43 pm |
|
|
Got that working.
Any thoughts on compiling both together?
It looks like bootloader calls Application()
Would I just rename my Main() --> to application() ?? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Sep 14, 2009 4:00 pm |
|
|
Thanks |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Mon Sep 14, 2009 4:39 pm |
|
|
Using #import to build a production image is also suggested in EX_USB_BOOTLOADER.C |
|
|
|