Page 1 of 1

Upgrading sketch via ESP8266

Posted: Thu Sep 28, 2017 9:51 pm
by rs2845
Hello all,

Is it possible to upgrade a Chipkit DP32's sketch via an ESP8266? I have used the design in one of my projects, it's not "actually" a DP32 board, but it would be great to update the sketch over the air as I can and already am doing with my ESP8266 modules..

Currently I have been using the PIC32 without a bootloader and flashing with PICKIT3. Never managed to get my Mac or PC to "detect" the PIC32's USB.

Re: Upgrading sketch via ESP8266

Posted: Fri Sep 29, 2017 1:33 am
by EmbeddedMan
I think it should be. If the ESP8266 can be a 'transparent UART' (which I believe it can) then you will be able to route serial data from a PC, up through the internet and over to the ESP. You'll need to put a serial bootloader on your 'chipKIT' MCU, and connect the two serial ports (ESP and PIC32).

The piece I don't know how to do at this point is the PC side - you'll need to tell pic32prog to use a COM port on your PC that's virtual, and have that virtual com port tunnel over to the ESP.

*Brian

Re: Upgrading sketch via ESP8266

Posted: Fri Sep 29, 2017 10:07 am
by majenko
I have done it on Linux using socat. This is the ESP8266 code I use: https://github.com/MajenkoProjects/WiFiSerialDTR