2023-11-28 03:22 AM
I've installed using the path
"C:\ST\STM32CubeProgrammer\STM32CubeProgrammer\bin\STM32TrustedPackageCreator_CLI.exe"
and modified the scripts as directed.
e.g.
set stm32tpccli="C:\ST\STM32CubeProgrammer\STM32CubeProgrammer\bin\STM32TrustedPackageCreator_CLI.exe"
I'm getting a postbuild failure, because it is still seeking in the default path.
Generated by sh
../postbuild.sh: line 65: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32TrustedPackageCreator_CLI.exe: not found
I've searched both install and repository folders for mentions of the default path, but not found the problem.
Is the only solution to reinstall using the default path?
Solved! Go to Solution.
2023-11-28 06:41 AM
Spotted it!
\STM32CubeProgrammer\STM32CubeProgrammer\bin\
A simple cut & pasting error.
2023-11-28 06:20 AM
Hello Alex,
I'm not sure what you have done exactly.
The postbuild.sh is sourcing the env.sh located in ROT_Provisioning directory.
If you modify this env.sh it should be taken into account.
Best regards
Jocelyn
2023-11-28 06:30 AM
I have this after I've modified the Cube Programmer path, but it is still looking in 'Program Files':
#==============================================================================
# General
#==============================================================================
#Configure tools installation path
if [ "$OS" == "Windows_NT" ]; then
stm32programmercli="C:\ST\STM32CubeProgrammer\STM32CubeProgrammer\bin\STM32TrustedPackageCreator_CLI.exe"
stm32tpccli="C:\ST\STM32CubeProgrammer\STM32CubeProgrammer\bin\STM32TrustedPackageCreator_CLI.exe"
else
#stm32programmercli_path=~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/
PATH=$stm32programmercli_path:$PATH
stm32programmercli="STM32_Programmer_CLI"
stm32tpccli="STM32TrustedPackageCreator_CLI"
fi
2023-11-28 06:41 AM
Spotted it!
\STM32CubeProgrammer\STM32CubeProgrammer\bin\
A simple cut & pasting error.