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. 

  • Hi ,

    I've opened a new application and selected the peripheral UART application and in the build configuration, I've selected the nrf52dk_nrf52810 board and prj_minimal.conf file.

    In the prj_minimal.conf file I've added the CONFIG_BT_LL_SOFTDEVICE=y line and changed CONFIG_MAIN_STACK_SIZE=2000. Then I built and flashed the application in my nrf52832dk.

    Still, it's not advertising. Am I missing any steps here?

  • I am not sure with you might be missing and/or is wrong with your setup.

    In my previous response, you can see that those configurations worked.

    As you are also applying the same configurations, only thing I could imagine is not choosing "prj_minimal.conf" during the build.

1 2 3