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

1
.gitignore vendored
View file

@ -5,3 +5,4 @@
__pycache__ __pycache__
lib/ lib/
requirements.txt requirements.txt
micropython.bin

Binary file not shown.

View file

@ -51,8 +51,11 @@ check: src/*.mpy
erase_flash: erase_flash:
$(ESP_TOOL) erase_flash $(ESP_TOOL) erase_flash
flash_esp: erase_flash micropython.bin:
$(ESP_TOOL) --baud 460800 write_flash --flash_size=detect 0 $(MICRO_PYTHON_FIRMWARE) 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) install: check install_lib $(JUPYTER_PYTHON_FILES)
$(AMPY) put src/main.py $(AMPY) put src/main.py