恩,首先是upload file system image那个上传会报错,如果框架选的是arduino就可以,但是espidf的话是不行的。
然后程序找不到spiffs,运行例程显示spiffs partition could not be found。是因为默认分区表里没有spiffs,需要手动添加,可以看这个https://docs.platformio.org/en/latest/platforms/espressif32.html

然后这里可以看到预设的各种分区表https://github.com/espressif/esp-idf/tree/master/components/partition_table
这里有分区表的介绍(英文版比中文版内容多。。。)https://docs.espressif.com/projects/esp-idf/zh_CN/latest/api-reference/storage/spi_flash.html
配置完成后在platformio里面点upload file system image 也就可以了
网友评论