guild icon
Toit
#Brown out after Jaguar update
Thread channel in help
kaxori
kaxori 11/03/2023 10:08 PM
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz

After jaguar update (from V ~1.13 to 1.18) the device reports brown out instead of deep sleep.
(ESP-RST-BROWNOUT ::= 9 // Brownout reset (software or hardware).

-----
Version: v1.12.0
SDK version: v2.0.0-alpha.99
Build date: 2023-09-07T13:53:42Z
runs properly
-----

Any suggestions ?
(edited)
bitphlipphar
bitphlipphar 11/04/2023 09:04 AM
Are you sure the device is getting enough power? Do you have any way of measuring that?
kaxori
kaxori 11/04/2023 11:48 AM
yes, it works in the same condition with V1.12
floitsch
floitsch 11/04/2023 02:33 PM
Can you provide a bit more context?
From what I understand:
- you call deep sleep, but
- the device wakes up and claims that it experienced a brownout, instead of a regular deep-sleep).
Correct?
floitsch
floitsch 11/04/2023 02:36 PM
We had the brownout detector disabled in earlier versions.
It was enabled in https://github.com/toitlang/toit/pull/1795 (September 6)
(edited)
floitsch
floitsch 11/04/2023 02:36 PM
I'm guessing Jaguar 1.13 was released before then.
floitsch
floitsch 11/04/2023 02:39 PM
To me this looks like the ESP32 is indeed detecting a brownout, and we just didn't report it before.
There are some boards that are known to have brownout issues. Could you tell us which board you use?
Independently: if you want to continue running without brownout detection, we (or you) can create an envelope that has that feature disabled. The https://github.com/toitlang/envelopes repository has multiple variants, and is designed to be forked. Iirc we finished the work in Jaguar to fetch envelopes from custom forked envelope repositories.
Toit envelopes for different configurations. Contribute to toitlang/envelopes development by creating an account on GitHub.
kaxori
kaxori 11/04/2023 08:57 PM
Board: ESP32 D1 mini (WROOM)
floitsch
floitsch 11/04/2023 08:58 PM
Wemos?
๐Ÿ‘๐Ÿป1
kaxori
kaxori 11/04/2023 08:59 PM
with Jag V1.12 the device wakeup code 08
with newer V device wakep code 09 (brown out)
floitsch
floitsch 11/04/2023 09:00 PM
The brownout detector was disabled a few releases ago.
floitsch
floitsch 11/04/2023 09:01 PM
Is it an az-delivery board?
๐Ÿ‘๐Ÿป1
floitsch
floitsch 11/04/2023 09:01 PM
I remember those had a regulator that wasn't strong enough
floitsch
floitsch 11/04/2023 09:02 PM
kaxori
kaxori 11/04/2023 09:11 PM
floitsch
floitsch 11/04/2023 09:13 PM
Maybe see if you can figure out which regulator is on that board.
kaxori
kaxori 11/04/2023 10:10 PM
- onboard regulator removed
- replaced with external regulator
- updated to V1.18
(edited)
kaxori
kaxori 11/04/2023 10:10 PM
- application runs without problems (brown outs)
kaxori
kaxori 11/04/2023 10:11 PM
Thank you for the right hint !
kaxori
kaxori 11/04/2023 10:22 PM