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

using RTT console to print along with newlib C library in Zephyr

Hello everyone,
I am using NrfConnect with Zephyr on Segger embedded studio .
I want tu use the math logarithm function in my code and print the result on the debug terminal. At first when enabling the "Use RTT for console" configuration, printf works, then I wanted to add the math.h log function which gave me "Undefined reference to log" error.
To resolve the error I checked the "Newlib C library" configuration which made the log function work but then I realised the printf does not work anymore.
Printf does not throw any error but nothing is printed on the Debug terminal.
How can I use both log and printf with RTT console ?

OS: windows
Board: Nrf52DK
SDK: nrf Connect sdk v1.5.0
RTOS: Zephyr

Parents Reply Children
Related