I figured I'd post here to start. I am working to implement a PIC boot loader HOST side into my project where the onboard PIC can be updated from the ESP-8266 that downloads the latest firmware from a website. I'm just getting started and need access to debug information as I go to see whats going on.
The primary RX/TX UART0 is being used to talk to the PIC and I can't really send debug info over that line as it might cause problems with the boot loader process. I'd really like to use what I have seen referenced as UART1 that some say hangs on GPIO2 to do this.
In HarwareSerial.cpp I see the following:
HardwareSerial::HardwareSerial(const int uartPort)
: uart(uartPort)
{
resetCallback();
}
So it looks like I can instantiate an instance of HardwareSerial and pass in port 1? Then call begin, etc on it with the baud rate?
Has anyone done this before?
Now next question, on an ESP-12, I have GPIO2 tied high to 3.3V as thats what I was told needed to be done for it to boot. How is this supposed to support output then.
Anyways, if anyone has any insight to get me going, that would be great.