cancel
Showing results for 
Search instead for 
Did you mean: 

Build error related to TrustZone

zsigmons
Visitor

Hey!

I tried migrating a project from CubeIDE to VSCode, and I can't get rid of a build error related to the TrustZone feature. I'm using a Nucleo N657X0-Q card. This error occurs when trying to build the project:
C:/Users/[redacted]/AppData/Local/stm32cube/bundles/gnu-tools-for-stm32/13.3.1+st.9/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: address 0x34000060 of robonaut-firmware_Appli.elf section `.gnu.sgstubs' is not within region `ROM'
C:/Users/[redacted]/AppData/Local/stm32cube/bundles/gnu-tools-for-stm32/13.3.1+st.9/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: address 0x34000060 of robonaut-firmware_Appli.elf section `.gnu.sgstubs' is not within region `ROM'
C:/Users/[redacted]/AppData/Local/stm32cube/bundles/gnu-tools-for-stm32/13.3.1+st.9/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: ERROR: CMSE stub (.gnu.sgstubs section) too far (0x34000040) from destination (0x70100f64)

The project works fine in CubeIDE, this error only appears in VSCode.

Thanks in advance!

0 REPLIES 0