Skip to main content
Associate III
March 6, 2024
Solved

STM32WB10 flash memory distribution

  • March 6, 2024
  • 4 replies
  • 2737 views

Hi,

I'm working on STM32WB10CC with 320KB of flash memory.
I'm using the full ble stack 1.14.1 (stm32wb1x_BLE_Stack_full_fw.bin) which has a size of 148KB.
In the release note it's written you have to put it at this address 0x08021000.

Coco_3-1709658039480.png

If I'm doing the math 0x08021000 + 148KB = 0x8046000.

The last address of the flash memory is 0x0804FFFF. 
0x0804FFFF - 0x8046000 = 0x9FFF = 40KB

I have 40KB of free memory but I'm not able to write in this part of the memory. Does anyone have an explanation about the 40k extra memory and why I can't write to it ?

Is it possible to write the ble stack to another address ?

 

There is also an error in the Reference Manual (RM0478) p.54. The address should be 0x0804FFFF not 0x8004FFFF.

Coco_1-1709657878769.png

Thanks for your help

 

 

 

This topic has been closed for replies.
Best answer by STTwo-32

Hello @Coco 

- You can have an access on the Flash after updating the Ble Firmware. The only case is if the SFSA=0x00 the Flash memory is locked.

- The Firmware should be added to the indicated address on the release note.

- For the typo, I've reported to the concerned team for correction under ticket number 175357.

(PS: Internal ticket number 175357 is only for reference, not available outside of ST).

Best Regards.

STTwo-32

4 replies

STTwo-32
STTwo-32Best answer
ST Technical Moderator
March 6, 2024

Hello @Coco 

- You can have an access on the Flash after updating the Ble Firmware. The only case is if the SFSA=0x00 the Flash memory is locked.

- The Firmware should be added to the indicated address on the release note.

- For the typo, I've reported to the concerned team for correction under ticket number 175357.

(PS: Internal ticket number 175357 is only for reference, not available outside of ST).

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
CocoAuthor
Associate III
March 6, 2024

Tanks for your quick reply.

- Why this part of the memory is locked?

- What are the risk if I'm using this part of the memory that's usually locked?

STTwo-32
ST Technical Moderator
March 6, 2024

So, this part of the memory should be open. But in case the SFSA is set to 0x00, the Flash is going to be locked. For the Risks, you can have access to the Flash on the current state.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.