Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-C3 ECO3 Connect WiFi and restart (IDFGH-5327) #7082

Closed
zenghi opened this issue May 28, 2021 · 2 comments
Closed

ESP32-C3 ECO3 Connect WiFi and restart (IDFGH-5327) #7082

zenghi opened this issue May 28, 2021 · 2 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@zenghi
Copy link

zenghi commented May 28, 2021

Problem debug

I (46771) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 14, mt_pti: 25000, mt_time: 10000
I (46791) wifi:BcnInt:102400, DTIM:1
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x13 (GLITCH_RTC_RST),boot:0xe (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x1658
load:0x403ce000,len:0x8c0
load:0x403d0000,len:0x2928
entry 0x403ce000
I (31) boot: ESP-IDF v4.4-dev-1404-gc13afea63-dirty 2nd stage bootloader
I (31) boot: compile time 09:37:26

If the TX power is limited to 14, it will operate normally
or git checkout 7bb5c8c the connection is normal

Use examples\wifi\getting_started\station to check

Our problem prototype has been provided to your business Xie Jin

@espressif-bot espressif-bot added the Status: Opened Issue is new label May 28, 2021
@github-actions github-actions bot changed the title ESP32-C3 ECO3 Connect WiFi and restart ESP32-C3 ECO3 Connect WiFi and restart (IDFGH-5327) May 28, 2021
@zenghi
Copy link
Author

zenghi commented Jun 1, 2021

bootloader_glitch_reset_disable
add REG_SET_FIELD(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SEL, RTC_CNTL_FIB_SUPER_WDT_RST | RTC_CNTL_FIB_BOR_RST);
to fix gitch reset。

@yshestakov
Copy link
Contributor

Verified the patch on ESP32-C3 revision 3 based "LilyGo-T-OI-PLUS" board and latest esp-idf code:

diff --git a/components/bootloader_support/src/esp32c3/bootloader_esp32c3.c b/components/bootloader_support/src/esp32c3/bootloader_esp32c3.c
index 7f033c0560..684983000b 100644
--- a/components/bootloader_support/src/esp32c3/bootloader_esp32c3.c
+++ b/components/bootloader_support/src/esp32c3/bootloader_esp32c3.c
@@ -273,7 +273,7 @@ static inline void bootloader_glitch_reset_disable(void)
     uint8_t chip_version = bootloader_common_get_chip_revision();
     if (chip_version < 2) {
         REG_SET_FIELD(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SEL, RTC_CNTL_FIB_SUPER_WDT_RST);
-    } else if (chip_version == 2) {
+    } else if (chip_version >= 2) {
         REG_SET_FIELD(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SEL, RTC_CNTL_FIB_SUPER_WDT_RST | RTC_CNTL_FIB_BOR_RST);
     }
 }

yshestakov added a commit to yshestakov/esp-idf that referenced this issue Aug 18, 2021
* Issue: espressif#7082

Signed-off-by: Yuriy Shestakov <yshestakov@gmail.com>
yshestakov added a commit to yshestakov/esp-idf that referenced this issue Aug 19, 2021
* Issue: espressif#7082

Signed-off-by: Yuriy Shestakov <yshestakov@gmail.com>
@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Resolution: NA Issue resolution is unavailable labels Sep 7, 2021
espressif-bot pushed a commit that referenced this issue Oct 12, 2021
* Issue: #7082

Signed-off-by: Yuriy Shestakov <yshestakov@gmail.com>

Closes #7082
Closes #7441
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants