2023-04-24 01:34 AM
Dear Sir.
I am trying to work with the examples of TFM_Appication and SBSFU_Boot examples of STMCube_FW_U5_V1.2.0
when compilng I get the error Error: Missing option '-S' / '--slot-size'.
postbuild.sh failed
make[1]: *** [makefile:92: post-build] Error 1
make: *** [makefile:60: all] Error 2
"make -j16 all" terminated with exit code 2. Build might be incomplete.Error: Missing option '-S' / '--slot-size'.
postbuild.sh failed
make[1]: *** [makefile:92: post-build] Error 1
make: *** [makefile:60: all] Error 2
"make -j16 all" terminated with exit code 2. Build might be incomplete.
Please Advise,
2023-04-26 06:52 AM
Hi @Community member,
the problem is most likely with your build environment. What IDE are you using? What is your Python version? The prerequisites for successful build are summarized in the readme file.
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.
2023-09-04 03:22 PM
Hi,
I'm facing an issue in building a SBSFU_Boot example for NUCLEO-WBA52CG.
The issue seems to be with the linkage error, for the Third_party files (mcuboot).
Please find the error message below:
C:/Users/zapk/STM32CubeIDE/workspace_1.13.1/SBSFU_Boot/STM32CubeIDE/Release
../postbuild.sh: cd: line 16: can't cd to C:/Users/zapk/STM32CubeIDE/workspace_1.13.1/SBSFU_Boot/STM32CubeIDE/../../Middlewares/Third_Party/mcuboot: No such file or directory
Windows_NT
Postbuild with python script
python: can't open file 'C:\\Users\\zapk\\STM32CubeIDE\\workspace_1.13.1\\SBSFU_Boot\\STM32CubeIDE\\Release\\scripts\\imgtool\\main.py': [Errno 2] No such file or directory
postbuild.sh failed
make[1]: *** [makefile:95: post-build] Error 1
make: *** [makefile:61: all] Error 2
"make -j16 all" terminated with exit code 2. Build might be incomplete.
13:56:25 Build Failed. 2 errors, 0 warnings. (took 8s.142ms)
2023-09-07 06:28 AM
Hello @zapk,
with same CubeIDE version and the package version 1.1.0 the build works without problem for me. So it's not fundamentally broken and the problem is not universal.
Please check the path and the file locations, if they are present at all. What is the location of your CubeMX repository? Could there be a problem with too long path?
BR
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.
2023-09-18 10:58 AM
Hi @Bubbles
Thanks for your input, was able to build the application successfully.
The step where the ST-Link needs to be disabled, it is not clear how can be done for NUCLEO-WBA52CG.
I found two documents, where in one document it suggests to power cycle and in the other to disconnect the CN2 pin (but its for the other Nucleo board). Please find the images attached below.
Or please can you suggest what steps needs to be taken in order to run SBSFU_Boot application on NUCLEO-WBA52CG board.
Thanks!
2023-09-20 02:05 AM
Hi @zapk ,
quoting from the readme.html file from the Cube package:
"...
5. Reset the board
Press the board reset button, and check the log information on the terminal emulator:
* SBSFU_Boot application starts
* Then it configures the static protections (because ‘development mode’ is used by default)
* Then it get locked (because intrusion is detected)
6. Unlock the board
To exit from locked state (intrusion), remove the jumper JP2 (IDD) on the board, then put it back in place. Check the log information:
* SBSFU_Boot starts
* Then it checks the static protections, and sets the dynamic protections
* Then it verifies the SBSFU application image signatures.
* Then it jumps to the SBSFU application, displaying the User Application Main menu.
..."
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.