cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to build the any SBSFU projects

Eugene G
Associate II

I'm following the security part 6 - 02 Building the SBSFU but the final build of the UserApp always ends up with an error.

Instructions are being followed EXACTLY as in the video. I'm getting a different project size when building the SBSFU, slightly larger at 59874 instead of 59578 as mentioned in the video and the documentation. Going on to the next step of building the UserApp will always fail with this error:

c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: ../../../../../../../../Projects/NUCLEO-L476RG/Applications/2_Images/2_Images_SBSFU/SW4STM32/STM32L476RG_NUCLEO_2_Images_SBSFU/Debug\se_interface_app.o: in function `SE_APP_GetActiveFwInfo':

(.SE_IF_Code+0x0): multiple definition of `SE_APP_GetActiveFwInfo'; ../../../../../../../../Projects/NUCLEO-L476RG/Applications/2_Images/2_Images_SBSFU/SW4STM32/STM32L476RG_NUCLEO_2_Images_SBSFU/Debug\se_interface_app.o:(.SE_IF_Code+0x0): first defined here

I'm running CubeIDE 1.6 and cube programmer 2.7 (tried with 2.5 as well). Will I need to downgrade Cube IDE as well?

2 REPLIES 2
Frantz LEFRERE
ST Employee

Infact this is a regression with CubeIDE 1.6.0.

Workaround has been describe by my colleague Jocelyn here :

https://community.st.com/s/question/0D53W00000cRsLA/the-update-to-cubeide-160-cause-a-linker-error-compiling-the-userapp

Sump up of the workaround :

1) Removing the -l:se_interface_app.o from Tools Settings/Libraries/Libraries

2) Adding the same -l:se_interface_app.o in Tool Settings/Miscellaneous/Other flags

Eugene G
Associate II

That fixed it. Thanks!