Git Product home page Git Product logo

m5stack-esp12-shield's Introduction

ESP12 Flasher for M5Stack-ESP12-Shield

PIN Mapping:

     M5Stack | ESP12
 ------------+------------
    16 (Rx2) | D1 (TX0)
    17 (Tx2) | D3 (RX0)
          12 | D0 (FLASH)
          13 | RESET
        3.3v | VCC
        3.3v | D2
        3.3v | CH_PD (EN)
         GND | GND
         GND | D15

Using the Arduino IDE:

  • Compile & Upload this sketch on the M5Stack
  • Change board to ESP8266
  • Set Baudrate to "115200"
  • Set Flash Mode to "DOUT"
  • Set Reset Method to "no dtr (aka ck)"
  • Open your ESP8266 sketch
  • Hit the Button B on the M5 so the ESP8266 waits for flashing
  • Hit the Upload button

Also acts as a serial bridge (115200) after flash timeout.

ESP8266 Flash settings

image

m5stack-esp12-shield's People

Contributors

tobozo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

m5stack-esp12-shield's Issues

Help with SPIFFS uploader ignoring boards settings

The current ESP8266 Sketch Data Upload tool fails as it ignores the "reset method" and "flash mode" board settings,

esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting........_
Chip is ESP8266EX
Features: WiFi
WARNING: Detected crystal freq 20.33MHz is quite different to normalized freq 26MHz. Unsupported crystal in use?
Crystal is 26MHz
MAC: 00:08:ff:00:00:00
Uploading stub...
Running stub...
Traceback (most recent call last):
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 2909, in main
    esp = esp.run_stub()
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 637, in run_stub
    p = self.read()
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 292, in read
    return next(self._slip_reader)
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 2057, in slip_reader
    raise FatalError('Invalid head of packet (0x%s)' % hexify(b))
esptool.FatalError: Invalid head of packet (0x46)
SPIFFS Upload failed!

image

Possible workarounds:

  • Manual upload
    ~/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/upload.py --chip esp8266 --port /dev/ttyUSB0 --baud 115200 --before no_reset --after soft_reset write_flash 0x100000 /tmp/arduino_build_15608/Unpack_targz_file.spiffs.bin

  • OTA SPIFFS upload (from esp32 to esp8266, or from Arduino IDE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.