3

It is possible to flash the ESP8266 12-F with the raspberry UART or I2C pins ? Has anyone ever done this? Thank you.

EDIT: OK it's work, finally I just had big problems with my breaboard and my connections. ... enter image description here

4

It is possible to flash the ESP8266 12-F with the raspberry UART pins ? Has anyone ever done this?

I've used the USB ports for this with esptool.py.

esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --port /dev/ttyUSB0 write_flash -fm dio 0x00000 nodemcu.bin

I use "nodeMCU" style boards that have a micro USB jack (so using a normal micro USB cable). I also thought hardware flow control, which the Pi UART conventionally lacks, was necessary, but looking around this is not be the case, you just have to hold CH_PD and/or some other line high. So it should be possible.

I've found the serial interface on the ESP a bit fussy -- as in good ol' minicom is not reliable with it, the best thing seems to be miniterm.py, which is part of the pyserial package.

  • Thank you for your reply. You use the usb port with additional FTDI for example ? – Ephemeral Jul 20 at 11:18
  • Thank you for your editing. – Ephemeral Jul 20 at 11:23
  • 1
    No, I use a micro USB cable directly; the nodeMCU ones are big breakouts with a jack on them. I may have used an FTDI cable at some point, I know I've had an ESP that required it (no jack on the breakout). – goldilocks Jul 20 at 11:24
  • Thank you it's helpfull for understand. – Ephemeral Jul 20 at 11:25
  • 1
    typical current usage on ESP8266 less than 200mA, not more than 500mA @Ephemeral – Jaromanda X Jul 21 at 0:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.