Brownout: register content wrong?

timm_f
Posts: 18
Joined: Tue Feb 20, 2018 2:53 pm

Brownout: register content wrong?

Postby timm_f » Fri Apr 20, 2018 2:20 pm

Hello everybody,

our board did some brown out resets. A message "brown out..." appeared on the serial debug console, and the device did a reset.

I looked at the configuration of the brown out detection in register RTC_CNTL_BROWN_OUT_REG and read 0x00000033.
Which, according to the datasheet indicates that the enable bits are 0.
Now, my question: why did the brownout message/reset occurr, when the whole mechanism is disabled?

P.S. I read from address 0x3FF48035 and 0x60008035, both resulting 0x00000033.
These are the addresses of RTC_CNTL_BROWN_OUT_REG when accessing via DPORT or AHP.

Thanks in advance for any information.

Best regards, Timm

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Brownout: register content wrong?

Postby ESP_igrr » Fri Apr 20, 2018 3:42 pm

Hardware "reset on brownout" feature is disabled, but RTC ISR handler is installed, and brownout interrupt is enabled. Interrupt handler prints the message and perfoms software reset.

timm_f
Posts: 18
Joined: Tue Feb 20, 2018 2:53 pm

Re: Brownout: register content wrong?

Postby timm_f » Wed Apr 25, 2018 9:44 am

The problem is that the adress of RTC_CNTL_BROWN_OUT_REG in the reference manual is wrong.
In "ESP32 Technical Reference Manual Version 3.1", page 629, the address is 0x3FF48035. In ESP_IDF V3.0 it is defined as 0x3ff480d4, which is the correct value.

ESP_Sprite
Posts: 8999
Joined: Thu Nov 26, 2015 4:08 am

Re: Brownout: register content wrong?

Postby ESP_Sprite » Thu Apr 26, 2018 2:31 am

Good catch, I've asked our documentation team to look into those register addresses.

Who is online

Users browsing this forum: No registered users and 84 guests