/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Can't compile to fit in RAM

Username:     
Password:     
             

Forum

# 1   2009-06-11 21:46:05 Can't compile to fit in RAM

dianna.liu
New member
Registered: 2009-06-08
Posts: 3

Can't compile to fit in RAM

I have a Primer2 with the STM32F103VET6. When I compile my program, "theProPowerTest" in Ride7, I get:
theProPowerTest.elf section .bss will not fit in region RAM 
and
ld.exe: region RAM overflowed by 6748 bytes 
Upon opening the .elf.ld file, it shows that it tries to include
STM32F103_32K_32K_FLASH.ld"

The part I have should be for a 64K part, but I don't even see a 64K option in the /lib directory. Has anyone run into this problem? Did I miss some files somehow?
Thanks

Offline

 

# 2   2009-06-11 22:04:57 Can't compile to fit in RAM

dianna.liu
New member
Registered: 2009-06-08
Posts: 3

Re: Can't compile to fit in RAM

Oh, and to clarify, I tried modifiying the .elf.ld file to STM32F103_32K_64K_Flash but it keeps on reverting back to the 32K when I rebuild.

Offline

 

# 3   2009-06-12 07:45:24 Can't compile to fit in RAM

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Can't compile to fit in RAM

In the linker option, you will find file the name of the LD file (script) you are using. You have to open this file and to modify the RAM size.

Offline

 

# 4   2009-06-12 13:48:08 Can't compile to fit in RAM

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Can't compile to fit in RAM

I apologize... I was wrong (I thought you were working on an application based on CircleOS).
Crt0.ld from the  LIB\ARM directory is  not used. The default script is generated automatically, and it includes one of the file named "STM32F103_... .LD", depending on your configuration.
If you want to remove the 32KB limitation, the simplest way consists in selecting 'NO' for the option "Linker | Scripts | Starter script limitation".

Offline

 

Board footer