Hi,
I'm working on:
- Mac mini M1
- macOS Ventura 13.1
In Visual Studio Code (1.74.2) / nRF Connect extension, I create new application with following params:
- nRF Connect SDK: 2.2.0 (/opt/nordic/ncs/v2.2.0)
- nRF Connect Toolchain: 2.2.0 (/opt/nordic/ncs/toolchains/v2.2.0)
- Application location: /Users/myname/apps
- Application template: zephyr/samples/bluetooth/peripheral_gatt_write
- Application name: peripheral_gatt_write
When building, this error occurs:
/opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: /Users/myname/apps/peripheral_gatt_write/src/peripheral_gatt_write.c:105: undefined reference to `last_write_rate'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.2.0/bin/cmake --build /Users/quan/Documents/nordic/Implementations/peripheral_gatt_write/build
I have not modified the code yet, but the compiler hits this error.
How should I fix this?