ESP32:跑官方SD卡案例遇到的问题:

Running stub...
Stub running...
Changing baud rate to 460800
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x00042fff...
Flash will be erased from 0x00008000 to 0x00008fff...
SHA digest in image updated
Compressed 26832 bytes to 16431...

A fatal error occurred: Packet content transfer stopped (received 8 bytes)

按照官方历程推荐的引脚,接入的SD卡座。然后程序下载不进入。尝试下面的命令:

esptool.py --port COM8 --baud 115200 flash_id

得到的回复是:

esptool.py --port COM8 --baud 115200 flash_id
esptool.py v4.9.0
Serial port COM19
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 40:91:51:b8:53:ac
Uploading stub...
Running stub...
Stub running...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Manufacturer: ff
Device: ffff
Detected flash size: Unknown
Flash voltage set by a strapping pin to 1.8V
Hard resetting via RTS pin...

GPIO12(SDIO_D2)不能被拉高,不然flash电压会识别错误。

解决办法:

espefuse.py set_flash_voltage 3.3V --port COM19 --baud 115200

但注意:此方法依赖于芯片strap引脚状态未被锁定,且实际硬件支持3.3V操作。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值