2021-11-22 10:02 PM
Hi,
I don't do any change to the script file, please advise how to let the script work normally.
Rgds,
QiZhang
D:\>cd D:\WSL_DIR\STM32Cube_FW_L5_V1.4.0\Projects\STM32L562E-DK\Applications\TFM\TFM_SBSFU_Boot\STM32CubeIDE
D:\WSL_DIR\STM32Cube_FW_L5_V1.4.0\Projects\STM32L562E-DK\Applications\TFM\TFM_SBSFU_Boot\STM32CubeIDE>bash regression.sh
regression script started
Regression to RDP 0, enable tz
regression.sh: line 16: $'STM32_Programmer_CLI\r': command not found
regression.sh: line 59: syntax error: unexpected end of file
D:\WSL_DIR\STM32Cube_FW_L5_V1.4.0\Projects\STM32L562E-DK\Applications\TFM\TFM_SBSFU_Boot\STM32CubeIDE>
Solved! Go to Solution.
2021-11-26 02:28 PM
> my PC OS is win 10 , with WSL2 installed
So, when you type 'bash' it actually runs in the WSL. It does not run on the Windows side. Do you fully understand the consequences?
Maybe you would rather prefer a Windows-native bash such as one that comes with git or Cygwin?
2021-11-25 09:27 PM
Hello @zqizh.1 ,
I have checked from my side and I cannot reproduce this issue.
Were you able to resolve this ? If yes, it will be interesting to share with us your update.
Imen
2021-11-26 01:21 AM
Hi,
I have solved it with below work around solution:
1) change "STM32_Programmer_CLI" to"STM32_Programmer_CLI.exe" in line 4
2) remove "\r"
sed 's/\r$//' regression.sh > tmp.sh
mv tmp.sh regression.sh
my PC OS is win 10 , with WSL2 installed.
Please give a formal way.
Rgds,
QiZhang
2021-11-26 02:28 PM
> my PC OS is win 10 , with WSL2 installed
So, when you type 'bash' it actually runs in the WSL. It does not run on the Windows side. Do you fully understand the consequences?
Maybe you would rather prefer a Windows-native bash such as one that comes with git or Cygwin?
2021-11-28 05:53 PM
I've followed your instruction, uninstall the WSL2, and install the Cygwin.
$ cd /cygdrive/d/WSL_DIR/STM32Cube_FW_L5_V1.4.0/Projects/STM32L562E-DK/Applications/TFM/TFM_SBSFU_Boot/STM32CubeIDE/
1) run "./regression.sh" no problem.
2) run "./TFM_UPDATE.sh" fail.
Please advise.
Thanks.