Skip to main content
Ephraimoved
Associate III
April 24, 2023
Question

TFM SBSFU_BOOT

  • April 24, 2023
  • 2 replies
  • 2218 views

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,

This topic has been closed for replies.

2 replies

Bubbles
ST Employee
April 26, 2023

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.
Associate
September 4, 2023

@Bubbles 

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)

Bubbles
ST Employee
September 7, 2023

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.
Associate
September 18, 2023

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!

 

zapk_0-1695059228534.png

zapk_1-1695059745798.png