I followed the instructions listed in “Zephyr and Nordic nRF52-DK: debugging, unit testing, project analysis” tutorial ([link])(Zephyr and Nordic nRF52-DK: debugging, unit testing, project analysis — PlatformIO latest documentation), but I get the following error:
src/main.c:15:21: error: ‘CONFIG_BT_DEVICE_NAME’ undeclared here (not in a function); did you mean ‘CONFIG_TIMESLICE_SIZE’?
If I replace CONFIG_BT_DEVICE_NAME in main.c to “TEST” or 0, I get the folllowing linker error:
/home/mustafa/.platformio/packages/toolchain-gccarmnoneeabi/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld: .pio/build/nrf52840_dk/src/main.o: in function
bt_ready': /home/mustafa/Documents/PlatformIO/Projects/hw2/src/main.c:51: undefined reference to
bt_le_adv_start’
/home/mustafa/.platformio/packages/toolchain-gccarmnoneeabi/bin/…/lib/gcc/arm-none-eabi/8.2.1/…/…/…/…/arm-none-eabi/bin/ld: .pio/build/nrf52840_dk/src/main.o: in functionmain': /home/mustafa/Documents/PlatformIO/Projects/hw2/src/main.c:68: undefined reference to
bt_enable’
collect2: error: ld returned 1 exit status
*** [.pio/build/nrf52840_dk/firmware-pre.elf] Error 1
Any idea what is going on? Thx!