build: Download micropython firmware through makefile

This commit is contained in:
Laborratte5 2024-05-09 01:30:23 +02:00
parent 8e78b55389
commit 9cdbe0ec51
Signed by: Laborratte5
GPG key ID: 3A30072E35202C02
3 changed files with 6 additions and 2 deletions

View file

@ -51,8 +51,11 @@ check: src/*.mpy
erase_flash:
$(ESP_TOOL) erase_flash
flash_esp: erase_flash
$(ESP_TOOL) --baud 460800 write_flash --flash_size=detect 0 $(MICRO_PYTHON_FIRMWARE)
micropython.bin:
curl --output micropython.bin https://micropython.org/resources/firmware/$(MICRO_PYTHON_FIRMWARE)
flash_esp: erase_flash micropython.bin
$(ESP_TOOL) --baud 460800 write_flash --flash_size=detect 0 micropython.bin
install: check install_lib $(JUPYTER_PYTHON_FILES)
$(AMPY) put src/main.py