一言蔽之:
先使用 PlatformIO 的命令找到 PlatformIO 是怎么烧录的,然后照葫芦画瓢即可。
前提,VScode 已经能够烧录固件了,使用 PlatformIO 打开所需的项目。
打开 VScode 终端执行: pio run -v -t upload
执行了之后,PlatformIO 就开始编译固件并上传了,找到关键性的东西
<lambda>(["upload"], [".pio\build\esp32-c3-devkitm-1\firmware.bin"])
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
BeforeUpload(["upload"], [".pio\build\esp32-c3-devkitm-1\firmware.bin"])
Auto-detected: COM14
"C:\Users\cl\.platformio\penv\Scripts\python.exe" "C:\Users\cl\.platformio\packages\tool-esptoolpy\esptool.py" --chip esp32c3 --port "COM14" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0000 C:\Users\cl\Desktop\esp32-arduino\e-paper-demo\.pio\build\esp32-c3-devkitm-1\bootloader.bin 0x8000 C:\Users\cl\Desktop\esp32-arduino\e-paper-demo\.pio\build\esp32-c3-devkitm-1\partitions.bin 0xe000 C:\Users\cl\.platformio\packages\framework-arduinoespressif32\tools\partitions\boot_app0.bin 0x10000 .pio\build\esp32-c3-devkitm-1\firmware.bin
这里就是 PlatformIO 上传固件的关键。
0x0000 bootloader.bin
0x8000 partitions.bin
0xe000 boot_app0.bin
0x10000 firmware.bin
四个地址,四个 bin
下载 flash_download_tool 然后烧录即可。
标签:bin,PlatformIO,pio,Vscode,esp32,flash,-- From: https://www.cnblogs.com/manastudent/p/18131948