Micropython 01 start: Difference between revisions
From artserver wiki
(Created page with "# Board: ESP8266 * [uPython esp8266/quickref http://docs.micropython.org/en/latest/esp8266/quickref.html] ## Flash uPython * uPython firmware: http://micropython.org/downloa...") |
(No difference)
|
Revision as of 21:23, 18 August 2019
- Board: ESP8266
- [uPython esp8266/quickref http://docs.micropython.org/en/latest/esp8266/quickref.html]
- Flash uPython
- uPython firmware: http://micropython.org/download#esp8266 download latest stable
- install esptool.py to flash the board
pip install esptool
Flash squence:
- connect board to usb
- erase the flash
esptool.py --port /dev/ttyUSB0 erase_flash
- write firmware <code?esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0
- REPL over serial port
stty < /dev/ttyUSB0
speed 115200 baud; line = 0; min = 100; time = 2; -icrnl -imaxbel -opost -onlcr -isig -icanon -echo
- connect to REPL
screen /dev/ttyUSB0 115200
- Ctl-A will exit screen
... more about "Micropython 01 start"