mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
0df4a7a35f
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.
16 lines
359 B
JSON
16 lines
359 B
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"
|
|
}
|