Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Doubt on creating a bin file through IAR compiler for 9260
PostPosted: Fri Nov 12, 2010 11:48 am 
Offline

Joined: Thu Jul 29, 2010 12:47 pm
Posts: 11
I have an application code which works fine by running through the JTAG interface.

I thought of downloading the *.bin file to the dataflash so that i can work standalone. (without ICE)

But the *.bin file size is too large (around 512MB). I looked into this bin file and saw most of the areas are intilized with zero.Practically the bin file size should be in Kb's so that it can be downloaded to dataflash through SAMBA.

I looked into the linker file and i think the issue is probably here. Does anyone knows the use of these scripts in linker file.What are the functions of these scripts and how does it effects the creation of bin file.

initialize by copy { readwrite };
do not initialize { section .noinit };

Please provide your suggestions.

Thanks in advance,
Vipin.


Top
 Profile  
 
 Post subject: Re: Doubt on creating a bin file through IAR compiler for 9260
PostPosted: Fri Nov 12, 2010 3:03 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Sounds like you have a sparse file, probably because you have data/code in two distinct regions of memory SRAM vs SDRAM.

SDRAM is 0x20000000, which is the 512 MB boundary. The SRAM's are at 0x00200000 and 0x00300000 as I recall, the boot code is copied by BootROM into the former, and the stack is located in the latter. Having the C startup copying data into the SDRAM is problematic because the controller needs to be set up first.

Typically a boot loader in SRAM would only access the SDRAM via pointers, and not make reference to it in the linker script.

Post/attach the entire linker script if you want others to look at it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to: