cancel
Showing results for 
Search instead for 
Did you mean: 

livetune Designer Source Code Compilation Error

mantwih
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Super User

So the actual error message is, "dangerous relocation: unsupported relocation"

Same message here: 

https://community.st.com/t5/stm32cubeide-mcus/cubeide-2-1-0-system-stm32wl3x-o-dangerous-relocation/m-p/883226

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.

View solution in original post

3 REPLIES 3
Andrew Neil
Super User

So the actual error message is, "dangerous relocation: unsupported relocation"

Same message here: 

https://community.st.com/t5/stm32cubeide-mcus/cubeide-2-1-0-system-stm32wl3x-o-dangerous-relocation/m-p/883226

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.

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?

 

Okay installing GNU tools for STM32 release 13.3 worked and got the project building.

Thanks