Page 1 of 1

AT Firmware Flashing Help

Posted: Sun Feb 18, 2024 4:41 am
by m4l490n
Hello,

I have a NODEMCU dev tool to which I need to flash the AT firmware. I downloaded the firmware and I'm trying to flash it with the following command:

Code: Select all

esptool.py --chip esp8266 --port /dev/ttyUSB1 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x8000 partition_table/partition-table.bin 0x9000 ota_data_initial.bin 0x0 bootloader/bootloader.bin 0x20000 esp-at.bin 0x18000 at_customize.bin 0x1A000 customized_partitions/client_cert.bin 0x1B000 customized_partitions/client_key.bin 0x1C000 customized_partitions/client_ca.bin 0x1D000 customized_partitions/mqtt_cert.bin 0x1E000 customized_partitions/mqtt_key.bin 0x1F000 customized_partitions/mqtt_ca.bin 0x19000 customized_partitions/factory_param.bin
And I'm getting this:

Code: Select all

esptool.py v2.4.0
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: 48:55:19:ed:85:ff
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 3072 bytes to 112...
Wrote 3072 bytes (112 compressed) at 0x00008000 in 0.0 seconds (effective 1748.6 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 31...
Wrote 8192 bytes (31 compressed) at 0x00009000 in 0.0 seconds (effective 9323.9 kbit/s)...
Hash of data verified.
Flash params set to 0x0240
Compressed 10224 bytes to 6843...
Wrote 10224 bytes (6843 compressed) at 0x00000000 in 0.6 seconds (effective 135.2 kbit/s)...
Hash of data verified.
Compressed 844288 bytes to 529252...
Wrote 844288 bytes (529252 compressed) at 0x00020000 in 46.6 seconds (effective 144.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 204...
Wrote 3072 bytes (204 compressed) at 0x00018000 in 0.0 seconds (effective 1105.3 kbit/s)...
Hash of data verified.
Compressed 2344 bytes to 1487...
Wrote 2344 bytes (1487 compressed) at 0x0001a000 in 0.1 seconds (effective 138.8 kbit/s)...
Hash of data verified.
Compressed 3368 bytes to 2526...
Wrote 3368 bytes (2526 compressed) at 0x0001b000 in 0.2 seconds (effective 119.3 kbit/s)...
Hash of data verified.
Compressed 2344 bytes to 1499...
Wrote 2344 bytes (1499 compressed) at 0x0001c000 in 0.1 seconds (effective 137.8 kbit/s)...
Hash of data verified.
Compressed 1168 bytes to 895...
Wrote 1168 bytes (895 compressed) at 0x0001d000 in 0.1 seconds (effective 112.1 kbit/s)...
Hash of data verified.
Compressed 1692 bytes to 1322...
Wrote 1692 bytes (1322 compressed) at 0x0001e000 in 0.1 seconds (effective 112.9 kbit/s)...
Hash of data verified.
Compressed 1172 bytes to 914...
Wrote 1172 bytes (914 compressed) at 0x0001f000 in 0.1 seconds (effective 111.6 kbit/s)...
Hash of data verified.
Compressed 4096 bytes to 81...
Wrote 4096 bytes (81 compressed) at 0x00019000 in 0.0 seconds (effective 2991.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
And I see the following in the console:

Code: Select all

boot: ESP-IDF v3.4-37-gd92d00e 2nd stage bootloader
I (42) boot: compile time 12:28:04
I (42) boot: SPI Speed      : 40MHz
I (46) boot: SPI Mode       : DIO
I (50) boot: SPI Flash Size : 4MB
I (54) boot: Partition Table:
I (57) boot: ## Label            Usage          Type ST Offset   Length
I (64) boot:  0 otadata          OTA data         01 00 00009000 00002000
I (72) boot:  1 ota_0            OTA app          00 10 00010000 000e0000
I (79) boot:  2 at_customize     unknown          40 00 000f0000 00020000
I (86) boot:  3 ota_1            OTA app          00 11 00110000 000e0000
I (94) boot:  4 nvs              WiFi data        01 02 001f0000 00010000
I (101) boot: End of partition table
I (105) boot: No factory image, trying OTA 0
E (110) esp_image: image at 0x10000 has invalid magic byte
W (116) esp_image: image at 0x10000 has invalid SPI mode 255
W (123) esp_image: image at 0x10000 has invalid SPI size 15
E (129) boot: OTA app partition slot 0 is not bootable
E (134) esp_image: image at 0x110000 has invalid magic byte
W (141) esp_image: image at 0x110000 has invalid SPI mode 255
W (147) esp_image: image at 0x110000 has invalid SPI size 15
E (153) boot: OTA app partition slot 1 is not bootable
E (159) boot: No bootable app partitions in the partition table
What am I missing?