ESP32-C3-WROOM-02 keeps rebooting while connecting WiFi
Posted: Tue Nov 07, 2023 7:40 am
Dear ESP32 forum,
I just designed a PCB as per the esp32-c3-wroom-02_datasheet here https://www.espressif.com/sites/default ... eet_en.pdf:
.
Everytime I try to connect to WiFi, it restarts with reset reason POWERON, I think it's very strange. The very first time I used a AMS1117-3.3 for power supply. After some googling, it told me that the reset reason is insufficient current, now I changed it to SGM2212-3.3XKC3G/TR, which is used by the official DevKit here: https://dl.espressif.com/dl/schematics/ ... 00915A.pdf. But the problem persists. Two days of investigating, I still don't know why.
Notice line no. 88 and 145, the time I connect to WiFi, it resets (POWERON, not software reset or brownout reset, etc. how could it be?):
I'm new to hardware design, anything could be helpful, Thanks.
I just designed a PCB as per the esp32-c3-wroom-02_datasheet here https://www.espressif.com/sites/default ... eet_en.pdf:
.
Everytime I try to connect to WiFi, it restarts with reset reason POWERON, I think it's very strange. The very first time I used a AMS1117-3.3 for power supply. After some googling, it told me that the reset reason is insufficient current, now I changed it to SGM2212-3.3XKC3G/TR, which is used by the official DevKit here: https://dl.espressif.com/dl/schematics/ ... 00915A.pdf. But the problem persists. Two days of investigating, I still don't know why.
Notice line no. 88 and 145, the time I connect to WiFi, it resets (POWERON, not software reset or brownout reset, etc. how could it be?):
- ESP-ROM:esp32c3-api1-20210207
- Build:Feb 7 2021
- rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT)
- SPIWP:0xee
- mode:DIO, clock div:1
- load:0x3fcd5820,len:0x1738
- load:0x403cc710,len:0xae8
- load:0x403ce710,len:0x2e7c
- entry 0x403cc71a
- I (30) boot: ESP-IDF v5.1-dev-7241-g3640dc86bb-dirty 2nd stage bootloader
- I (30) boot: compile time Nov 3 2023 15:51:58
- I (31) boot: chip revision: v0.4
- I (35) boot.esp32c3: SPI Speed : 80MHz
- I (40) boot.esp32c3: SPI Mode : DIO
- I (45) boot.esp32c3: SPI Flash Size : 2MB
- I (50) boot: Enabling RNG early entropy source...
- I (55) boot: Partition Table:
- I (59) boot: ## Label Usage Type ST Offset Length
- I (66) boot: 0 nvs WiFi data 01 02 00009000 00006000
- I (73) boot: 1 phy_init RF data 01 01 0000f000 00001000
- I (81) boot: 2 factory factory app 00 00 00010000 00100000
- I (88) boot: End of partition table
- I (92) esp_image: segment 0: paddr=00010020 vaddr=3c0c0020 size=2d4d8h (185560) map
- I (130) esp_image: segment 1: paddr=0003d500 vaddr=3fc90c00 size=02b18h ( 11032) load
- I (133) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=ba3e4h (762852) map
- I (258) esp_image: segment 3: paddr=000fa40c vaddr=3fc93718 size=0073ch ( 1852) load
- I (258) esp_image: segment 4: paddr=000fab50 vaddr=40380000 size=10a2ch ( 68140) load
- I (282) boot: Loaded app from partition at offset 0x10000
- I (282) boot: Disabling RNG early entropy source...
- I (294) cpu_start: Unicore app
- I (294) cpu_start: Pro cpu up.
- I (302) cpu_start: Pro cpu start user code
- I (302) cpu_start: cpu freq: 160000000 Hz
- I (303) cpu_start: Application information:
- I (305) cpu_start: Project name: homekit-switch
- I (311) cpu_start: App version: c0b0074-dirty
- I (316) cpu_start: Compile time: Nov 7 2023 12:34:43
- I (323) cpu_start: ELF file SHA256: 917335dbb...
- I (328) cpu_start: ESP-IDF: v5.1-dev-7241-g3640dc86bb-dirty
- I (335) cpu_start: Min chip rev: v0.3
- I (340) cpu_start: Max chip rev: v0.99
- I (345) cpu_start: Chip rev: v0.4
- I (349) heap_init: Initializing. RAM available for dynamic allocation:
- I (357) heap_init: At 3FC98E10 len 00043900 (270 KiB): DRAM
- I (363) heap_init: At 3FCDC710 len 00002950 (10 KiB): STACK/DRAM
- I (369) heap_init: At 50000010 len 00001FD8 (7 KiB): RTCRAM
- I (376) spi_flash: detected chip: generic
- I (380) spi_flash: flash io: dio
- W (384) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
- I (398) sleep: Configure to isolate all GPIO pins in sleep state
- I (404) sleep: Enable automatic switching of GPIO sleep configuration
- I (411) app_start: Starting scheduler on CPU0
- I (416) main_task: Started on CPU0
- I (416) main_task: Calling app_main()
- Keystore initialised
- Accessory is not Paired with any controller
- Database initialised. Accessory Device ID: FC:BD:98:7C:FF:BC
- HAP Initialization succeeded. Version : 4.0-bd236e7
- I (3436) pp: pp rom version: 9387209
- I (3436) net80211: net80211 rom version: 9387209
- I (3446) wifi:wifi driver task: 3fca24d8, prio:23, stack:6656, core=0
- I (3446) wifi:wifi firmware version: e03c1ca
- I (3446) wifi:wifi certification version: v7.0
- I (3446) wifi:config NVS flash: enabled
- I (3446) wifi:config nano formating: disabled
- I (3456) wifi:Init data frame dynamic rx buffer num: 32
- I (3456) wifi:Init management frame dynamic rx buffer num: 32
- I (3466) wifi:Init management short buffer num: 32
- I (3466) wifi:Init dynamic tx buffer num: 32
- I (3476) wifi:Init static tx FG buffer num: 2
- I (3476) wifi:Init static rx buffer size: 1600
- I (3476) wifi:Init static rx buffer num: 10
- I (3486) wifi:Init dynamic rx buffer num: 32
- I (3486) wifi_init: rx ba win: 6
- I (3496) wifi_init: tcpip mbox: 32
- I (3496) wifi_init: udp mbox: 6
- I (3496) wifi_init: tcp mbox: 6
- I (3506) wifi_init: tcp tx win: 5744
- I (3506) wifi_init: tcp rx win: 5744
- I (3516) wifi_init: tcp mss: 1440
- I (3516) wifi_init: WiFi IRAM OP enabled
- I (3516) wifi_init: WiFi RX IRAM OP enabled
- I (3526) phy_init: phy_version 1110,9c20f0a,Jul 27 2023,10:42:54
- I (3816) wifi:mode : sta (ec:da:3b:c8:b5:d0)
- I (3816) wifi:enable tsf
- I (3816) wifi: Connecting to xxx...
- I (3826) wifi: Waiting for IP address
- I (44�ESP-ROM:esp32c3-api1-20210207
- Build:Feb 7 2021
- rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT)
- SPIWP:0xee
- mode:DIO, clock div:1
- load:0x3fcd5820,len:0x1738
- load:0x403cc710,len:0xae8
- load:0x403ce710,len:0x2e7c
- entry 0x403cc71a
- I (30) boot: ESP-IDF v5.1-dev-7241-g3640dc86bb-dirty 2nd stage bootloader
- I (30) boot: compile time Nov 3 2023 15:51:58
- I (31) boot: chip revision: v0.4
- I (35) boot.esp32c3: SPI Speed : 80MHz
- I (40) boot.esp32c3: SPI Mode : DIO
- I (45) boot.esp32c3: SPI Flash Size : 2MB
- I (50) boot: Enabling RNG early entropy source...
- I (55) boot: Partition Table:
- I (59) boot: ## Label Usage Type ST Offset Length
- I (66) boot: 0 nvs WiFi data 01 02 00009000 00006000
- I (73) boot: 1 phy_init RF data 01 01 0000f000 00001000
- I (81) boot: 2 factory factory app 00 00 00010000 00100000
- I (88) boot: End of partition table
- I (92) esp_image: segment 0: paddr=00010020 vaddr=3c0c0020 size=2d4d8h (185560) map
- I (130) esp_image: segment 1: paddr=0003d500 vaddr=3fc90c00 size=02b18h ( 11032) load
- I (133) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=ba3e4h (762852) map
- I (258) esp_image: segment 3: paddr=000fa40c vaddr=3fc93718 size=0073ch ( 1852) load
- I (258) esp_image: segment 4: paddr=000fab50 vaddr=40380000 size=10a2ch ( 68140) load
- I (282) boot: Loaded app from partition at offset 0x10000
- I (282) boot: Disabling RNG early entropy source...
- I (294) cpu_start: Unicore app
- I (294) cpu_start: Pro cpu up.
- I (302) cpu_start: Pro cpu start user code
- I (302) cpu_start: cpu freq: 160000000 Hz
- I (303) cpu_start: Application information:
- I (305) cpu_start: Project name: homekit-switch
- I (311) cpu_start: App version: c0b0074-dirty
- I (316) cpu_start: Compile time: Nov 7 2023 12:34:43
- I (323) cpu_start: ELF file SHA256: 917335dbb...
- I (328) cpu_start: ESP-IDF: v5.1-dev-7241-g3640dc86bb-dirty
- I (335) cpu_start: Min chip rev: v0.3
- I (340) cpu_start: Max chip rev: v0.99
- I (345) cpu_start: Chip rev: v0.4
- I (349) heap_init: Initializing. RAM available for dynamic allocation:
- I (357) heap_init: At 3FC98E10 len 00043900 (270 KiB): DRAM
- I (363) heap_init: At 3FCDC710 len 00002950 (10 KiB): STACK/DRAM
- I (369) heap_init: At 50000010 len 00001FD8 (7 KiB): RTCRAM
- I (376) spi_flash: detected chip: generic
- I (380) spi_flash: flash io: dio
- W (384) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
- I (398) sleep: Configure to isolate all GPIO pins in sleep state
- I (404) sleep: Enable automatic switching of GPIO sleep configuration
- I (411) app_start: Starting scheduler on CPU0
- I (416) main_task: Started on CPU0
- I (416) main_task: Calling app_main()
- Keystore initialised
- Accessory is not Paired with any controller
- Database initialised. Accessory Device ID: FC:BD:98:7C:FF:BC
- HAP Initialization succeeded. Version : 4.0-bd236e7
- ESP-ROM:esp32c3-api1-20210207
- Build:Feb 7 2021
- rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT)
- SPIWP:0xee