cancel
Showing results for 
Search instead for 
Did you mean: 

stm32wb how to use the full SRAM2b

SilentButeo2
Associate

We are using the ST32WB without making use of the BLE feature.

But we run into RAM issues and need more RAM. How can we "non-secure" the SRAM2Bb part?

SRAM2a is currently already non-secure.

Tried to do it from the CubeProgrammer, but got the error:

Error: Expected value for Option Byte "BRSD_B": 0x1, found: 0x0

As we think only CPU2 can adjust this option bytes, we suspect we need some kind of dummy firmware that free the secure section.

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

Hello @Community member​ ,

Thanks for your feedback,

According to RM0473 section 3.10.19, the FLASH_SRRVR register "provides write access security and can only be written by the CPU2. A write access from the CPU1 is ignored and a bus error generated. On any read access the register value is returned.

Written values are only taken into account after OBL".

So the error is expected because only CPU2 (the stack) can modify these values. From a user point of view, those OBs cannot be changed.

I hope this helps !

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.

View solution in original post

2 REPLIES 2
SilentButeo2
Associate

Anyone?

Maybe only some pointers?

The exact MUC is STM32WB15CCU6

Sara BEN HADJ YAHYA
ST Employee

Hello @Community member​ ,

Thanks for your feedback,

According to RM0473 section 3.10.19, the FLASH_SRRVR register "provides write access security and can only be written by the CPU2. A write access from the CPU1 is ignored and a bus error generated. On any read access the register value is returned.

Written values are only taken into account after OBL".

So the error is expected because only CPU2 (the stack) can modify these values. From a user point of view, those OBs cannot be changed.

I hope this helps !

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.