Page 1 of 1
ESP32 外挂FLASH 下载速度慢 1.5M 固件下载失败 Flash型号为P25Q32H
Posted: Fri May 07, 2021 9:16 am
by linjiangang
ESP32 外挂FLASH 下载速度慢,小于500K的固件能下载,但下载速度只有100kbits/s 1.5M 固件下载失败 Flash型号为P25Q32H,有办法让此Flash 工作在QIO模式吗。
Re: ESP32 外挂FLASH 下载速度慢 1.5M 固件下载失败 Flash型号为P25Q32H
Posted: Fri May 07, 2021 10:17 am
by ESP_Gargamel
是自己做的模组?还是 on board?请提供一下 ESP32 外围的原理图。
Re: ESP32 外挂FLASH 下载速度慢 1.5M 固件下载失败 Flash型号为P25Q32H
Posted: Fri May 07, 2021 10:37 am
by linjiangang
是自已做的板子
- ACC3CAA7-A2CF-44f4-9C22-B3C7AD57D3F2.png (42.51 KiB) Viewed 5563 times
Re: ESP32 外挂FLASH 下载速度慢 1.5M 固件下载失败 Flash型号为P25Q32H
Posted: Fri May 07, 2021 10:40 am
by linjiangang
下固件下载的情况是这样的速率只有100+kbps, 用开发板下载可以到600kbps
esptool.py v3.1-dev
Serial port COM10
Connecting.....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 9c:9c:1f:d7:f3:b8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 26848 bytes to 16544...
Wrote 26848 bytes (16544 compressed) at 0x00001000 in 1.9 seconds (effective 110.4 kbit/s)...
Hash of data verified.
Compressed 265808 bytes to 149957...
Wrote 265808 bytes (149957 compressed) at 0x00020000 in 15.7 seconds (effective 135.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 139...
Wrote 3072 bytes (139 compressed) at 0x00008000 in 0.2 seconds (effective 128.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Terminal will be reused by tasks, press any key to close it.
Re: ESP32 外挂FLASH 下载速度慢 1.5M 固件下载失败 Flash型号为P25Q32H
Posted: Fri May 07, 2021 10:43 am
by linjiangang
大固件下载时的情况,是下载失败了。
Executing task: E:\espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe f:\ljg\software\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM10 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader/bootloader.bin 0x20000 blufi_demo.bin 0x8000 partition_table/partition-table.bin <
esptool.py v3.1-dev
Serial port COM10
Connecting.....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 9c:9c:1f:d7:f3:b8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 26848 bytes to 16544...
Wrote 26848 bytes (16544 compressed) at 0x00001000 in 1.9 seconds (effective 110.4 kbit/s)...
Hash of data verified.
Compressed 265808 bytes to 149957...
Wrote 265808 bytes (149957 compressed) at 0x00020000 in 15.7 seconds (effective 135.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 139...
Wrote 3072 bytes (139 compressed) at 0x00008000 in 0.2 seconds (effective 128.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Terminal will be reused by tasks, press any key to close it.
> Executing task: E:\espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe f:\ljg\software\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM10 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader/bootloader.bin 0x20000 blufi_demo.bin 0x8000 partition_table/partition-table.bin <
esptool.py v3.1-dev
Serial port COM10
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 9c:9c:1f:d7:f3:b8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 26848 bytes to 16544...
Wrote 26848 bytes (16544 compressed) at 0x00001000 in 1.9 seconds (effective 111.3 kbit/s)...
Hash of data verified.
Compressed 1568224 bytes to 998075...
Writing at 0x00039448... (4 %)
A fatal error occurred: Timed out waiting for packet header
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command E:\espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe f:\ljg\software\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM10 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader/bootloader.bin 0x20000 blufi_demo.bin 0x8000 partition_table/partition-table.bin" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Re: ESP32 外挂FLASH 下载速度慢 1.5M 固件下载失败 Flash型号为P25Q32H
Posted: Fri May 07, 2021 10:50 am
by linjiangang
小固件运行正常,可以进入QPI模式。启动信息如下。
rst:0x1 (POWERON_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:1
load:0x3fff0030,len:7348
load:0x40078000,len:15028
load:0x40080400,len:4388
0x40080400: _init at ??:?
entry 0x40080694
I (26) boot: ESP-IDF v4.4-dev-4-g73db14240-dirty 2nd stage bootloader
I (27) boot: compile time 16:43:16
I (28) boot: chip revision: 1
I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (46) qio_mode: Enabling default flash chip QIO
I (46) boot.esp32: SPI Speed : 80MHz
I (48) boot.esp32: SPI Mode : QIO
I (53) boot.esp32: SPI Flash Size : 4MB
I (57) boot: Enabling RNG early entropy source...
I (63) boot: Partition Table:
I (66) boot: ## Label Usage Type ST Offset Length
I (74) boot: 0 nvs WiFi data 01 02 00009000 00008000
I (81) boot: 1 otadata OTA data 01 00 00011000 00002000
I (88) boot: 2 phy_init RF data 01 01 00013000 00001000
I (96) boot: 3 ota_0 OTA app 00 10 00020000 001e0000
I (103) boot: 4 ota_1 OTA app 00 11 00200000 001e0000
I (111) boot: 5 userdata Unknown data 01 fe 003e0000 00020000
I (119) boot: End of partition table
I (123) boot_comm: chip revision: 1, min. application chip revision: 0
I (130) esp_image: segment 0: paddr=00020020 vaddr=3f400020 size=09d8ch ( 40332) map
I (149) esp_image: segment 1: paddr=00029db4 vaddr=3ffbdb60 size=037a4h ( 14244) load
I (154) esp_image: segment 2: paddr=0002d560 vaddr=40080000 size=02ab8h ( 10936) load
I (159) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=2565ch (153180) map
I (205) esp_image: segment 4: paddr=00055684 vaddr=40082ab8 size=0b730h ( 46896) load
I (220) esp_image: segment 5: paddr=00060dbc vaddr=400c0000 size=00064h ( 100) load
I (228) boot: Loaded app from partition at offset 0x20000
I (228) boot: Disabling RNG early entropy source...
I (240) cpu_start: Pro cpu up.
I (240) cpu_start: Single core mode
I (248) cpu_start: Pro cpu start user code
I (248) cpu_start: cpu freq: 240000000
I (248) cpu_start: Application information:
I (253) cpu_start: Project name: blufi_demo
I (258) cpu_start: App version: 1
I (262) cpu_start: Compile time: May 7 2021 16:43:00
I (268) cpu_start: ELF file SHA256: 5ba9ae8d399de673...
I (274) cpu_start: ESP-IDF: v4.4-dev-4-g73db14240-dirty
I (281) heap_init: Initializing. RAM available for dynamic allocation:
I (288) heap_init: At 3FF80064 len 00001F9C (7 KiB): RTCRAM
I (295) heap_init: At 3FFAE6E0 len 0000F480 (61 KiB): DRAM
I (301) heap_init: At 3FFC3BA8 len 0001C458 (113 KiB): DRAM
I (307) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (313) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (320) heap_init: At 4008E1E8 len 00011E18 (71 KiB): IRAM
I (326) spi_flash: detected chip: generic
I (331) spi_flash: flash io: qio
I (335) esp_core_dump_uart: Init core dump to UART
I (340) cpu_start: Starting scheduler on PRO CPU.
flash init chip partition address at 0x3e0000
I (353) MOD_FLASH: Read index=7, crc=5f0d datalen=32
I (358) MOD_FLASH: Read index=7, crc=5f0d data_crc=7018
Enabling EXT1 wakeup on pins GPIO0
I (367) gpio: GPIO[25]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (377) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (386) MOD_FLASH: Read index=0, crc=2e84 datalen=160
I (391) MOD_FLASH: Read index=0, crc=2e84 data_crc=b079
eFuse Vref: Supported
I (400) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (409) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (418) gpio: GPIO[13]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (427) gpio: GPIO[14]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (437) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:2
I (446) MOD_FLASH: Read index=1, crc=21ec datalen=44
I (451) MOD_FLASH: Read index=1, crc=21ec data_crc=701d
I (457) gpio: GPIO[27]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (467) mod_capture: u=0.000000 i=0.000000 ld=0.000000
I (468) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (482) gpio: GPIO[18]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (491) gpio: GPIO[23]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (500) gpio: GPIO[26]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (509) gpio: GPIO[25]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (519) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (528) MOD_FLASH: Read index=3, crc=46fb datalen=144
I (534) MOD_FLASH: Read index=3, crc=46fb data_crc=b06d
I (540) MOD_FLASH: Read index=4, crc=ffff datalen=65535
I (1086) mod_capture: u=0.000000 i=0.000000 ld=0.000000
I (1725) mod_capture: u=0.000000 i=0.000000 ld=0.000000
I (2364) mod_capture: u=0.000000 i=0.000000 ld=0.000000
Re: ESP32 外挂FLASH 下载速度慢 1.5M 固件下载失败 Flash型号为P25Q32H
Posted: Fri May 07, 2021 11:23 am
by ESP_Gargamel
1、这颗料我们没有验过,不确定是否会有兼容性问题
2、你原理图上 MTDI 有外接电路,依据 strapping 管脚定义,MTDI 会影响 VDD_SDIO 电压,请确认这部分