-->
Page 1 of 1

Flash PIC with ESP8266

PostPosted: Sun Jul 05, 2015 7:28 am
by Synergy679
Hi,

I have been working on a project using the ESP-12 module. So far everything is pretty much as i like it to be apart from one thing. Updating the PICs firmware controlling the WiFi module.
Currently this is setup using a USB to serial adapter plugged into a PC. The device i am working on will be difficult to unplag and take to a PC and in todays world Updating via WiFi is just something people expect to see.

Is it possible, without changing any firmware on the WiFi Module to use it to update the PICs firmware?
While i am asking, can the WiFis own firmware be updated over air too?

I look forward to seeing what can be done.

Re: Flash PIC with ESP8266

PostPosted: Mon Jul 06, 2015 3:27 pm
by picstart
The esp8266 could update a PIC via the esp8266 uart to a bootloader installed on the pic that also uses a (connected to the esp8266) uart.
The esp8266 can be updated over the air (OTA). That leaves serving the PIC programs hex code from somewhere. It could potentially be stored in the flash attached to the esp8266 if there is space or alternatively from a pc server with the pic hex code to the esp8266 client and them onto the PIC bootloader.

Re: Flash PIC with ESP8266

PostPosted: Tue Jul 07, 2015 3:37 am
by bjpirt
I'm doing exactly that with an Arduino - upload a new hex file via HTTP, cache it in the ESP flash and then reset the Arduino and upload it using the bootloader protocol. No reason the same thing couldn't be done for the PIC. If you're interested in some code as a starting point you can take a look at:

https://github.com/mirobot/mirobot-wifi

Cheers,
Ben