Four prebuilt firmwares are provided:
defaultdefault configuration, no sqlite module, one MicroPython task; in this directorysqlitedefault configuration, sqlite module included, one MicroPython task; insqlitedirectorytwotasksno KPU (8 MB SRAM used), sqlite module included, two MicroPython task; intwotasksdirectoryotadefault configuration, no sqlite module, one MicroPython task, OTA enabled; inotadirectory
To flash the pre-built firmware to your K210 board, run (in this directory):
./ktool.py -p /dev/ttyUSB0 -b 2000000 -t MicroPython.bin
Change /dev/ttyUSB0 to the port used to connect to the board if needed.
You can replace MicroPython.bin with sqlite/MicroPython.bin, twotasks/MicroPython.bin or ota/MicroPython.binto flash another firmware.
MicroPython.kfpkg is also provided which contains prebuilt LittleFS internal file system.
To flash it, just replace MicroPython.bin with MicroPython.kfpkg.
OTA firmware is suposed to run with KBoot bootloader.
Kboot bootloader is included in ota/MicroPython.kfpkg, when flashing for the first time, always use MicroPython.kfpkg, not a MicroPython.bin!
After the Kboot bootloader is flashed, you can later flash only the MicroPython binary using the command:
./ktool.py -p /dev/ttyUSB0 -a 65536 -b 2000000 -t MicroPython.binwifi directory contains the ESP8266/ESP8285 firmwares.