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.
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.
Hi
You can't use UART as both application and log backend. I suspect you might have both enabled in sdk_config.h. You will have to set NRF_LOG_BACKEND_UART to 0 and alternatively use RTT as your backend. If you are having further trouble, please post your sdk_config.h file so I can have a look at it.
Best regards,
Simon
Thanks a lot,
It worked fine. One request, can you please elaborate this point
You will have to set NRF_LOG_BACKEND_UART to 0 and alternatively use RTT as your backend.
Once again thanks.
Regards.
M Rafiq
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
Of course
Well, not actually "of course": it could be done - be there'd have to be some sort of multiplexing scheme on the chip, and demultiplexing at the other end ...