Linker script file for chibios

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

Moderators: RoccoMarco, barthess

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

Linker script file for chibios

Postby kalpesh » Fri Mar 13, 2020 10:13 am

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Linker script file for chibios

Postby Giovanni » Fri Mar 13, 2020 10:17 am

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

Postby kalpesh » Fri Mar 13, 2020 11:53 am

Hi,

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

Thanks

rew
Posts: 380
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 13 times

Re: Linker script file for chibios

Postby rew » Wed Mar 18, 2020 9:10 am

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.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 14 guests