This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to include existing header files to main.c?

Hello.

I want to integrate UART and SPI ,I am using SDK15.2. The problem here is i am not able to add app_uart.h to main.c(spi).

My question here is how to add it to main,c? 

I am using Keil uVision.

Thanks in Advance. 

Parents
  • Of course, the UART cannot be used as an application and a backend logger at the same time. You will have to choose one of the functionalities, and seeing as you want to use UART in your application, you have to disable the UARTs backend logger, which is NRF_LOG_BACKEND_UART. If you want a backend logger anyway, you can use the RTT (Real-Time Terminal) as your backend logger instead.

    Best regards,

    Simon

Reply
  • Of course, the UART cannot be used as an application and a backend logger at the same time. You will have to choose one of the functionalities, and seeing as you want to use UART in your application, you have to disable the UARTs backend logger, which is NRF_LOG_BACKEND_UART. If you want a backend logger anyway, you can use the RTT (Real-Time Terminal) as your backend logger instead.

    Best regards,

    Simon

Children
Related