Upgrading sketch via ESP8266

Let us know what you think about the chipKIT, and what can be done to make it better!
Post Reply
rs2845
Posts: 18
Joined: Tue May 17, 2016 9:02 pm

Upgrading sketch via ESP8266

Post by rs2845 » Thu Sep 28, 2017 9:51 pm

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.

EmbeddedMan
Posts: 597
Joined: Tue May 24, 2011 9:24 pm
Location: Minneapolis, MN
Contact:

Re: Upgrading sketch via ESP8266

Post by EmbeddedMan » Fri Sep 29, 2017 1:33 am

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

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Upgrading sketch via ESP8266

Post by majenko » Fri Sep 29, 2017 10:07 am

I have done it on Linux using socat. This is the ESP8266 code I use: https://github.com/MajenkoProjects/WiFiSerialDTR
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply