Fatal Error while building peripheral UART example.

Hi,

I'm trying to test the peripheral UART example in the nRF connect SDK in the nrf52810 dk. I've built the configurations as prj_minimal.conf as mentioned in the Document. but I'm getting Fatal error uart_async_adapter.h:22:10: fatal error: zephyr/device.h: No such file or directory 22 | #include <zephyr/device.h>.

How can I solve it? Thanks in advance. 

Parents Reply
  • Hi Nabeel,

    I have just tested it on my end. In the prj_minimal.conf, please do the following 2 changes:

    (some users forget to edit the prj_minimal.conf file and just edit the prj.conf which would not be correct):

    Add this line to the prj_minimal.conf:

    CONFIG_BT_LL_SOFTDEVICE=y

    Edit the Main_Stack in the prj_minimal.conf from 640 to 2000:

    CONFIG_MAIN_STACK_SIZE=2000

    Hope it resolves the issue.

    Regards,
    Naeem

Children
Related