cancel
Showing results for 
Search instead for 
Did you mean: 

Generation file Linker (xxxx_FLASH.ld) is empty

drake
Associate II
Posted on March 04, 2015 at 11:20

Hi

The latest version of

CubeMx

in

Ubuntu

generates

(export

TrueSTUDIO

)

file

Linker

(

xxxx_FLASH.ld

)

empty.

I have

tested this on

STM32L0

and

STM32F4

.

In

Windows

it all works

.

Has anyone encountered

this problem

?

Best Regard

Drake

4 REPLIES 4
Rob.Riggs
Senior
Posted on March 09, 2015 at 01:56

Yes.  Not only is the linker script empty, but the startup assembly file, startup_stm32f411xe.S in my case, is not copied.  To make this work on Linux, both the linker script and the startup file needed to be manually copied from the STM32Cube repository into the project.

drake
Associate II
Posted on March 16, 2015 at 15:40

When

will

correct

this bugs

?

Drake

Mark Shoe
Senior

Hi, i found this old topic but this is what happens with cube 5.1.0

After generating the project serval times the file STM32F103C8Tx_FLASH.ld is empty. I have made changes to the file for my bootloader. Deleting the file and generate again will result in a new file. Without my changes of course.

Building a project with an empty linker file will result in a successful build and a bin file of 8 bytes.

GFoui
Associate

I have the same issue.

The solution I found is to create a copy of linker file generated but with a different name and use the copy instead of the one created by STM32CubeMX...