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,

    This does not look like issue related to the DK or the project configuration file.

    It appears to be the sdk/zephyr path configuration and/or the incorrect installation.

    Can you please reinstall the required SDK version through the ToolChain Manager (NRF Connect for Desktop).

    In such a case, please first remove the SDK, and then do a fresh install.

    You may also update the SDK and update the toolchain.

    Additionally, you may like to update the nRF Connect for Desktop app as well.

    Regards,

    Naeem

Children
Related