cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE 2.1.0: system_stm32wl3x.o dangerous relocation: unsupported relocation

RWalko
Associate III

I have created a project for the STM32WL33 several weeks ago, using the DEEPSTOP mode with context restoration provided by ST. Even if there are some pitfalls with this the project worked mostly fine. But after the update to STM32CubeIDE 2.1.0 I get a compilation error:

./System/Startup/cpu_context_switch.o(CPUcontextRestore): Unknown destination type (ARM/Thumb) in ./Core/Src/system_stm32wl3x.o
dangerous relocation: unsupported relocation
make: *** [makefile:89: Euris3-EHKV-WMBus.elf] Error 1

I've reverted the version to 2.0.0 and the error is gone.

10 REPLIES 10

@Andrew Neil wrote:

@Ghofrane GSOURI @Mahmoud Ben Romdhane 

Another example of the same issue has just appeared - this time with H7 & X-CUBE-AUDIO-KIT:


And another here: Unknown destination type (ARM/Thumb) linking error in cube ide

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.