2026-03-31 8:19 AM
Having issues compiling the source code found in the audio kit for the designer application.
C:\x-cube-audio-kit-v1-4-1\package\Projects\STM32H573I-DK\Applications\Livetune\STM32CubeIDE\Designer
After importing the project into STM32 Cube IDE when I attempt to build the source without changing anything I get the following error....
make -j22 all
arm-none-eabi-gcc -o "firmware.elf" @"objects.list" ../../../../../../../Middlewares/ST/STM32_Audio/Addons/PDM/Lib/libPDMFilter_CM33_GCC_wc32.a ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChain_CM33_GCC.a ../../../../../../../Drivers/CMSIS/DSP/Lib/libCMSISDSP_CM33_GCC.a -mcpu=cortex-m33 -T"../Project.ld" --specs=nosys.specs -Wl,-Map="firmware.map" -Wl,--gc-sections -static -L../../../../../../Drivers/CMSIS/DSP/Lib/GCC -L../../../../../../Middlewares/ST/STM32_Audio/Addons/PDM/Lib -Xlinker -no-wchar-size-warning -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src_asm.o)(asm_nr_fltr_frm): Unknown destination type (ARM/Thumb) in ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src.o)
../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src.o): in function `s_fltr_frm':
C:/STM32/audio-kit/Firmware/Middlewares/ST/Audio-Kit/src/algos/nr/src/enh_src.c:2294:(.text.enh_main+0x202): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src_asm.o)(asm_nr_fltr_frm): Unknown destination type (ARM/Thumb) in ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src.o)
C:/STM32/audio-kit/Firmware/Middlewares/ST/Audio-Kit/src/algos/nr/src/enh_src.c:2294:(.text.enh_main+0x324): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src_asm.o)(asm_nr_fltr_frm): Unknown destination type (ARM/Thumb) in ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src.o)
C:/STM32/audio-kit/Firmware/Middlewares/ST/Audio-Kit/src/algos/nr/src/enh_src.c:2294:(.text.enh_main+0x738): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src_asm.o)(asm_nr_fltr_frm): Unknown destination type (ARM/Thumb) in ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src.o)
C:/STM32/audio-kit/Firmware/Middlewares/ST/Audio-Kit/src/algos/nr/src/enh_src.c:2294:(.text.enh_main+0x858): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src_asm.o)(asm_nr_fltr_frm): Unknown destination type (ARM/Thumb) in ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src.o)
C:/STM32/audio-kit/Firmware/Middlewares/ST/Audio-Kit/src/algos/nr/src/enh_src.c:2294:(.text.enh_main+0x932): dangerous relocation: unsupported relocation
C:/ST/STM32CubeIDE_1.18.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/bin/ld.exe: ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src_asm.o)(asm_nr_fltr_frm): Unknown destination type (ARM/Thumb) in ../../../../../../../Middlewares/ST/Audio-Kit/lib/libAudioChainAlgos_CM33_GCC.a(enh_src.o)
C:/STM32/audio-kit/Firmware/Middlewares/ST/Audio-Kit/src/algos/nr/src/enh_src.c:2294:(.text.enh_main+0x9de): dangerous relocation: unsupported relocation
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:196: firmware.elf] Error 1
make: *** [makefile:189: all] Error 2
"make -j22 all" terminated with exit code 2. Build might be incomplete.I can import and build the tuner and release source codes just fine. Just not the designer source code.
Any thoughts? Been trying to find the differences between the 3 projects but haven't found the issue yet.
Solved! Go to Solution.
2026-03-31 8:27 AM
So the actual error message is, "dangerous relocation: unsupported relocation"
Same message here:
2026-03-31 8:27 AM
So the actual error message is, "dangerous relocation: unsupported relocation"
Same message here:
2026-03-31 9:07 AM
Hi Andrew,
Thanks for pointing me to that thread.
I am running STM32CubeIDE 2.1.1 using GNU tools for STM32 14.3.rel1.
Are we saying the solution would be go back to CubeIDE 2.1.0 and GNU tools 13.3?
2026-03-31 10:07 AM
Okay installing GNU tools for STM32 release 13.3 worked and got the project building.
Thanks