Linker script file for chibios

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
kalpesh
Posts: 19
Joined: Mon Dec 09, 2019 11:53 am

Linker script file for chibios

Post by kalpesh »

Hi,

I am using STM32F407VE controller. In datasheet it is given that :
STM32F407xx family incorporates high-speed embedded memories (Flash memory up to 1 Mbyte, up to 192 Kbytes of SRAM).

But in the linker script for STM32F407xG. ld file and STM32F407xE. ld file the following change is seen

flash0 : org = 0x08000000, len = 512k ----------- STM32F407xE. ld file

flash0 : org = 0x08000000, len = 1M -------------- STM32F407xG. ld file

The Flash size should be same in both then why the diiference ?

Thanks
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Linker script file for chibios

Post by Giovanni »

kalpesh wrote:The Flash size should be same in both


The problem is here, they do have different sizes.

Giovanni
kalpesh
Posts: 19
Joined: Mon Dec 09, 2019 11:53 am

Re: Linker script file for chibios

Post by kalpesh »

Hi,

Any ideas how to proceed further then. By the way now I am using STM32F407xE.ld file

Thanks
rew
Posts: 383
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 14 times

Re: Linker script file for chibios

Post by rew »

kalpesh wrote:STM32F407xx family incorporates high-speed embedded memories (Flash memory up to 1 Mbyte, up to 192 Kbytes of SRAM).
It says up to. So the -E has 512kb and the -G has 1M.
If you're starting your project, you can use the -E file it should work on -G hardware too, you probably don't immediately have 1M of flash-requirements and the only drawback is that you'll get "doesn't fit" while you still have 512kb left.
Post Reply