Hello,
in SDK 11 I was using non blocking function to check if there is data to read from UART logger called: NRF_LOG_HAS_INPUT
.
I can not find any function like that in SDK 12.
Is it there somewhere?
If not why did you remove it??
Hello,
in SDK 11 I was using non blocking function to check if there is data to read from UART logger called: NRF_LOG_HAS_INPUT
.
I can not find any function like that in SDK 12.
Is it there somewhere?
If not why did you remove it??
The logger module in SDK 11 was experimental, and has changed significantly in SDK 12. One of the changes is that it was decided that the logger module should be unidirectional, supporting logging only. However, this is only partially true, as the very simple blocking NRF_LOG_GETCHAR()
was added because it was needed in a few examples (twi_master_with_twis_slave and flashwrite).
If you need UART or RTT input (other than blocking single character read) you should use the UART driver or RTT API directly instead.
The logger module in SDK 11 was experimental, and has changed significantly in SDK 12. One of the changes is that it was decided that the logger module should be unidirectional, supporting logging only. However, this is only partially true, as the very simple blocking NRF_LOG_GETCHAR()
was added because it was needed in a few examples (twi_master_with_twis_slave and flashwrite).
If you need UART or RTT input (other than blocking single character read) you should use the UART driver or RTT API directly instead.
Thank you for answer. It is sad news for me as I was using UART for controlling my demo project. The NRF_LOG_GETCHAR() has disadvantage that is blocking. And UART is now not configured to generate wakeup events... But OK I will rewrite the logger to better suits me...
actually it is easy. Segger is initialized by Nordic SDK logger. So in app you just need to add: #include "SEGGER_RTT.h"
and SEGGER_RTT_HasKey()
and SEGGER_RTT_GetKey()
can be directly used.