smh wrote:G'day mate,
Within the user_init() function I've been using this line to setup the uart with baudrate of 115200.Code: Select all
uart_div_modify(0, UART_CLK_FREQ / 115200);
I think os_printf() just requires that osapi.h is included.
And viewing the uart output using screenCode: Select all
sudo screen /dev/ttyUSB0 115200
Hopefully that helps you
I ran into this same problem, used this solution, but it's still printing garbage. I tried both minicom and screen with no luck. The os-printf is inside a timer function in the blinky example if that matters. Any ideas?