Trying to enable the UART

I'm getting this error when I try to init the UART:

I have app_uart.c in the project, but a little investigation shows that it's not "enabled" in sdk_config.h.

When I look at the docs for the UART driver, I don't see anything about what to enable in sdk_config.h:

When I browse around the config file using CMSIS, I see a huge list of libraries, but nothing that says UART:

What should I enable in the config file to turn on the UART? Why not spell that out in the uart document page?

In another effort along the same lines, I thought I might compare the config files between my project and the uart example:

But, as you can see, there are things in the uart example on the left that don't exist in my project. I got my sdk_config.h file from here: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fsdk_config.html using the path sdk/nrf5/config/nrf52832/config/sdk_config.h for nRF52832.

Parents
  • Hi,

    Unfortunately the sdk_config.h files are not complete, they typically only contain the configuration required to run the example. So in this case you need to compare the sdk_config.h with a project that is using app_uart and copy and paste all configurations that may be missing.

    For new development use the nRF Connect SDK instead, then you avoid this.

    Kenneth

Reply
  • Hi,

    Unfortunately the sdk_config.h files are not complete, they typically only contain the configuration required to run the example. So in this case you need to compare the sdk_config.h with a project that is using app_uart and copy and paste all configurations that may be missing.

    For new development use the nRF Connect SDK instead, then you avoid this.

    Kenneth

Children
Related