I'm porting a "quite big" project to esp32. I'm including step by step the .c file in the new project. At a point I got from the linker
Code: Select all
LD build/esp32_avior.elf
c:/msys32/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/es p/esp32_avior/build/esp32_avior.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
c:/msys32/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: regio n `dram0_0_seg' overflowed by 9088 bytes
collect2.exe: error: ld returned 1 exit status
Doing this the linker doesn't complain anymore and the .bin file is created successfully.
However, when esp32 start it cannot boot (see title of the post).
Code: Select all
I (10) boot: ESP-IDF v3.0-dev-1363-gaf63ca15-dirty 2nd stage bootloader
I (10) boot: compile time 15:06:24
I (10) boot: Enabling RNG early entropy source...
I (12) boot: SPI Speed : 40MHz
I (16) boot: SPI Mode : DIO
I (19) boot: SPI Flash Size : 4MB
I (22) boot: Partition Table:
I (24) boot: ## Label Usage Type ST Offset Length
I (31) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (37) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (44) boot: 2 factory factory app 00 00 00010000 0007d000
I (50) boot: 3 ota_0 OTA app 00 10 00090000 0007d000
I (57) boot: 4 ota_1 OTA app 00 11 00110000 0007d000
I (63) boot: 5 storage Unknown data 01 82 0018d000 000f0000
I (70) boot: End of partition table
I (73) boot: Defaulting to factory image
I (77) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0c26c ( 49772) map
I (102) esp_image: segment 1: paddr=0x0001c294 vaddr=0x3ffb0000 size=0x02270 ( 8816) load
I (106) esp_image: segment 2: paddr=0x0001e50c vaddr=0x40080000 size=0x00400 ( 1024) load
I (107) esp_image: segment 3: paddr=0x0001e914 vaddr=0x40080400 size=0x016fc ( 5884) load
I (117) esp_image: segment 4: paddr=0x00020018 vaddr=0x400d0018 size=0x2c798 (182168) map
I (186) esp_image: segment 5: paddr=0x0004c7b8 vaddr=0x40081afc size=0x077f8 ( 30712) load
I (199) esp_image: segment 6: paddr=0x00053fb8 vaddr=0x400c0000 size=0x00000 ( 0) load
I (205) boot: Loaded app from partition at offset 0x10000
I (205) boot: Disabling RNG early entropy source...
ERROR: Static .bss section extends past 0x3FFE0000. IDF cannot boot.
abort() was called at PC 0x40080fed on core 0
Backtrace: 0x400877d0:0x3ffe3be0 0x4008789b:0x3ffe3c00 0x40080fed:0x3ffe3c20 0x40078ce6:0x3ffe3c40 0x40078d99:0x3ffe3c70 0x4007900a:0x3ffe3cb0 0x40079152:0x3ffe3e70 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
Entering gdb stub now.
$T0b#e6
Thank you.