Topic : Unable to change RAM & FLASH size after making changes to .ld file

Forum : ARM

Original Post
Post Information Post
March 13, 2007 - 8:03am
Guest

HI,

I am using RIDE (BN746, version 1.1.15) to program STR710fz2 in FLASH boot mode
Serial number is : "dngStd004000564"

I was using default startup code & ld file so far. There RAM size was 16K & Program size 64K. Now the code size is increasing as well as RAM requirement. I want to use 64k RAM & 256K FLASH which is provided in my IC. So I took copy of .ld file, made size changes,
and selected these files in compiler's Project | LD_ARM options.
After compiling, HEX file size is around 75K & I am getting message like ..
"section ._usrstack[20000000 -> 20000bff] overlaps section .bss [20000434-20004363]"
Then I opened MAP file in editor, Ram size is still 0x00004000 & FLASH size is 0x00010000.
After I reduced my array sizes, compilation went through, but code doesnt go upto end statement..

I am using .s files given in LIB\STRx directory
crt0_STR71x.s

.ld files given in LIB\STR7 directory
STR71xFx0_FLASH.ld which includes STR71x_COMMON.ld, STR71xFx0_DEF.ld,
sections_FLASH.ld

I made changes in def.ld. Still not working..
Please let me know the problem or what to do.

Thanks & Regards
Pratibha

Replies
Post Information Post
+1
0
-1
March 13, 2007 - 9:35am
Raisonance Support Team

Hi,

First, please note that you shouldn't need to modify the scripts yourself if you are using the "standard" STRx, which you are doing.

Please check that you have checked "STR710fz2" and not "STR710fz0" in the target options.

Then, please check that you have UNchecked the "16K limit" option in the linker options. (my bet is on this one!)

Finally, please check that you have checked "use default linker script" option in the linker options.

You'll find more information on these options in the "Getting Started STRx" documentation.

If these hints don't help you resolve the issue, then please send us an example project showing the problem. We'll need the complete project, including sources, headers, etc.

Best Regards,

Vincent