Skip to main content
Remy ISSALYS
Technical Moderator
May 12, 2023
Question

Pay attention: Issue in STM32CubeIDE linker template file causes BLE projects don't work as expected

  • May 12, 2023
  • 1 reply
  • 1908 views

Hello,

Since STM32CubeIDE V1.11.0, there is an issue in linker file template, see STM32WB55RGVX_FLASH.ld file. In this file, there is an extra dot for MB_MEM2 section initialization, see this part: 

 .MB_MEM2 :
 {
 _sMB_MEM2 = . ;
 *(.MB_MEM2) ; // Erroneous line
 _eMB_MEM2 = . ;
 } >RAM_SHARED AT> FLASH

The erroneous line should be replace by this one (extra dot removed):

*(MB_MEM2);

Due to this extra dot, the buffers that need to be in SRAM2 are not placed there, so BLE application doesn't work as expected. The fix will be available in the next STM32CubeIDE release (v1.13.0).

Best Regards

This topic has been closed for replies.

1 reply

Visitor II
September 15, 2023

Thanks for this Rémy 

So STM32CubeIDE v1.13.0 onwerds will have the linker file fixed. 

But if someone already started their project with the erratic one, then upgrading to v1.13 won't fix their issue.

it this is possible, it may be nice for STM32CubeIDE to check this specific file for this specific error and suggest the user to fix it. Does it make sense ?