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

Bootloader DATA EEPROM

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



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

Bootloader DATA EEPROM
PostPosted: Mon Sep 14, 2009 1:43 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 14, 2009 1:56 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Sep 14, 2009 2:08 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Sep 14, 2009 2:43 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 14, 2009 3:08 pm     Reply with quote

This thread suggests using the #import statement.
http://www.ccsinfo.com/forum/viewtopic.php?t=38730
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Sep 14, 2009 4:00 pm     Reply with quote

Thanks
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Sep 14, 2009 4:39 pm     Reply with quote

Using #import to build a production image is also suggested in EX_USB_BOOTLOADER.C
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