Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to use deferred NRF logging and twi manager

Hi,

When using the TWI manager you normally provide a callback function that is executed once the transaction has been completed. I'm using the NRF logger module to display the output from the device to my computer and don't know how I'm supposed to print the output of the transaction within the callback as the logger module is described as non-thread-safe (when I attempt to do so it throws and NRF BUSY error). I add a log in the main() function but I wouldn't know when the transaction had been completed.

As I'm using FreeRTOS should I include an NRF_LOG_FLUSH task and just rely on that?

Parents Reply Children
No Data
Related