10:40:31 **** Incremental Build of configuration Debug for project acconeer_example **** make -j8 all arm-none-eabi-gcc -o "acconeer_example.elf" @"objects.list" -lacconeer -mcpu=cortex-m4 -T"/home/me/unpack/acconeer_example/STM32F401RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="acconeer_example.map" -Wl,--gc-sections -static -L"/home/me/unpack/acconeer_example/cortex_m4/rss/lib" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group Core/Src/example_detector_distance.o: In function `acc_example_detector_distance': /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:47: undefined reference to `acc_detector_distance_configuration_create' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:56: undefined reference to `acc_detector_distance_create' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:61: undefined reference to `acc_detector_distance_configuration_destroy' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:66: undefined reference to `acc_detector_distance_configuration_destroy' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:68: undefined reference to `acc_detector_distance_activate' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:71: undefined reference to `acc_detector_distance_destroy' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:84: undefined reference to `acc_detector_distance_get_next' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:95: undefined reference to `acc_detector_distance_deactivate' /home/me/unpack/acconeer_example/Debug/../Core/Src/example_detector_distance.c:97: undefined reference to `acc_detector_distance_destroy' collect2: error: ld returned 1 exit status make: *** [makefile:50: acconeer_example.elf] Error 1 "make -j8 all" terminated with exit code 2. Build might be incomplete. 10:40:32 Build Failed. 10 errors, 0 warnings. (took 817ms)
This error means you have forgotten to link the "acc_detector_distance" library to the linker.
Resolve by:
If running STM32CubeIDE then this can be solved by going into "Project" -> "Properties" -> "C/C++ Build" -> "Settings" -> "MCU GCC Linker" -> "Libraries" and adding "acc_detector_distance" to the "Libraries" field. Notice that the detectors needs to be linked before the "acconeer" library and need to be above it.