最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

esp idf - I can't program esp32 board using esp serial flasher - Stack Overflow

programmeradmin5浏览0评论

I am trying to flash this example:

Hardware used:

  • slave: ESP32 ESP-WROOM-32
  • master:ESP32 ESP-WROOM-32

Logs:

I (27) boot: ESP-IDF v4.4.3-dirty 2nd stage bootloader
I (27) boot: compile time 15:33:13
I (27) boot: chip revision: 3
I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (38) boot.esp32: SPI Speed      : 40MHz
I (42) boot.esp32: SPI Mode       : DIO
I (47) boot.esp32: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (68) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (75) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (83) boot:  2 factory          factory app      00 00 00010000 001e0000
I (90) boot: End of partition table
I (94) boot_comm: chip revision: 3, min. application chip revision: 0
I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=105d14h (1072404) map
I (498) esp_image: segment 1: paddr=00115d3c vaddr=3ffb0000 size=02334h (  9012) load
I (502) esp_image: segment 2: paddr=00118078 vaddr=40080000 size=07fa0h ( 32672) load
I (517) esp_image: segment 3: paddr=00120020 vaddr=400d0020 size=1aab4h (109236) map
I (557) esp_image: segment 4: paddr=0013aadc vaddr=40087fa0 size=044dch ( 17628) load
I (565) esp_image: segment 5: paddr=0013efc0 vaddr=50000000 size=00010h (    16) load
I (571) boot: Loaded app from partition at offset 0x10000
I (571) boot: Disabling RNG early entropy source...
I (586) cpu_start: Pro cpu up.
I (586) cpu_start: Starting app cpu, entry point is 0x40081100
0x40081100: call_start_cpu1 at E:/Espressif/frameworks/esp-idf-v4.4.3/components/esp_system/port/cpu_start.c:148

I (0) cpu_start: App cpu up.
I (600) cpu_start: Pro cpu start user code
I (600) cpu_start: cpu freq: 160000000
I (600) cpu_start: Application information:
I (605) cpu_start: Project name:     esp-serial-flasher
I (611) cpu_start: App version:      v1.8.0-1-g7a109eb-dirty
I (617) cpu_start: Compile time:     Mar  8 2025 15:32:55
I (623) cpu_start: ELF file SHA256:  e03bf5d961b92a6f...
I (629) cpu_start: ESP-IDF:          v4.4.3-dirty
I (635) heap_init: Initializing. RAM available for dynamic allocation:
I (642) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (648) heap_init: At 3FFB3138 len 0002CEC8 (179 KiB): DRAM
I (654) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (660) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (667) heap_init: At 4008C47C len 00013B84 (78 KiB): IRAM
I (674) spi_flash: detected chip: generic
I (678) spi_flash: flash io: dio
I (683) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (694) gpio: GPIO[25]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (704) gpio: GPIO[26]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
Connected to target
Transmission rate changed.
I (2114) serial_flasher: Loading bootloader...
Erasing flash (this may take a while)...
Start programming
Progress: 36 %DEBUG: Error: INVALID_COMMAND
DEBUG: Error: INVALID_COMMAND

Packet could not be written! Error INVALID RESPONSE.
I (3944) serial_flasher: Loading partition table...
Erasing flash (this may take a while)...
Start programming
Progress: 100 %
Finished programming
Flash verified
I (4144) serial_flasher: Loading app...
Erasing flash (this may take a while)...
Start programming
Progress: 19 %DEBUG: Error: INVALID_COMMAND
DEBUG: Error: INVALID_COMMAND

Packet could not be written! Error INVALID RESPONSE.
I (7074) serial_flasher: Done!
I (7674) serial_flasher: ********************************************
I (7674) serial_flasher: *** Logs below are print from slave .... ***
I (7674) serial_flasher: ********************************************

I tried with different data cables, jumpers (for slave and master) but getting same issue. Reduced baudrate to 38700, 9600 and 19200 from 115200

It is necessary for the esp32 board to flash another esp32 board using the esp-serial-flasher library.

What am I doing wrong and how can I do it correctly?

发布评论

评论列表(0)

  1. 暂无评论