【ESP32】-bug-2 #Could not auto-detect Flash size

项目场景:

        自制esp32板(esp32-pico-d4芯片)基于platform IO向esp32芯片烧录程序


问题描述

        向芯片烧录程序时候,会报错(和程序内容无关,setup和loop函数都为空也会报错)。

  •         在Arduino IDE上时,报错提示:
Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
  •          在VScode PlatformIO上时,报错提示

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 0x00039fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 25424 bytes to 15903...

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


原因分析:

PCB上gpio2或gpio12和3v3用上拉电阻画在了一块,为高电平。

        我的电路板基本是照着几个开源项目改的,也并没有完全理解里边所有电阻电容线路的意义,可能有某个项目里需要把gpio2拉高,我抄过来了。

        之前还一直觉得自己焊接水平的问题,折腾了好久,现在终于发现问题所在了。


解决方案:

把上拉电阻去掉,让gpio2保持低电平即可。

参考资料:

(55条消息) Arduino IDE烧录ESP32-cam 遇到无法检测闪存 Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB Compressed 8192 bytes to 47...-编程语言-CSDN问答

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值