-->
Page 3 of 8

Re: Programming via Esp8266?

PostPosted: Fri Sep 19, 2014 4:07 pm
by Squonk
Unfortunately, the Arduino 1.5 IDE is using scp and ssh to transfer the sketch file, prepend it with the bootloader and flash it with avrdude:
https://github.com/arduino/Arduino/blob ... r.java#L73

This won't work out-of-the box for us :(

Re: Programming via Esp8266?

PostPosted: Fri Sep 19, 2014 5:52 pm
by RichardS
<rant>I really detest this "NEW" world of embedded bloat, every is complete overkill!!!!!!</rant>

:-)

Richard.

Re: Programming via Esp8266?

PostPosted: Wed Sep 24, 2014 11:10 am
by M0ebius
My research lead to the following steps:

1. modify esp firmware:
wait for magic byte combination
toggle reset pin of arduino via gpio
enable transparency mode (to feed programming bytes into arduino)
until timeout (or byte counter or magic byte combo)

2. use virtual comport from com0com, so it should work with arduino ide (magic byte = first header bytes?).
or (write a little tool to connect to esp, send the magic byte and the arduino hex file with Stk500 protocol.)

Did i miss something?
Or is there an easier way?

Somebody here, who could take care of part 1? I can do part 2!

edit: found com0com

Re: Programming via Esp8266?

PostPosted: Wed Oct 22, 2014 8:31 am
by M0ebius
I've managed to upload sketches via the Esp:

- adapted esp firmware connects to ap and listens on a predefined port after powerup
- on connect, it resets the arduino via GPIO00 to enable the bootloader and switches to full transparent mode.
- The hex file is uploaded with a little tool (not via com0com)