diff --git a/bootloader.bin b/bootloader.bin new file mode 100644 index 0000000..acef71c Binary files /dev/null and b/bootloader.bin differ diff --git a/erase_flash.sh b/erase_flash.sh new file mode 100755 index 0000000..91b49da --- /dev/null +++ b/erase_flash.sh @@ -0,0 +1,3 @@ +#!/bin +FLASHPORT="/dev/ttyACM0" +esptool --port $FLASHPORT erase_flash diff --git a/espruino-esp32c3.bin b/espruino-esp32c3.bin new file mode 100644 index 0000000..33394d8 Binary files /dev/null and b/espruino-esp32c3.bin differ diff --git a/espruino_2v28.3_esp32c3_bleeding_edge.bin b/espruino_2v28.3_esp32c3_bleeding_edge.bin new file mode 100644 index 0000000..57bb654 Binary files /dev/null and b/espruino_2v28.3_esp32c3_bleeding_edge.bin differ diff --git a/flash_espruino.sh b/flash_espruino.sh new file mode 100755 index 0000000..a062d5e --- /dev/null +++ b/flash_espruino.sh @@ -0,0 +1,12 @@ +#!/bin/bash +FLASHPORT="/dev/ttyACM0" +echo "This will flash Espruino to your ESP32C3. If you don't want, press CTRL-C now!" +read -n1 +#echo "Flashing bootloader..." +#sudo esptool --port $FLASHPORT write_flash 0 bootloader.bin +#echo "Flashing partition-table..." +#sudo esptool --port $FLASHPORT write_flash 32768 partition-table.bin +echo "Flashing Espruino firmware..." +sudo esptool --port $FLASHPORT write_flash 65536 espruino-esp32c3.bin +echo "All done" + diff --git a/offsets.txt b/offsets.txt new file mode 100644 index 0000000..06d2080 --- /dev/null +++ b/offsets.txt @@ -0,0 +1,17 @@ + { + "chipFamily": "ESP32-C3", + "parts": [ + { + "path": "espruino_2v25_esp32c3/bootloader.bin", + "offset": 0 + }, + { + "path": "espruino_2v25_esp32c3/partition-table.bin", + "offset": 32768 + }, + { + "path": "espruino_2v25_esp32c3/espruino-esp32c3.bin", + "offset": 65536 + } + ] + } diff --git a/partition-table.bin b/partition-table.bin new file mode 100644 index 0000000..115bd56 Binary files /dev/null and b/partition-table.bin differ