Hi,
I have an application and I want to send the output of the application via CoAP LTE connection. My plan is to modify the nrf-sdk CoAP Client sample to achieve this. I am using Ubuntu 20.04 and build/program from the terminal by using west build and west flash commands.
I am using the tinycbor from the zepyhr modules and I add it with the following line in the CMakeLists.txt:
zephyr_include_directories( $ENV{ZEPHYR_BASE}/../modules/lib/tinycbor/src)
When I build the application with (west build -b nrf9160dk_nrf9160) I don't get any error and I can (west flash) and see that it is working.
However, when I build it with (west build -b nrf9160dk_nrf9160ns) I get the error:
fatal error: cbor.h: No such file or directory
19 | #include <cbor.h>
| ^~~~~~~~
This error makes me think that the tinycbor module is not included when building for the non-secure region.
I know that in order to reach the modem and start an LTE connection, I need to be able to build it for the non-secure region.
So my question is: what might be the reason that this is happening and what can I do about it?
Thanks in advance