I'm porting a project from the esp12e to the esp32, using the following:
- - ESP-WROOM-32 module
- Seeed ESP32 breakout kit https://www.seeedstudio.com/ESP32-Break ... -2783.html
- YwRobot breadboard power supply (max 700mA) connected to a USB2.0 port in my computer (max: 500mA).
- using the latest ESP-IDF from github (also tried 3.0-RC1)
The last logs printed before restart are:
Code: Select all
I (89) wifi: wifi firmware version: ebd3e5d
I (89) wwifi: config NVS flash: enabled
I (89) wifi: config nano formating: disabled
I (89) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (99) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (129) wifi: Initt dynamic tx buffer num: 32
I (129) wifi: Init data frame dynamic rx buffer num: 32
I (129) wifi: Init management frame dynamic rx buffer num: 32
I (129) wifi: wifi driver task: 3ffc031c, prio:23, stack:4096
I (139) wifi: Init static rx buffer num: 10
I (139) wifi: Init dynamic rx buffer num: 32
I (139) wifi: wifi power manager task: 0x3ffc4f5c prio: 21 stack: 2560
W (149) phy_init: failed to load RF calibration data (0x1102), falling bacck to fullcalibration
Brownout detector was triggered
Here's why I'm stuck.
I've hooked up a scope and traced the power line on pin2.
When the module is idling (ie: waiting for download), I measure 3.26V.
When I start my test code (bootup; reset gpio23, wait for 10s; enable gpio23; try to enable wifi). I can see there is a small dip on the power line but only to about 3.10V for ~20ms. (See attached jpg).
Note: I used a gpio23 pin to drive a LED on ch2, and enable it just before calling esp_wifi_start().
But if setup a single mode falling edge trigger for 3.00V, it never fires.
The brownout level is configured at the default 2.43V.
I've tried a number of things:
- - different external USB power supply
- change clock rate from 160MHz to 80MHz
- disable brownout detection; bad idea anyway as this caused weird crashing elsewhere (as also documented in this forum).
- try a different module (and breakout board) I have 2 of the same.
- solder 10uF cap. (electrolytic) across pin 1 & 2 on the seeed breakout board
- tried a 1000uF cap on the breadboard
- tried ESP-IDF v3.0 - rc1
- updated to the latest version of ESP-IDF (git log -1: Merge: b6fae219 9fb2d459; Author: Jiang Jiang Jian <jack@espressif.com>; Date: Fri Mar 2 18:54:39 2018 +0800)
- tried to erase the NVS as suggested in this forum
From my measurements, I'm not even close to the 2.43 brownout level, so not sure why it's triggered here.
Also curious about the time the power would have to dip below 2.43 for the BOD to fire.
Any other ideas or suggestions to get this working?
Thanks,
J