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

Logging over CLI with FreeRTOS

Hello!

Our current project is bare metal and has logging over CLI. I'm in the process of setting up a new project of ours that uses FreeRTOS but reuses a lot of the same code that we already have. So I'm trying to get logging over CLI function with FreeRTOS but I'm not able to and there are no examples, documentation or other DevZone tickets with hints.

I got the logging part working fine by adding a logger task. So I'm thinking that I could add the nrf_cli_process in that task loop as well. But I would still need to have the task be woken up by the UART Rx (libuarte to be exact).

I tried notifying the logger task in cli_transport_evt_handler but it didn't work.

Has anybody gotten logging over CLI working in FreeRTOS? Any hints would be greatly appreciated!

Related