Skip to main content
Lmali.1
Associate III
February 24, 2020
Question

unknown flash memory in valid address

  • February 24, 2020
  • 6 replies
  • 1791 views

Hello,

I want to use the last page of the flash memory.

The last page of the STM32WB55CG is page 255 @ 0x080F F000 - 0x080F FFFF, 4 K, Page 255

But, when I look at memory window, during run-time, I see there is nothing.

See attached pic

where is the memory?

what is wrong?

Thanks,

Lior

This topic has been closed for replies.

6 replies

Andreas Bolsch
Lead III
February 24, 2020

Check FLASH_PCROPxxxR and FLASH_SFR.

Lmali.1
Lmali.1Author
Associate III
February 24, 2020

What should I need to check for exactly?

Andreas Bolsch
Lead III
February 24, 2020

Check the contents of those registers and interpret these values according to the description in the RM.

Remi QUINTIN
Technical Moderator
February 24, 2020

The few last sectors of the main flash memory are protected against any direct access as it is the secure part where the Firmware Update Services (FUS code) is loaded. This code is the only one able to load the RF stack in a secure way.

Any sector above the one pointed by the SFSA option byte is not accessible.

When the RF stack is uploaded, the SFSA pointer is updated accordingly, preventing any access to this stack.

Even the Cube Programmer tool cannot access this part of the memory. When you try, it only returns 0.

Lmali.1
Lmali.1Author
Associate III
February 24, 2020

So, as I understand, from all the 256 pages (4K each), the last sectors are protect.

according to the memory during run-time the last page is 202 (of 255, base 0).

Is it make sense?

Please see attached.

Andreas Bolsch
Lead III
February 24, 2020
mute
On 2020-02-24 12:28, ST Community wrote:
Remi QUINTIN
Technical Moderator
February 24, 2020

​Yes. As yo can see from sector 0xCB (should be the calue of the SFSA option byte),it is nor possible to acess sectors above where the RF stack has been loaded.

This protection is effective as soon as the chip is leaving the manufactory as it is pre-loeded with the FUS code.

Lmali.1
Lmali.1Author
Associate III
February 24, 2020

Thank you very much