Skip to main content
Associate II
February 11, 2025
Solved

STM32WB55RCV6 RAM segments

  • February 11, 2025
  • 2 replies
  • 903 views

Hi

 

mahdiquestat_0-1739299493079.png

If I understand correctly, this table in the datasheet says WB55RC family which I have a 256K flash type, should allow me to have 128K SRAM 64KB SRAM1 and 64KB SRAM 2

But the code that is generated with STM32CubeMX does not grant me all these sections:

First of all there are two .ld files which I would like to know what are they and how they are used?

One is STM32WB55RCVX_FLASH.ld with the following memory assignment:

MEMORY

{

FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 256K

RAM1 (xrw) : ORIGIN = 0x20000004, LENGTH = 0xFFFC // which is(64K)

RAM_SHARED (xrw) : ORIGIN = 0x20030000, LENGTH = 10K

}

The other one is STM32WB55RCVX_RAM.ld with the following memory assignment:

MEMORY

{

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K

FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 256K

}

What do I have to do to have more RAM ?

 

[Also in the labels that I am expected to assign for the post in the forum, there is no STM32WB family]

Best answer by STTwo-32

As you can see on the AN5289,  BLE_p2pServer_ota BLE_HeartRate_ota and Ble_Thread_Static have a different linker file from other applications. You can do it on your own but you should respect recommandations from the paragraph of linker file update on the section 4.2 of the AN5289.

Best Regards.

STTwo-32

2 replies

TDK
Super User
February 11, 2025

The STM32WB55RCV6 is a dual core device. The other core is using the other part of the RAM--you can't use it on the M4 core if you want the M0+ core to work.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate II
February 11, 2025

Are you saying the M0+ core is using (128+64)192K ram while I am stuck with 64K ?

STTwo-32
Technical Moderator
February 11, 2025

Hello @mahdi-questat 

First for your questions on BLE products, you can use the STM32 wireless product forum where you can find the STM32WB label. I will move this post to the concerned forum and I will add the label this time. For the STM32WB memory mapping (FLASH, SRAM1 and SRAM2). It is well explained with details on the part 4.2 of the AN5289.

Best Regards.

STTwo-32

Associate II
February 12, 2025

Thanks for the document, I looked into it. The section you mentioned says there are parts of RAM that are available but not in the default linker. Is there any example I can use to utilize these spaces?

Mahdi

STTwo-32
STTwo-32Best answer
Technical Moderator
February 12, 2025

As you can see on the AN5289,  BLE_p2pServer_ota BLE_HeartRate_ota and Ble_Thread_Static have a different linker file from other applications. You can do it on your own but you should respect recommandations from the paragraph of linker file update on the section 4.2 of the AN5289.

Best Regards.

STTwo-32