[Icc-avr] const Placement at ABS mem location in BOOT ofAT90CAN128

Milender, Jeff Jeff.Milender at Goodrich.com
Sat Feb 9 19:36:02 PST 2008


Richard,

 

Thanks I will give that a try when I get back to the office and let you know the results, I am out of the office for a week doing some systems integration.

 

I would love to upgrade but seem to have trouble convincing the powers that be to spend any money on software, I will make another attempt..

 

Thanks

Jeff


________________________________

From: icc-avr-bounces at imagecraft.com on behalf of Richard Man
Sent: Fri 2/8/2008 2:33 PM
To: Discussion list for ICCAVR and ICCtiny Users. You do NOT need tosubscribe to icc-announce if you are a member of this.; icc-avr at imagecraft.com
Subject: Re: [Icc-avr] const Placement at ABS mem location in BOOT ofAT90CAN128


First, did you say you are using 7.00? If so, please do upgrade.

Second, "text" is for code. You need

#pragma lit:mylit
const ...
#pragma lit:lit

etc.

At 06:16 AM 2/8/2008, Milender, Jeff wrote:


	Content-class: urn:content-classes:message
	Content-Type: multipart/alternative;
	         boundary="----_=_NextPart_001_01C86A5D.2C4A6333"
	
	How do I place "const" at absolute Memory Addresses in Boot?
	 
	This works for the Application but it refuses to for the Boot.
	In Source:
	#pragma text :mytext
	// located @ 0x0E100
	const INT16U BOOT_CHECKSUM_VALUE = 0x01234;
	// located @ 0x0E102
	const INT16U BOOT_CRC_VALUE = 0x0ABCD; 
	#define END_EXCLUDE_AREA 0x0E103
	// located @ 0x0E104
	const INT32U BOOT_END_ADDRESS = 0x0FFFF;
	// Located @ 0x0E108
	const INT8U BootCodeSWPartNumber[ 21 ] =   { "787S005-004" } ;
	#pragma text :text
	
	In Compiler Option / Other Options
	-bmytext:0x1e100.0x1e11d -bfunc_lit:0x1e11e.0x20000
	 
	MAP Result of above?
	 
	

// richard (This email is for mailing lists. To reach me directly, please use richard at imagecraft.com) 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6771 bytes
Desc: not available
Url : http://dragonsgate.net/pipermail/icc-avr/attachments/20080209/cc99ecf1/attachment.bin


More information about the Icc-avr mailing list