cancel
Showing results for 
Search instead for 
Did you mean: 

Reg Issue in Running TFM Application STM32u585

PJose.4
Senior

Hi @Jocelyn RICARD 
Greetings

we are working on the STM32u585 TFM Application and are facing issues when running the code. the issue is after dumping the code using the TFM_Update.sh script first time every operation is normal, but while running for the next time and checking the option byte configuration they have changed and hence am not able to run the script. The main changes observed are as follows as shown in the option byte screen as below:

1. 

PJose4_1-1717159815680.png

2. 

PJose4_0-1717159805665.png

3. 

PJose4_2-1717159828600.png

4. 

PJose4_3-1717159836411.png

Sometimes the change of option bytes will work after changing the value of boot0 pin.

Then the work around is to manually update the values as per UM2851. could you please suggest how this change is happening after running the code and how can we solve this issue.

Thanks and Regards
Philip 

 

1 REPLY 1
Jocelyn RICARD
ST Employee

Hello @PJose.4 ,

By default, you can see Read out protection is enabled.

When you have already a TFM running on the target, you need first to run the regression.sh script.

Please edit this script and remove the --hardrst that is line 7. Please also remove this option in TFM_Update.sh

Best regards

Jocelyn