cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL55 SBSFU is not compiling on MacOS

FYASA.1
Associate II

Hello,

I am working on a project using STM32Cube_FW_WL_V1.0.0.

I cannot compile the 1_Image_SECoreBin project included in the BFU_1_Image sample project.

I am using STM32CubeIde on macOS Catalina.

I have also read these manuals.

"Getting started with the SBSFU of STM32CubeWL"

"Integration guide of SBSFU on STM32CubeWL (including KMS)"

Can you guys guide me?

0693W00000AMSsKQAX.png

1 ACCEPTED SOLUTION

Accepted Solutions
Jocelyn RICARD
ST Employee

Hi,

About bash option in Catalina this is quite strange as bash is supposed to be standard. I can't tell ...

About Win10 issue, this is a know issue related to latest STM32CubeIDE.

You can find the way to fix it in https://community.st.com/s/question/0D53W00000cRsLASA0/the-update-to-cubeide-160-cause-a-linker-error-compiling-the-userapp

Best regards

Jocelyn

View solution in original post

3 REPLIES 3
FYASA.1
Associate II

Hi there,

I also tried on Windows 10.

I installed necessary tool chain for STM32CubeMXIde.

Then I prepared SBSFU_2_Images_DualCore sample project

0693W00000AMa5BQAT.jpg 

I'm sure that, compiling the correct order according to Getting started with the SBSFU of STM32CubeWL (UM2767)

Compile order is;

  • 2_Images_SECoreBin - compile success
  • 2_Images_KMS_Blob - compile success
  • 2_Images_SBSFU
    • 2_Images_SBSFU_CM0PLUS - compile success
    • 2_Images_SBSFU_CM4) - compile success
  • 2_Images_UserApp_CM4 - compile success
  • 2_Images_UserApp_CM0PLUS - compiler error

The error is multiple definition error .

c:\st\stm32cubeide_1.6.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: ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o: in function `SE_KMS_CloseSession':

(.SE_IF_Code+0xbd8): multiple definition of `SE_KMS_CloseSession'; ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o:(.SE_IF_Code+0xbd8): first defined here

c:\st\stm32cubeide_1.6.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: ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o: in function `SE_KMS_DigestInit':

(.SE_IF_Code+0x121c): multiple definition of `SE_KMS_DigestInit'; ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o:(.SE_IF_Code+0x121c): first defined here

c:\st\stm32cubeide_1.6.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: ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o: in function `SE_KMS_EncryptInit':

(.SE_IF_Code+0xedc): multiple definition of `SE_KMS_EncryptInit'; ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o:(.SE_IF_Code+0xedc): first defined here

c:\st\stm32cubeide_1.6.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: ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o: in function `SE_KMS_DestroyObject':

(.SE_IF_Code+0xc94): multiple definition of `SE_KMS_DestroyObject'; ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o:(.SE_IF_Code+0xc94): first defined here

c:\st\stm32cubeide_1.6.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: ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o: in function `SE_KMS_Encrypt':

(.SE_IF_Code+0xf3c): multiple definition of `SE_KMS_Encrypt'; ../../../2_Images_SBSFU/STM32CubeIDE/CM0PLUS/Debug\se_interface_app.o:(.SE_IF_Code+0xf3c): first defined here

I didn't do any code change, I just downloaded and opened in STM32CubeIde.

Is this related with STM32Cube_FW_WL_V1.0.0 ?

What's wrong ?

Thank you

Jocelyn RICARD
ST Employee

Hi,

About bash option in Catalina this is quite strange as bash is supposed to be standard. I can't tell ...

About Win10 issue, this is a know issue related to latest STM32CubeIDE.

You can find the way to fix it in https://community.st.com/s/question/0D53W00000cRsLASA0/the-update-to-cubeide-160-cause-a-linker-error-compiling-the-userapp

Best regards

Jocelyn

FYASA.1
Associate II

Thank you Jocelyn,

The problem was caused by the macos. Catalina version uses default zsh instead of bash.

As a solution for those who encounter a similar problem: https://www.howtogeek.com/444596/how-to-change-the-default-shell-to-bash-in-macos-catalina/