cancel
Showing results for 
Search instead for 
Did you mean: 

unknown flash memory in valid address

Lmali.1
Associate III

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

8 REPLIES 8
Andreas Bolsch
Lead II

Check FLASH_PCROPxxxR and FLASH_SFR.

Lmali.1
Associate III

What should I need to check for exactly?

Andreas Bolsch
Lead II

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

Remi QUINTIN
ST Employee

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.

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.

mute
On 2020-02-24 12:28, ST Community wrote:
Remi QUINTIN
ST Employee

​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
Associate III

Thank you very much