Atmel website | ARM Community | AVR freaks | Technical Support
Banner
Welcome to AT91SAM Community Forum
http://www.at91.com/samphpbb/

Doubt on creating a bin file through IAR compiler for 9260
http://www.at91.com/samphpbb/viewtopic.php?f=9&t=19708
Page 1 of 1

Author:  vipindas [ Fri Nov 12, 2010 11:48 am ]
Post subject:  Doubt on creating a bin file through IAR compiler for 9260

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.

Author:  CptTitanic [ Fri Nov 12, 2010 3:03 pm ]
Post subject:  Re: Doubt on creating a bin file through IAR compiler for 9260

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.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/