ESP8266 SDK: os_printf() prints garbage, uart_init() doesn’t work…
Espressif SDK provides a function os_printf() for printing to the debug uart. However, when used out of the box it prints garbage. What gives? Consider a default project with the following in user_main.c.
1 2 3 |
void user_init(void) { os_printf("hello world\n"); } |
Compile, run, what do you see? That’s right – garbage. Well, it’s not really garbage, it’s actually outputting “hello world” at […]