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

  • If you look at ticket 300239 in this forum you will see that my nRF52 DK is not supported by the nRFConnect SDK. So your recommendation is mis-informed.

    As you can see in my post here, what I'm doing is exactly as you recommended - comparing my sdk_config.h file to the one in the UART example. The two files are drastically different and the UART documentation is no help because it doesn't talk about how to enable the UART.

    I'm stuck. You guys aren't supporting the sdk_config.h file for my DK and your new nRF Connect platform doesn't support the DK either. What should I do?

Reply
  • If you look at ticket 300239 in this forum you will see that my nRF52 DK is not supported by the nRFConnect SDK. So your recommendation is mis-informed.

    As you can see in my post here, what I'm doing is exactly as you recommended - comparing my sdk_config.h file to the one in the UART example. The two files are drastically different and the UART documentation is no help because it doesn't talk about how to enable the UART.

    I'm stuck. You guys aren't supporting the sdk_config.h file for my DK and your new nRF Connect platform doesn't support the DK either. What should I do?

Children
Related