- Wed Sep 27, 2017 9:14 am
#70363
Hey all i'm a noob and am just trying to get started here. My first goal was to modify blinky to send data back to me via the serial port. I tried using at_port_print from at_custom.h but it would not even compile (no reference to at_port_print type error. not sure if I need extra compile flags). Instead of spending more time on this I switched to attempting os_printf by performing uart_div_modify(0, UART_CLK_FREQ / 9600) in the user_init. That didn't work either. Now for the crazy part. My modified blinky incidentally had some code to connect to wifi before realizing my first goal should be finding a way to do logging. If I flash my modified blinky and then another program on top that is almost empty I start seeing logs from the wifi initialization. I tried to take the lines that were unique to the second program and moving them to the first but it still only works if I flash them in order. I'm not sure what this means but I think it rules out a lot of variables that could be preventing me from seeing my own logs. I added the two source file and the make file to the post here ( i had to change them from .c to .txt). I flash blinky.txt, push the reset pin -> just garbage in the serial monitor. flash blinky2.txt (has no wifi code in it) -> now I see the wifi configuration logs in my serial monitor from the first file. I've spent around a week just trying to get setup. I feel like i'm so close but I can't get over this hurdle. If anyone could help get me passed this i'd be very grateful. [I've since removed the files from the post]
Note: I once did erase_flash and put the esp_init_data_default.bin back at the right address.
Setup: recently cloned esp-open-sdk which in turn downloaded v2.0.0 of the official SDK. The chip is a ESP-12E from amazon:
https://www.amazon.com/gp/product/B010O ... UTF8&psc=1.