2016년 1월 1일 금요일

ESP8266 - esptool-ck 플래싱 추천.

WeMo의 ESP8266+USB 통합모듈(http://www.wemos.cc/wiki/doku.php?id=en:d1_mini) 사용 중인데 아주 맘에 든다.
드라이버 신경 안써도 되고 바로 사용할 수 있고 크기도 작고 가격도 적절.
커스텀 빌드 롬을 올리려고 보니 기존 esptool 말고 권장하는 것이 있어

https://github.com/igrr/esptool-ck 를 사용해보았다.
OS별 다운로드는 여기(https://github.com/igrr/esptool-ck/releases)

esptool -vv -cd nodemcu -cb 921600 -cp COM5 -ca 0x00000 -cf firmware.bin
실행해보니

esptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting board to nodemcu
        setting baudrate from 115200 to 921600
        setting port from COM1 to COM3
        setting address from 0x00000000 to 0x00000000
        espcomm_upload_file
        stat firmware\nodemcu-master-27-modules-2015-12-31-19-46-51-float.bin success
        setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_open
Uploading 486419 bytes from firmware\nodemcu-master-27-modules-2015-12-31-19-46-51-float.bin to flash at 0x00000000
        erasing flash
        size: 076c13 address: 000000
        first_sector_index: 0
        total_sector_count: 119
        head_sector_count: 16
        adjusted_sector_count: 103
        adjusted_size: 067000
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        setting serial port timeouts to 10000 ms
        setting serial port timeouts to 1000 ms
        espcomm_send_command: receiving 2 bytes of data
        writing flash
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
starting app without reboot
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
closing bootloader
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete

엄청좋네?
스스로 플래싱하고 리붓하고 알아서 잘 한다.
GPIO0 을 건드리지 않아도 되니 엄청 편하다.