Failure to load firmware on ESP32C6
Posted: Tue Apr 23, 2024 12:09 pm
I have an ESP32C6 connected to COM15 port that doesn’t have a loaded firmware (FW), and I want to load a .bin FW in a non-development environment. I am using this command which seems to execute correctly, but the device remains in a state that does not start:
esptool --port COM15 write_flash 0x180000 C:\Users\efernandez\Desktop\Wifi6_1.00.109.01.bin
I have this partition table:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, , 0x4000,
otadata, data, ota, , 0x2000,
phy_init, data, phy, , 0x1000,
factory, app, factory, , 0x110000,
ota_0, app, ota_0, , 0x110000,
ota_1, app, ota_1, , 0x110000,
I am trying to load it into ota_0, am I doing it correctly? Is the start address of the ota_0 partition 0x180000? If it’s the first load, should I do it in factory?
The load seems to be correct, I get this result:
esptool.py v4.7.0
Serial port COM15
Connecting...
Detecting chip type... ESP32-C6
Chip is ESP32-C6 (QFN40) (revision v0.0)
Features: WiFi 6, BT 5, IEEE802.15.4
Crystal is 40MHz
MAC: 40:4c:ca:ff:fe:42:43:8c
BASE MAC: 40:4c:ca:42:43:8c
MAC_EXT: ff:fe
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00180000 to 0x00286fff...
Compressed 1074816 bytes to 577712...
Wrote 1074816 bytes (577712 compressed) at 0x00180000 in 3.4 seconds (effective 2509.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
However, the device remains in a state that does not respond and does not run the program.
esptool --port COM15 write_flash 0x180000 C:\Users\efernandez\Desktop\Wifi6_1.00.109.01.bin
I have this partition table:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, , 0x4000,
otadata, data, ota, , 0x2000,
phy_init, data, phy, , 0x1000,
factory, app, factory, , 0x110000,
ota_0, app, ota_0, , 0x110000,
ota_1, app, ota_1, , 0x110000,
I am trying to load it into ota_0, am I doing it correctly? Is the start address of the ota_0 partition 0x180000? If it’s the first load, should I do it in factory?
The load seems to be correct, I get this result:
esptool.py v4.7.0
Serial port COM15
Connecting...
Detecting chip type... ESP32-C6
Chip is ESP32-C6 (QFN40) (revision v0.0)
Features: WiFi 6, BT 5, IEEE802.15.4
Crystal is 40MHz
MAC: 40:4c:ca:ff:fe:42:43:8c
BASE MAC: 40:4c:ca:42:43:8c
MAC_EXT: ff:fe
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00180000 to 0x00286fff...
Compressed 1074816 bytes to 577712...
Wrote 1074816 bytes (577712 compressed) at 0x00180000 in 3.4 seconds (effective 2509.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
However, the device remains in a state that does not respond and does not run the program.