E (87) flash_parts: partition 0 invalid magic number 0x0, in a new device

ihouses
Posts: 19
Joined: Sun Jul 09, 2017 1:41 pm

E (87) flash_parts: partition 0 invalid magic number 0x0, in a new device

Postby ihouses » Wed Dec 23, 2020 9:12 pm

Hello,

I got new ESP32-WROOM-32 modules that I soldered in my prototype PCB. I tried to flash the hello world on that device but I get an partition error that I dont know how to fix.

I flash the same binary in a normal ESP32 development board and everything was working as expected.

Any idea what is the cause?

There are no errors when I flash this new device (I place the log in the last part of the mail)

rst:0x3 (SW_RESET),boot:0x13 (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:0x3fff0030,len:4
load:0x3fff0034,len:7028
load:0x40078000,len:13212
load:0x40080400,len:4568
entry 0x400806f4
I (56) boot: ESP-IDF v4.2-rc-5-g511965b26 2nd stage bootloader
I (56) boot: compile time 21:49:06
I (57) boot: chip revision: 1
I (61) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (68) boot.esp32: SPI Speed : 40MHz
I (73) boot.esp32: SPI Mode : DIO
I (77) boot.esp32: SPI Flash Size : 4MB
I (82) boot: Enabling RNG early entropy source...
E (87) flash_parts: partition 0 invalid magic number 0x0
E (93) boot: Failed to verify partition table
E (98) boot: load partition table error!



Flashing log:

> Executing task: c:\esp\tools\.espressif\python_env\idf4.2_py3.9_env\Scripts\python.exe c:\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM4 -b 115200 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello_world.bin <

esptool.py v3.0
Serial port COM4
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:cc:a8:6a:4f:f4
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1540.0 kbit/s)...
Hash of data verified.
Flash params set to 0x0220
Compressed 24912 bytes to 15261...
Wrote 24912 bytes (15261 compressed) at 0x00001000 in 1.4 seconds (effective 144.8 kbit/s)...
Hash of data verified.
Compressed 149920 bytes to 79251...
Wrote 149920 bytes (79251 compressed) at 0x00010000 in 7.0 seconds (effective 170.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Terminal will be reused by tasks, press any key to close it.

ihouses
Posts: 19
Joined: Sun Jul 09, 2017 1:41 pm

Re: E (87) flash_parts: partition 0 invalid magic number 0x0, in a new device

Postby ihouses » Thu Dec 24, 2020 4:31 pm

Well,

I have tried another module from the same batch and it is working, therefore I think is a hardware problem.
But I am still surprised that the flashing doesnt return any error.

Who is online

Users browsing this forum: Baidu [Spider] and 121 guests