The coap_client sample is not building for the nrf9160_pca10090 board. I'm using v1.0.0 of the nRF Connect SDK. The commands used from the coap_client directory are:
- mkdir build && cd build
- cmake .. -GNinja -DBOARD=nrf9160_pca10090
- ninja
The build begins but fails with this error:
[57/129] Building C object zephyr/modules/nrf/drivers/at_cmd/CMakeFiles/..__nrf__drivers__at_cmd.dir/at_cmd.c.obj
FAILED: zephyr/modules/nrf/drivers/at_cmd/CMakeFiles/..__nrf__drivers__at_cmd.dir/at_cmd.c.obj
C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v1.14.99-ncs2 -DKERNEL -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -IC:/Users/me/Desktop/ncs/zephyr/kernel/include -Ic:/Users/me/Desktop/ncs/zephyr/arch/arm/include -IC:/Users/me/Desktop/ncs/zephyr/include -IC:/Users/me/Desktop/ncs/zephyr/include/drivers -Izephyr/include/generated -Ic:/Users/me/Desktop/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -Ic:/Users/me/Desktop/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/Users/me/Desktop/ncs/zephyr/lib/libc/minimal/include -IC:/Users/me/Desktop/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/Users/me/Desktop/ncs/zephyr/ext/hal/cmsis/Include -IC:/Users/me/Desktop/ncs/zephyr/ext/hal/nordic/nrfx -IC:/Users/me/Desktop/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -IC:/Users/me/Desktop/ncs/zephyr/ext/hal/nordic/nrfx/hal -IC:/Users/me/Desktop/ncs/zephyr/ext/hal/nordic/nrfx/mdk -IC:/Users/me/Desktop/ncs/zephyr/ext/hal/nordic/. -IC:/Users/me/Desktop/ncs/zephyr/subsys/net/lib/coap/. -IC:/Users/me/Desktop/ncs/zephyr/subsys/net/lib/sockets/. -I../../../../include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include-fixed -Os -nostdinc -g -imacros C:/Users/me/Desktop/ncs/nrf/samples/nrf9160/coap_client/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -mthumb -mcpu=cortex-m33 -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -std=c99 -MD -MT zephyr/modules/nrf/drivers/at_cmd/CMakeFiles/..__nrf__drivers__at_cmd.dir/at_cmd.c.obj -MF zephyr\modules\nrf\drivers\at_cmd\CMakeFiles\..__nrf__drivers__at_cmd.dir\at_cmd.c.obj.d -o zephyr/modules/nrf/drivers/at_cmd/CMakeFiles/..__nrf__drivers__at_cmd.dir/at_cmd.c.obj -c C:/Users/me/Desktop/ncs/nrf/drivers/at_cmd/at_cmd.c
C:/Users/me/Desktop/ncs/nrf/drivers/at_cmd/at_cmd.c:12:10: fatal error: bsd_limits.h: No such file or directory
#include <bsd_limits.h>
^~~~~~~~~~~~~~
compilation terminated.
I have seen some workarounds with using nrf9160_pca10090ns and loading SPM and the application separately but I would like to know what the actual fix is to directly build SPM. Does anyone know how?