Update some names, add "make firmware" target
This commit is contained in:
5
Makefile
5
Makefile
@@ -8,3 +8,8 @@ CPPFLAGS += -DNDEBUG -Os
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
include $(IDF_PATH)/make/project.mk
|
include $(IDF_PATH)/make/project.mk
|
||||||
|
|
||||||
|
firmware: all
|
||||||
|
python combine.py
|
||||||
|
|
||||||
|
.PHONY: firmware
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ This firmware uses [Espressif's IDF](https://github.com/espressif/esp-idf)
|
|||||||
1. Clone **v3.0** of the IDF: `git clone --branch v3.0 --recursive https://github.com/espressif/esp-idf.git`
|
1. Clone **v3.0** of the IDF: `git clone --branch v3.0 --recursive https://github.com/espressif/esp-idf.git`
|
||||||
1. Set the `IDF_PATH` environment variable: `export IDF_PATH=<path/to/idf>`
|
1. Set the `IDF_PATH` environment variable: `export IDF_PATH=<path/to/idf>`
|
||||||
1. Run `make` to build the firmware (in the directory of this read me)
|
1. Run `make` to build the firmware (in the directory of this read me)
|
||||||
1. Load the `WiFi1010FirmwareUpdater` example sketch on to the board
|
1. Load the `WiFiNINAFirmwareUpdater` example sketch on to the board
|
||||||
1. Use `esptool` to flash the compiled firmware
|
1. Use `esptool` to flash the compiled firmware
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
booloaderData = open("build/bootloader/bootloader.bin", "rb").read()
|
booloaderData = open("build/bootloader/bootloader.bin", "rb").read()
|
||||||
partitionData = open("build/partitions_singleapp.bin", "rb").read()
|
partitionData = open("build/partitions_singleapp.bin", "rb").read()
|
||||||
appData = open("build/mkrwifi1010-fw.bin", "rb").read()
|
appData = open("build/nina-fw.bin", "rb").read()
|
||||||
|
|
||||||
# calculate the output binary size, app offset
|
# calculate the output binary size, app offset
|
||||||
outputSize = 0x10000 + len(appData)
|
outputSize = 0x10000 + len(appData)
|
||||||
|
|||||||
Reference in New Issue
Block a user