OK, cool, now I copied the blinky code to another directory, changed the name from blinky to usermain, edit the makefile for the name changed, fixed the flash locations, and got THAT to compile and load and run. Then implemented a simple http server, and THAT works. Progress. So now I move on getting the serial communication to work, and I start with just putting os_printf statements in my app, but I see no output. Boo hoo.
If I reset/reboot the board, it spits out some garbage, which I assume is the wrong baud rate, but it does show that minicom is getting output from the esp8266. I tried different baud rates, 115200 garbage, 78800 garbage, etc, and no success here, and don't really care about the boot messages anyway, but I still don't see any outputs from my app os_printf statements, not even any garbage. What could be wrong? Well some say I must init the uart in my user_setup, but I have not seen that done in any examples, but I tried it and there is no uart_init symbol defined.
OK, another post There was a uart_div_modify(0, UART_CLK_FREQ / 115200) to change the baud, so I tried that and uart_div_modify was defined, but this didn't cause any output to be seen, so I went back to trying to get a uart_init working.
This lead me to digging around until I found libdriver.a with that symbol, and when I link that lib to my app, I get a iram1_0_seg overflow. WTF? So then I found uart.c
and got that to compile and linked that into my app, and get the same overflow error.
Ok, I'm stumped.
A) shouldn't os_printf just output to the same serial line (uart0) that is used to upload new firmware? I read that uart1 can also be used but docs say uart0 is the default.
B) do I need to init the uarts?
thanks, appreciate any help.