由于编的固件data段太大了,报错:
I (88) boot: ## Label Usage Type ST Offset Length
I (95) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (103) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (110) boot: 2 factory factory app 00 00 00010000 00520000
I (118) boot: 3 secadb Unknown data 01 82 00530000 000c0000
I (125) boot: 4 unsecadb Unknown data 01 82 005f0000 00180000
I (133) boot: 5 user Unknown data 01 82 00770000 00080000
I (140) boot: End of partition table
I (145) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x3f80f8 (4161784) map
E (154) bootloader_flash: bootloader_mmap excess size 3f80f8
E (160) esp_image: bootloader_mmap(0x10020, 0x3f80f8) failed
E (166) boot: Factory app partition is not bootable
E (172) boot: No bootable app partitions in the partition table
我修改了bootloader_flash.c,93行MMU_BLOCK50_VADDR 改为 0x3f7a0000 ,,106行改为if (size > 0x3a0000)
//#define MMU_BLOCK50_VADDR 0x3f720000
#define MMU_BLOCK50_VADDR 0x3f7a0000
//if (size > 0x320000) {
if (size > 0x3a0000) {
bootloader_flash.c里面是把MMU_BLOCK50_VADDR这个值写死的,这个值是和外挂的flash有关还是和CPU有关呢?不知道我这样改是否有其他问题。