2023-11-24 05:03 AM
Hello,
I installed all needed tools and software according to STM32H5_Security_Workshop_tools_installation.pdf but I cannot compile the SMAK application. This is the error message I get:
Br,
Iulia
Solved! Go to Solution.
2023-11-27 07:24 AM
Can you check that in C:\STM32Cube_FW_H5_V1.1.1\Projects\STM32H573I-DK\ROT_Provisioning, the file env.bat contain the right paths for your tools and applications?
2023-11-27 07:46 AM
2023-11-28 03:34 AM
Hello,
I had this same problem. For me the solution was to downgrade the IDE from version 1.14.0 to version 1.13.2. Then everything worked like in the instructions.
It seems to me that the problem is not a missing script.
During my investigation, I found that in "prebuild.sh", the "thispath" variable is set incorrectly. It is supposed to get the directory using "pwd" but "pwd" returns an empty string. This causes the rest of the script to fail in a strange way.
BR, Johan Blockmar
2023-11-28 05:06 AM
Hello Johan,
thank you for your feedback. I confirm I observe same issue with new version 1.14.0 of STM32CubeIDE.
I will check how this can be fixed
Best regards
Jocelyn
2023-11-28 05:37 AM
Hello,
here is a workaround to be able to compile the SMAK application with STM32CubeIDE 1.14.0:
1) copy postbuild.bat from EWARM directory to STM32CubeIDE directory (in SMAK_Appli)
2) Edit the configuration of SMAK project:
in Properties/C/C++ Build/Settings
Tab : Build Steps
Replace .sh by .bat for both Pre-build steps and Post-build steps command
Best regards
Jocelyn
2023-11-29 12:02 AM
2023-11-29 12:08 AM
Do you confirm you have done those steps ?
2023-11-29 12:31 AM
I confirm I have done these steps. I have tested opening the project both from "C:\STM32Cube_FW_H5_V1.1.1/..." and "C:\Users\username\STM32Cube\Repository\STM32Cube_FW_H5_V1.1.1..." with the same result. In both cases I have copied the postbuild.bat from EWARM directory to STM32CubeIDE directory and replaced .sh to .bat for Pre-build steps and Post-build steps in project settings.
2023-11-29 12:41 AM - edited 2023-11-29 12:46 AM
2023-11-29 04:38 AM
I have mentioned in this thread already that I have followed the STM32H5_Security_Workshop_tools_installation.pdf and I have also attached screenshots to this thread that I have installed STM32Cube_FW_H5_V1.1.1 according to the pdf.