Skip to main content
G_1
Associate
April 8, 2019
Question

SOLVED: CubeMX 5.1.0 re-generated project for SW4STM32 linker script *.LD file is empty. GONE: with CubeMX 5.2

  • April 8, 2019
  • 16 replies
  • 3525 views

CubeMX 5.1.0 and STM32F302 every time a project is re-generated the

STM32F302R8Tx_FLASH.ld file is empty.

This topic has been closed for replies.

16 replies

Francesco Agosti
Associate II
April 8, 2019
G_1
G_1Author
Associate
April 9, 2019

If i delete the LD file before the project is re-generated then all works fine.

This is probably a mistake from the cube. Are there cube programmers present or is there any ticket system for bugs?

So long

G

fronders
Associate III
April 19, 2019

@Francesco Agosti​ @G​ 

I experience this problem with CubeMX 5.1.0 too. First time project is generated OK with linker script present and being correct. If I regenerate project (not touch the *.LD script), CubeMX makes the *.LD file empty. Only if I delete the LD file then it regenerates okay.

With empty LD file the built binary is 8 bytes and is basically empty..

This is definitely a CubeMX bug.

@G you should probably add some *bug* tags to the original post for the ST staff to show up here..

@Khouloud GARSI​ would you please take a look at this, or forward to the responsible employees. Thank you.

Khouloud GARSI
ST Employee
April 19, 2019

Hello,

This is reported internally to our CubeMX team for further check and we will keep you posted about any further update regarding this request.

Sorry for any inconvenience this may have brought.

Khouloud.

Nesrine.JLASSI
Visitor II
April 19, 2019

Hi @G​ 

I did the same scenario and i did not have a problem, the STM32F302R8Tx_FLASH.ld  file is generated normally.

0690X000008AkEqQAK.png

Could you please tell me which SW4STM32 version and Firmware package do you use ?

Best regards,

Nesrine

fronders
Associate III
April 19, 2019

@Nesrine.JLASSI​ 

I have this issue from time to time. Both on SW4STM32 v 2.8.1 and 2.7.0 using CubeMX 5.1.0 rc6, package F4 v1.24.0 (i use F446 MCU)

The issue is that after REgeneration of project (not initial, but 2nd or 3rd, from time to time it shifts) the LD file becomes empty. File exists but empty. And after next regeneration is stays empty until I delete it. Then CubeMX regenerates it okay.

You should try it multiple times, it doesn't do that EVERY single try.

Nesrine.JLASSI
Visitor II
April 19, 2019

​Hi @ fronders

Yes, i tired it multiple times, and i did not have the issue.

Could you please send me your .ioc file to check the problem?

Best ragards.

Nesrine

fronders
Associate III
April 23, 2019

Hi, please see projects made in SW4STM32 v 2.8.1 using CubeMX v 5.1.0rc6 HAL F1 v 1.7.0

G_1
G_1Author
Associate
April 19, 2019

Please try with a machine Win7 / 32bit

Nesrine.JLASSI
Visitor II
April 22, 2019

​Hi @G​ 

Thanks for the feedback,

Please try with CubeMX 5.2.0 version. It must be OK this time.

Best regards.

Nesrine

G_1
G_1Author
Associate
April 23, 2019

Hi @ Nesrine,

thx, but where can i download the 5.2.0 ?

There is only the selection of older versions!

And the update function will not find a new version?

So long

G

Nesrine.JLASSI
Visitor II
April 23, 2019

Hi @fronders​ 

Will be fixed next release.

Best regards.

Nesrine