cancel
Showing results for 
Search instead for 
Did you mean: 

Custom install path breaking build

Alexmouse
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Alexmouse
Senior

Spotted it!

\STM32CubeProgrammer\STM32CubeProgrammer\bin\

A simple cut & pasting error.

View solution in original post

3 REPLIES 3
Jocelyn RICARD
ST Employee

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

 

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

Alexmouse
Senior

Spotted it!

\STM32CubeProgrammer\STM32CubeProgrammer\bin\

A simple cut & pasting error.