esp-idf 报 bootloader_flash: bootloader_mmap excess size 3524e8

Liiidr
Posts: 4
Joined: Thu Nov 28, 2019 4:28 am

esp-idf 报 bootloader_flash: bootloader_mmap excess size 3524e8

Postby Liiidr » Tue Jan 21, 2020 7:58 am

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

Who is online

Users browsing this forum: No registered users and 175 guests