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. 

  • You may grabbed an older NRF connect SDK, the include path is correct for 2.2.x and newer.

    There was an include path change in the underlying zephyr RTOS.

  • Thanks for the reply.

    But I'm using version 2.2.0.

  • 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

  • Hi Naeem, 

    I've removed the existing SDK and installed the latest v2.3.0 sdk. Then I created a new application "Peripheral UART" and build the configuration with pjr_minimal.conf because I want it as nrf52810 in my nrf52832 DK. I've flashed the program in my DK but I can't see any LED blinking nor It is advertising. I've opened the serial port and it is continuously printing the "Starting Nordic UART service example" message.

    Please help me with it. Thanks in advance. 

  • Hi ,

    Can you please update regarding this?

    Thanks in advance.

1 2 3