diff --git a/Makefile b/Makefile index 5609f0a..fe753a2 100644 --- a/Makefile +++ b/Makefile @@ -8,3 +8,8 @@ CPPFLAGS += -DNDEBUG -Os endif include $(IDF_PATH)/make/project.mk + +firmware: all + python combine.py + +.PHONY: firmware diff --git a/README.md b/README.md index 0f31fa7..61fc5b7 100644 --- a/README.md +++ b/README.md @@ -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. Set the `IDF_PATH` environment variable: `export IDF_PATH=` 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 ## License diff --git a/combine.py b/combine.py index 7513ff7..b38a5b7 100644 --- a/combine.py +++ b/combine.py @@ -2,7 +2,7 @@ booloaderData = open("build/bootloader/bootloader.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 outputSize = 0x10000 + len(appData)