ARM-software / ML-KWS-for-MCU

Keyword spotting on Arm Cortex-M Microcontrollers
Apache License 2.0
1.13k stars 414 forks source link

undefined reference to `__VECTOR_RAM' when build simple_test_k64f_gcc #129

Closed Mountain-with-sea closed 4 years ago

Mountain-with-sea commented 4 years ago

Hi, When building simple_test_k64f_gcc using ubuntu 16.04 , I get an error like below :

/home/jenkins/build_node_4_1/workspace/bm_wrap/1689/mbed-os/platform/mbed_sdk_boot.c:63: undefined reference to __VECTOR_RAM' liball.a(arm_rfft_fast_init_f32.o): In functionarm_rfft_32_fast_init_f32': /home/meng/ML-KWS-for-MCU/Deployment/Examples/simple_test_k64f_gcc/BUILD/../CMSIS_5/CMSIS/DSP/Source/TransformFunctions/arm_rfft_fast_init_f32.c:58: undefined reference to arm_cfft_init_f32' liball.a(arm_rfft_fast_init_f32.o): In functionarm_rfft_64_fast_init_f32': /home/meng/ML-KWS-for-MCU/Deployment/Examples/simple_test_k64f_gcc/BUILD/../CMSIS_5/CMSIS/DSP/Source/TransformFunctions/arm_rfft_fast_init_f32.c:88: undefined reference to arm_cfft_init_f32' liball.a(arm_rfft_fast_init_f32.o): In functionarm_rfft_128_fast_init_f32': /home/meng/ML-KWS-for-MCU/Deployment/Examples/simple_test_k64f_gcc/BUILD/../CMSIS_5/CMSIS/DSP/Source/TransformFunctions/arm_rfft_fast_init_f32.c:118: undefined reference to arm_cfft_init_f32' liball.a(arm_rfft_fast_init_f32.o): In functionarm_rfft_256_fast_init_f32': /home/meng/ML-KWS-for-MCU/Deployment/Examples/simple_test_k64f_gcc/BUILD/../CMSIS_5/CMSIS/DSP/Source/TransformFunctions/arm_rfft_fast_init_f32.c:148: undefined reference to arm_cfft_init_f32' liball.a(arm_rfft_fast_init_f32.o): In functionarm_rfft_512_fast_init_f32': /home/meng/ML-KWS-for-MCU/Deployment/Examples/simple_test_k64f_gcc/BUILD/../CMSIS_5/CMSIS/DSP/Source/TransformFunctions/arm_rfft_fast_init_f32.c:178: undefined reference to arm_cfft_init_f32' liball.a(arm_rfft_fast_init_f32.o):/home/meng/ML-KWS-for-MCU/Deployment/Examples/simple_test_k64f_gcc/BUILD/../CMSIS_5/CMSIS/DSP/Source/TransformFunctions/arm_rfft_fast_init_f32.c:207: more undefined references toarm_cfft_init_f32' follow ../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM/libmbed.a(mbed_us_ticker_api.o):(.rodata.us_interface+0x0): undefined reference to us_ticker_init' ../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM/libmbed.a(mbed_us_ticker_api.o):(.rodata.us_interface+0x4): undefined reference tous_ticker_read' ../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM/libmbed.a(mbed_us_ticker_api.o):(.rodata.us_interface+0x8): undefined reference to us_ticker_disable_interrupt' ../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM/libmbed.a(mbed_us_ticker_api.o):(.rodata.us_interface+0xc): undefined reference tous_ticker_clear_interrupt' ../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM/libmbed.a(mbed_us_ticker_api.o):(.rodata.us_interface+0x10): undefined reference to us_ticker_set_interrupt' ../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM/libmbed.a(mbed_us_ticker_api.o):(.rodata.us_interface+0x14): undefined reference tous_ticker_fire_interrupt'

After add arm_cfft_init_f32.c in Makefile still get this error:

/home/jenkins/build_node_4_1/workspace/bm_wrap/1689/mbed-os/platform/mbed_sdk_boot.c:63: undefined reference to `__VECTOR_RAM'

I didn't find definition about `__VECTOR_RAM' Can somebody help me to resolve this problem? Thanks