Discuss here different C compiler set ups, and compiling executables for the ESP8266
User avatar
By erikjl
#60693
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 alluart_div_modify(0, UART_CLK_FREQ / 115200);

I think os_printf() just requires that osapi.h is included.

And viewing the uart output using screen
Code: Select allsudo screen /dev/ttyUSB0 115200


Hopefully that helps you
-smh


Hi!

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?