
Right now this requires setting the -port parameter, but other than that it totally works (if esptool.py is installed). It works by converting the ELF file to the custom ESP32 image format and flashing that using esptool.py.
15 строки
359 Б
JSON
15 строки
359 Б
JSON
{
|
|
"inherits": ["xtensa"],
|
|
"cpu": "esp32",
|
|
"build-tags": ["esp32", "esp"],
|
|
"linker": "xtensa-esp32-elf-ld",
|
|
"cflags": [
|
|
"-mcpu=esp32"
|
|
],
|
|
"linkerscript": "targets/esp32.ld",
|
|
"extra-files": [
|
|
"src/device/esp/esp32.S"
|
|
],
|
|
"binary-format": "esp32",
|
|
"flash-command": "esptool.py --chip=esp32 --port {port} write_flash 0x1000 {bin} -ff 80m -fm dout"
|
|
}
|