build: Add Makefile targets to flash micropython to esp8266
This commit is contained in:
parent
49f8778c8f
commit
186a8294e1
2 changed files with 12 additions and 0 deletions
12
Makefile
Normal file
12
Makefile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
VENV = poetry run
|
||||
ESP_TOOL = $(VENV) esptool.py
|
||||
|
||||
# Downloaded from https://micropython.org/download/ESP8266_GENERIC/
|
||||
MICRO_PYTHON_FIRMWARE = ESP8266_GENERIC-20240222-v1.22.2.bin
|
||||
ESP_PORT = /dev/ttyUSB0
|
||||
|
||||
erase_flash:
|
||||
$(ESP_TOOL) --port $(ESP_PORT) erase_flash
|
||||
|
||||
flash_esp: erase_flash
|
||||
$(ESP_TOOL) --port $(ESP_PORT) --baud 460800 write_flash --flash_size=detect 0 $(MICRO_PYTHON_FIRMWARE)
|
||||
Loading…
Add table
Add a link
Reference in a new issue