cancel
Showing results for 
Search instead for 
Did you mean: 

OEMiRoT on STM32U3: Can I run the provisioning.sh script on Windows?

stst9187
Associate II

Hi,

In paragraph 1.2 “Launch the provisioning script” I read that:

Launch one of the provided scripts depending on your IDE:

  • For EWARM or MDK-ARM: launch the provisioning.bat script.

  • For STM32CubeIDE: launch the provisioning.sh script.

I have Windows and STM32CubeIDE. Can I run the provisioning.sh script on Windows?

Looking into the env.sh script, I found the following code:

 

 
echo ${OS} | grep -i -e windows -e mingw >/dev/null if [ $? == 0 ]; then echo "" echo " ==========================================" echo "| For Windows OS, please use .bat scripts. |" echo " ==========================================" echo "" echo " Press any key to continue..." echo read -p "" -n1 -s exit 0 fi
 

It seems that the script cannot be run on Windows.

Could you please advise how to run the provisioning script for STM32CubeIDE on Windows?

Thank you very much for your support.

Best regards,
Marco

2 REPLIES 2
Bubbles
ST Employee

Hi @stst9187 ,

the guide you are reading probably needs update. The 'bat' is for Windows, 'sh' is for Linux. The statement you read mentions CubeIDE and the shell script, because CubeIDE is the only multiplatform IDE supported. But if you use CubeIDE and provision the sample using 'bat' file, it will work correctly.

Please post the link to the erroneous article, we'll try to have it fixed.

BR,

J

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

stst9187
Associate II

Hi Bubbles,

here it is the link to the ST WiKi page:
How to start with OEMiRoT on STM32U3 - stm32mcu

Thank you for your support

Marco