cancel
Showing results for 
Search instead for 
Did you mean: 

B-U585-IOT2A TF-M Update Script not Working on Windows

PJose.4
Senior

Hi @ST Community 

Greetings

I'm trying the TF-M Application package v1.2 released by ST and am following the instructions in UM2851.

I'm currently in the step shown below:

PJose4_0-1690355606644.png

in windows im unable to run the TFM_Update.sh script that is provided in the following location(my installation path)

C:\TFM\en.stm32cubeu5-v1-2-0\STM32Cube_FW_U5_V1.2.0\Projects\B-U585I-IOT02A\Applications\TFM\TFM_SBSFU_Boot\STM32CubeIDE.

To enable the installation of shell scripts i used the cygwin tool and tried running the above mentioned script from the path and the following error is returned:

PJose4_1-1690355867507.png

Is there any changes that i have to do(as i m not much familiar in shell scripts). Is my method correct? There is another path that contains a batch file TFM_UPDATE.batch in the path(for EWARM IDE). Can i use this batch file with STMCube IDE.

 C:\TFM\en.stm32cubeu5-v1-2-0\STM32Cube_FW_U5_V1.2.0\Projects\B-U585I-IOT02A\Applications\TFM\TFM_SBSFU_Boot\EWARM.
Is there any manual sequence by which i can upload the code?

Please suggest me solutions for the same as i m stuck now.

Thanks for the support

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PJose.4
Senior

Hi Team

The issue was solved i tried the option byte configuration as described in section 10.2 of UM2851

PJose4_0-1690375985656.png

i used git bash to run .sh files in windows system. Now i am able to get TF-M Output on tera term screen

PJose4_1-1690376427016.png

 

View solution in original post

2 REPLIES 2
PJose.4
Senior

Hi @Channel

The issue was related to the cygwin tool. i installed the git bash tool to run the TFM_UPDATE.sh script and tested the script. The script is running and program is uploaded.
In this setup i have not added a OEM2 regression password(is it mandatory) and have not changed any configuration in the static security protection as it is by default configured:

PJose4_0-1690365689252.png

Is there requirement of any scripts that we have to run manually other than the dataimg.sh and tfm_update.sh script(postbuild.sh will be executed after the build of sbsfu boot code)

But even after this i reset the board and opened tera term and tested the output but nothing is being displayed. Can anyone suggest the possible issue here and how to resolve the error.
Thanks and Regards

PJose.4
Senior

Hi Team

The issue was solved i tried the option byte configuration as described in section 10.2 of UM2851

PJose4_0-1690375985656.png

i used git bash to run .sh files in windows system. Now i am able to get TF-M Output on tera term screen

PJose4_1-1690376427016.png