1.先是运行esp32官方给的例程,出现了错误报错如下:
esp_image: Image length 1053648 doesn’t fit in partition length 1048576
boot: Factory app partition is not bootable
boot: No bootable app partitions in the partition table
ets Jun 8 2016 00:22:57
网上搜索问题,发现可能是定义的固件分区大小比实际编译生成的固件大小要大而出现错误;
具体参考:ESP32C3乐鑫分区表
修改方法:
1).partitions_singleapp.csv
Name, Type, SubType, Offset, Size, Flags
Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
nvs, data, nvs, , 0x6000,
phy_init, data, phy, , 0x1000,
factory, app, factory, , 2M,
2). flash size 设为4M(适当大小)
- 在把blufi例程代码移植到自己的工程当中,发现有些头文件找不到
问题:配置里要开蓝牙
3.编译完后连接过程出现报错。
包含blufi函数