Getting partition table error

bipin_c@shoreline
Posts: 5
Joined: Fri Mar 25, 2022 9:48 am

Getting partition table error

Postby bipin_c@shoreline » Thu Mar 31, 2022 12:11 pm

Hi all,

I am working on esp32 custom board with secure boot and flash encryption enabled.i generated the encryption key and burn it using "espefuse.py --port PORT burn_key flash_encryption my_flash_encryption_key.bin".

Then i flashed other images using following commands-
esptool.py --chip esp32 -p /dev/ttyUSB1 -b 460800 --before=default_reset --after=no_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 build/bootloader/bootloader.bin

esptool.py -p /dev/ttyUSB1 -b 460800 --before default_reset --after no_reset --chip esp32 write_flash --flash_mode dio --flash_size keep --flash_freq 40m 0xE000 build/partition_table/partition-table.bin 0x10000 build/ekg-firmware.bin 0x3fe000 build/ota_data_initial.bin

after rebooting the device i started getting following logs-
entry 0x40080790
I (53) boot: ESP-IDF v4.4 2nd stage bootloader
I (53) boot: compile time 12:33:30
I (53) boot: chip revision: 3
I (53) boot.esp32: SPI Speed : 40MHz
I (57) boot.esp32: SPI Mode : DIO
I (60) boot.esp32: SPI Flash Size : 4MB
I (64) boot: Enabling RNG early entropy source...
E (68) flash_parts: partition 1 invalid - offset 0x210000 size 0x200000 exceeds flash chip size 0x400000
E (78) boot: Failed to verify partition table
E (82) boot: load partition table error!
ets Jul 29 2019 12:21:46

rst:0x3 (SW_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0038,len:12272
load:0x40078000,len:23548
load:0x40080400,len:4100
0x40080400: _init at ??:?


Can someone help me how to resolve this?i have attached partition table file in this thread.
Thanks.
Attachments
partitions.csv
(1.3 KiB) Downloaded 230 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Getting partition table error

Postby ESP_Sprite » Fri Apr 01, 2022 1:26 am

You have a partition table that has 6MiB worth of partitions, but your chip only seems to have 4MiB of flash.

Who is online

Users browsing this forum: Bing [Bot] and 110 guests