cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U585 - TFM - Application SRAM2 and Backup RAM data read and write

PJose.4
Senior

Hello community

Greetings

i have a requirement to write and read data from the SRAM2 and Backup RAM from the TFM Application example. please suggest how can i write and read an array of bytes(10 byte) from the SRAM2 and Backup RAM in the above mentioned application

Thanks and Regards
Philip Jose

2 REPLIES 2
CMYL
ST Employee

Hi @PJose.4 

How do you configured the arrays in SRAM2 and BKPRAM, secure or non-secure ?

In Project_ns there is a set of Tests to Access secure or non Secure Area, you can see TEST_PROTECTIONS_Run() in test_protections.c which is called by FW_APP_Run() in main.c file.

In Porject_s you can refer to TEST_PROTECTIONS_PrintTestingMenu() in app_rot_test.c file. 

Best Regards

PJose.4
Senior

Hi @CMYL 
Greetings

in SRAM2 and Backup RAM we have not configured the arrays. we have not stored in the array in the storage.
we are stuck in the flow how to write/read a data from the SRAM2/Backup RAM.

from the test protection.c file and approt.c file there is an array for performing a RAM write/Read Function, by calling the do_test() function. but when calling the test is failing.
Could you please give a brief sequence on how this call is happening. 

Also if i want to add my own implementation in the secure area, what has to be done.

Thanks and Regards
Philip