背景
为方便分发固件,可在任意电脑上安装烧录软件,直接将固件烧录进
烧录内容
查看vscode上platformio的烧录过程
Writing at 0x00000000... (100 %)
Wrote 15104 bytes (10401 compressed) at 0x00000000 in 0.4 seconds (effective 281.3 kbit/s)...Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 464.5 kbit/s)...Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 681.0 kbit/s)...Wrote 1121200 bytes (743724 compressed) at 0x00010000 in 17.2 seconds (effective 522.3 kbit/s)...
Hash of data verified.
可见在四个位置进行了烧录,因此烧录软件设置为
其中bootloader.bin, partitions.bin, firmware.bin是platformio的build文件夹里生成的内容。boot_app0.bin是在
/Users/USERNAME/.platformio/packages/framework-arduinoespressif32/tools/partitions路径下的。
试验发现只使用platformio的三个bin文件烧录也没问题的。
烧录操作
电脑安装完驱动、设置好烧录参数、端口和波特率,随后点击Start或者先Erase再Start,需要手动按住boot按钮,进入烧录模式,下载过程中松手即可。烧录完成后reset即可。