build: Download micropython firmware through makefile
This commit is contained in:
parent
8e78b55389
commit
9cdbe0ec51
3 changed files with 6 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,3 +5,4 @@
|
|||
__pycache__
|
||||
lib/
|
||||
requirements.txt
|
||||
micropython.bin
|
||||
|
|
|
|||
Binary file not shown.
7
Makefile
7
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue