diff --git a/runtime/layouts/esp32-c3-devkitM-1.ld b/runtime/layouts/esp32-c3-devkitM-1.ld new file mode 100644 index 00000000..efa54039 --- /dev/null +++ b/runtime/layouts/esp32-c3-devkitM-1.ld @@ -0,0 +1,12 @@ +/* Layout for the Imix board, used by the examples in this repository. */ + +MEMORY { + /* Note that the SRAM address may need to be changed depending on + * the kernel binary, check for the actual address of APP_MEMORY! + */ + FLASH (X) : ORIGIN = 0x403B0000, LENGTH = 0x30000 + RAM (W) : ORIGIN = 0x3FCA1800, LENGTH = 0x2E800 +} + +TBF_HEADER_SIZE = 0x48; +INCLUDE libtock_layout.ld diff --git a/tools/flash.sh b/tools/flash.sh index 97d6f430..234db303 100755 --- a/tools/flash.sh +++ b/tools/flash.sh @@ -30,6 +30,11 @@ case "${PLATFORM}" in binary_name=cortex-m4.elf tockload=n ;; + "esp32-c3-devkitM-1") + tockloader_flags="" + binary_name=rv32imac.elf + tockload=n + ;; "microbit_v2") tockloader_flags="--bundle-apps" binary_name=cortex-m4.elf