About eth2wifi transmit error

OOOOOOOPF
Posts: 7
Joined: Mon Jul 18, 2022 11:46 am

About eth2wifi transmit error

Postby OOOOOOOPF » Tue Aug 16, 2022 3:41 pm

I made my own board with esp-wroom-32UE, and a SR8201F ethernet chip, when I test eth2sta code, everything goes well, and then for about 1 mins or 5mins later, the ethernet suddenly can't send message to PC, and the chip begin to reboot in different reason, below are my logs, I want to know why:
[14:44:15:805]Rx←⦁ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6624
load:0x40078000,len:147
[14:44:15:853]Rx←⦁80
load:0x40080400,len:3792
entry 0x40080694
[0;32mI (27) boot: ESP-IDF v4.4-dirty 2nd stage bootloader[0m
[0;32mI (27) boot: compile time 19:47:35[0m
[0;32mI (27) boot: chip revision: 3[0m
[0;32mI (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0[0m
[0;32mI (38) boot.esp32: SPI Speed : 40MHz[0m
[0;32mI (42) boot.esp32: SPI Mode : DIO[0m
[0;32mI (47) boot.esp32: SPI Flash Size : 4MB[0m
[0;32mI (51) boot: Enabling RNG early entropy source...[0m
[0;32mI (57) boot: Parti
[14:44:15:896]Rx←⦁tion Table:[0m
[0;32mI (60) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (68) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (75) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (82) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (90) boot: End of partition table[0m
[0;32mI (94) boot_comm: chip revision: 3, min. application chip revision
[14:44:15:940]Rx←⦁: 0[0m
[0;32mI (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=17e50h ( 97872) map[0m
[0;32mI (145) esp_image: segment 1: paddr=00027e78 vaddr=3ffb0000 size=03838h ( 14392) load[0m
[0;32mI (151) esp_image: segm
[14:44:15:984]Rx←⦁ent 2: paddr=0002b6b8 vaddr=40080000 size=04960h ( 18784) load[0m
[0;32mI (159) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=74dech (478700) map[0m

[14:44:16:138]Rx←⦁[0;32mI (333) esp_image: segment 4: paddr=000a4e14 vaddr=40084960 size=109d8h ( 68056) load[0m

[14:44:16:186]Rx←⦁[0;32mI (361) esp_image: segment 5: paddr=000b57f4 vaddr=50000000 size=00010h ( 16) load[0m
[0;32mI (372) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (372) boot: Disabling RNG early entropy source...[0m
[0;32mI (383) cpu_start: Pro cpu up.[0m
[0;32mI (384) cpu_start: Starting app cpu, entry point is 0x40081278[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (398) cpu_start: Pro cp
[14:44:16:226]Rx←⦁u start user code[0m
[0;32mI (398) cpu_start: cpu freq: 160000000[0m
[0;32mI (398) cpu_start: Application information:[0m
[0;32mI (402) cpu_start: Project name: eth2ap[0m
[0;32mI (407) cpu_start: App version: ec93f4e-dirty[0m
[0;32mI (412) cpu_start: Compile time: Jul 13 2022 19:46:26[0m
[0;32mI (419) cpu_start: ELF file SHA256: c5db9b0097c80e54...[0m
[0;32mI (425) cpu_start: ESP-IDF: v4.4-dirty[0m

[14:44:16:272]Rx←⦁[0;32mI (430) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (437) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM[0m
[0;32mI (443) heap_init: At 3FFB74D8 len 00028B28 (162 KiB): DRAM[0m
[0;32mI (449) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (456) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (462) heap_init: At 40095338 len 0000ACC8 (43 KiB): IRAM[0m
[0;32mI (470) spi_flash: detected chip: generic[0m
[0;32mI (473) spi_flash: flash io: dio[0m
[
[14:44:16:313]Rx←⦁0;33mW (477) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.[0m
[0;32mI (491) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m

[14:44:16:353]Rx←⦁[0;32mI (560) ua[0;32mI (560) system_api: Base MAC address is not set[0m
[0;32mI (570) system_api: read default base MAC address from EFUSE[0m
[0;31mE (570) rtl8201: Before Write bmcr.power_down is 0[0m
[0;31mE (570) rtl8201: After Write bmcr.power_down is 0[0m
[0;31mE (580) rtl8201: H2 bmcr.power_down is 0[0m
[0;31mE (580) rtl8201: During waiting num 0 bmcr.power_down is 0[0m
[0;31mE (600) rt
[14:44:16:394]Rx←⦁l8201: During waiting num 0 bmcr.power_down is 0[0m
[0;31mE (600) rtl8201: During waiting num 0 bmcr.power_down is 0[0m

[14:44:17:991]Rx←⦁[0;32mI (2220) eth2sta: Ethernet Started[0m
[0;32mI (2220) eth2sta: Ethernet Link Up[0m
[0;32mI (2220) eth2sta: Ethernet s_eth_mac Addr 24:4c:ab:d2:be:4f[0m
[0;32mI (2220) eth2sta: ETHERNET_EVENT_CONNECTED DONE

[0m
I (2240) wifi:wifi driver t
[14:44:18:042]Rx←⦁ask: 3ffc6240, prio:23, stack:6656, core=0
I (2250) wifi:wifi firmware version: 7679c42
I (2250) wifi:wifi certification version: v7.0
I (2250) wifi:config NVS flash: enabled
I (2250) wifi:config nano formating: disabled
I (2260) wifi:Init data frame dynamic rx buffer num: 32
I (2260) wifi:Init management frame dynamic rx buffer num: 32
I (2270) wifi:Init management short buffer num: 32
I (2270) wifi:Init dynamic tx buffer num: 32
I (2270) wifi:Init static rx buffer size: 1600

[14:44:18:088]Rx←⦁I (2280) wifi:Init static rx buffer num: 10
I (2280) wifi:Init dynamic rx buffer num: 32
[0;32mI (2290) wifi_init: rx ba win: 6[0m
[0;32mI (2290) wifi_init: tcpip mbox: 32[0m
[0;32mI (2290) wifi_init: udp mbox: 6[0m
[0;32mI (2300) wifi_init: tcp mbox: 6[0m
[0;32mI (2300) wifi_init: tcp tx win: 5744[0m
[0;32mI (2310) wifi_init: tcp rx win: 5744[0m
[0;32mI (2310) wifi_init: tcp mss: 1440[0m
[0;32mI (2310) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (2320) wifi_init: WiFi RX IRAM OP e
[14:44:18:130]Rx←⦁nabled[0m
[0;32mI (2330) eth2sta: wifi_init_sta finished.[0m

[14:44:18:296]Rx←⦁[0;32mI (2520) eth2sta: Ethernet s_eth_mac Addr REPLACE TIME 00:0e:c6:78:f1:02[0m
[0;32mI (2520) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07[0m

[14:44:18:398]Rx←⦁I (2620) wifi:mode : sta (24:4c:ab:d2:be:4c)
I (2620) wifi:enable tsf
I (2620) wifi:enable tsf
[0;32mI (2630) eth2sta: WIFI_EVENT_STA_START

[0m
[0;32mI (2630) eth2sta: WIFI_EVENT_STA_START

[0m
E (2630) wifi:sta is connecting, return error
I (
[14:44:18:446]Rx←⦁2640) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (2640) wifi:state: init -> auth (b0)
I (2650) wifi:state: auth -> assoc (0)
I (2690) wifi:state: assoc -> ru
[14:44:18:492]Rx←⦁n (10)
I (2730) wifi:connected with fpoap, aid = 3, channel 6, BW20, bssid = 62:55:ab:b3:9b:09
I (2730
[14:44:18:528]Rx←⦁) wifi:security: WPA2-PSK, phy: bgn, rssi: -44
I (2730) wifi:pm start, type: 1

[0;32mI (2740) eth2sta: WIFI_EVENT_STA_CONNECTED

[0m
[0;32mI (2740) eth2sta: AP 62:55:ab:b3:9b:09 HAS CONNECTED[0m
[0;32mI (2740) eth2sta: connected to ap SSID:fpoap password:jjjkkk05[0m
W (2760) wifi:<ba-add>idx:0 (ifx:0, 62:55:ab:b3:9b:09), tid:0, ssn:0, winSize:64

[14:44:18:597]Rx←⦁I (2820) wifi:AP's beacon interval = 102400 us, DTIM period = 2

[14:44:19:807]Rx←⦁W (4030) wifi:<ba-add>idx:1 (ifx:0, 62:55:ab:b3:9b:09), tid:6, ssn:2, winSize:64

[14:44:21:881]Rx←⦁[0;31mE (6100) esp.emac: emac_esp32_transmit(235): insufficient TX buffer size[0m
[0;31mE (6100) eth2sta: Ethernet send packet failed[0m

[14:44:26:411]Rx←⦁[0;31mE (10630) esp.emac: emac_esp32_transmit(235): insufficient TX buffer size[0m
[0;31mE (10630) eth2sta: Ethernet send packet failed[0m

[14:49:21:084]Rx←⦁
褧嵮缴亀as triggered

nsufficient TX buffer size[0m
[0;31mE (10630) eth2sta: Ethernet send packet failed[0m

Brownout detector was triggered

nsufficient TX buffer size[0m
[0;31mE (10630) eth2sta: ets Jul 29 2019 12:21:46

rst:
[14:49:21:149]Rx←⦁0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6624
load:0x40078000,len:14780
load:0x40080400,len:3792
entry 0x40080694
[0;32mI (27) boot: ESP-IDF v4.4-dirty 2nd stage bootloader[0m
[0;32mI (27) boot: compile time 19:47:35[0m
[0;32mI (27) boot: chip revision: 3[0m
[0;32mI (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0[0m
[0;32mI (38) boot.esp32: SPI Speed : 40MHz[0m
[0;32mI (42) boot.esp32: SPI Mode : DIO[0m
[0;32mI (47) boot.esp32: SPI Flash Size : 4MB[0m
[0;32mI (51) boot: Enabling RNG early entropy source...[0m
[0;32mI (57) boot: Partition Table:[0m
[14:49:21:202]Rx←⦁
[0;32mI (60) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (68) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (75) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (82) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (90) boot: End of partition table[0m
[0;32mI (94) boot_comm: chip revision: 3, min. application chip revision: 0[0m
[0;32mI (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=17e50h ( 97872) map[0m

[14:49:21:256]Rx←⦁[0;32mI (145) esp_image: segment 1: paddr=00027e78 vaddr=3ffb0000 size=03838h ( 14392) load[0m
[0;32mI (151) esp_image: segment 2: paddr=0002b6b8 vaddr=40080000 size=04960h ( 18784) load[0m
[0;32mI (159) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=74dech (478700) map[0m

[14:49:21:432]Rx←⦁[0;32mI (333) esp_image: segment 4: paddr=000a4e14 vaddr=40084960 size=109d8h ( 68056) load[0m

[14:49:21:476]Rx←⦁[0;32mI (361) esp_image: segment 5: paddr=000b57f4 vaddr=50000000 size=00010h ( 16) load[0m
[0;32mI (372) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (372) boot: Disabling RNG early entropy source...[0m
[0;32mI (383) cpu_start: Pro cpu up.[0m
[0;32mI (384) cpu_start: Starting app cpu, entry point is 0x40081278[0m
[0;32mI (0) cpu_start: App cpu up.[0m

[14:49:21:511]Rx←⦁[0;32mI (398) cpu_start: Pro cpu start user code[0m
[0;32mI (398) cpu_start: cpu freq: 160000000[0m
[0;32mI (398) cpu_start: Application information:[0m
[0;32mI (402) cpu_start: Project name: eth2ap[0m
[0;32mI (407) cpu_start: App version: ec93f4e-dirty[0m
[0;32mI (412) cpu_start: Compile time: Jul 13 2022 19:46:26[0m
[0;32mI (419) cpu_start: ELF fil
[14:49:21:558]Rx←⦁e SHA256: c5db9b0097c80e54...[0m
[0;32mI (425) cpu_start: ESP-IDF: v4.4-dirty[0m
[0;32mI (430) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (437) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM[0m
[0;32mI (443) heap_init: At 3FFB74D8 len 00028B28 (162 KiB): DRAM[0m
[0;32mI (449) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (456) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (462) heap_init: At 40095338 len 0000ACC8 (43 KiB): IRAM[0m
[0;3
[14:49:21:612]Rx←⦁2mI (470) spi_flash: detected chip: generic[0m
[0;32mI (473) spi_flash: flash io: dio[0m
[0;33mW (477) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.[0m
[0;32mI (491) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m

[14:49:21:671]Rx←⦁[0;32mI (560) ua[0;32mI (560) system_api: Base MAC address is not set[0m
[0;32mI (570) system_api: read default base MAC address from EFUSE[0m
[0;31mE (570) rtl8201: Before Write bmcr.power_down is 0[0m
[0;31mE (570) rtl8201: After Write bmcr.power_down is 0[0m
[0;31mE (580) rtl8201: H2 bmcr.power_down is 0[0m
[0;31mE (580) rtl8201: During waiting num 0 bmcr.power_down is 0[0m
[0;31mE (600) rtl8201: During waiting num 0 bmcr.power_down is 0[0m
[0;31mE (600) rtl8201: During waiting num 0 bmcr.power_down is 0[0m

[14:49:23:285]Rx←⦁[0;32mI (2220) eth2sta: Ethernet Started[0m
[0;32mI (2220) eth2sta: Ethernet Link Up[0m
[0;32mI (2220) eth2sta: Ethernet s_eth_mac Addr 24:4c:ab:d2:be:4f[0m
[0;32mI (2220) eth2sta: ETHERNET_EVENT_CONNECTED DONE

[0m
I (2240) wifi:wifi driver t
[14:49:23:339]Rx←⦁ask: 3ffc6240, prio:23,K曱0

Brownout detector was triggered


[14:49:23:865]Rx←⦁
[14:49:24:313]Rx←⦁ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6624
load:0x40078000,len
[14:49:24:362]Rx←⦁:14780
load:0x40080400,len:3792
entry 0x40080694
[0;32mI (28) boot: ESP-IDF v4.4-dirty 2nd stage bootloader[0m
[0;32mI (28) boot: compile time 19:47:35[0m
[0;32mI (28) boot: chip revision: 3[0m
[0;32mI (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0[0m
[0;32mI (38) boot.esp32: SPI Speed : 40MHz[0m
[0;32mI (43) boot.esp32: SPI Mode : DIO[0m
[0;32mI (47) boot.esp32: SPI Flash Size : 4MB[0m
[0;32mI (52) boot: Enabling RNG early entropy source...[0m
[0;32mI (57) boot: Parti
[14:49:24:407]Rx←⦁tion Table:[0m
[0;32mI (61) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (68) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (75) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (83) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (90) boot: End of partition table[0m
[0;32mI (94) boot_comm: chip revision: 3, min. application chip revision: 0[0m
[0;32mI (102) esp_image: segment 0: paddr=00010020 vad
[14:49:24:446]Rx←⦁dr=3f400020 size=17e50h ( 97872) map[0m
[0;32mI (146) esp_image: segment 1: paddr=00027e78 vaddr=3ffb0000 size=03838h ( 14392) load[0m
[14:49:24:490]Rx←⦁
[0;32mI (151) esp_image: segment 2: paddr=0002b6b8 vaddr=40080000 size=04960h ( 18784) load[0m
[0;32mI (159) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=74dech (478700) map[0m

[14:49:24:646]Rx←⦁[0;32mI (333) esp_image: segment 4: paddr=000a4e14 vaddr=40084960 size=109d8h ( 68056) load[0m

[14:49:24:702]Rx←⦁[0;32mI (361) esp_image: segment 5: paddr=000b57f4 vaddr=50000000 size=00010h ( 16) load[0m
[0;32mI (372) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (372) boot: Disabling RNG early entropy source...[0m
[0;32mI (384) cpu_start: Pro cpu up.[0m
[0;32mI (384) cpu_start: Starting app cpu, entry point is 0x40081278[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (398) cpu_start: Pro cpu start user code[0m
[0;32mI (398) cpu_start: cpu freq: 160000000[0m
[0;32mI (398) cpu_sta
[14:49:24:749]Rx←⦁rt: Application information:[0m
[0;32mI (402) cpu_start: Project name: eth2ap[0m
[0;32mI (407) cpu_start: App version: ec93f4e-dirty[0m
[0;32mI (413) cpu_start: Compile time: Jul 13 2022 19:46:26[0m
[0;32mI (419) cpu_start: ELF file SHA256: c5db9b0097c80e54...[0m
[0;32mI (425) cpu_start: ESP-IDF: v4.4-dirty[0m
[0;32mI (430) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (437) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM[0m
[0;32mI (443) heap_init: At 3FFB74D8 l
[14:49:24:790]Rx←⦁en 00028B28 (162 KiB): DRAM[0m
[0;32mI (450) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (456) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (462) heap_init: At 40095338 len 0000ACC8 (43 KiB): IRAM[0m
[0;32mI (470) spi_flash: detected chip: generic[0m
[0;32mI (473) spi_flash: flash io: dio[0m
[0;33mW (477) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binar
[14:49:24:837]Rx←⦁y image header.[0m
[0;32mI (491) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (560) ua[0;32mI (560) system_api: Base MAC address is not set[0m
[0;32mI (570) system_api: read default base MAC address from EFUSE[0m
[0;31mE (
[14:49:24:873]Rx←⦁570) rtl8201: Before Write bmcr.power_down is 0[0m
[0;31mE (570) rtl8201: After Write bmcr.power_down is 0[0m
[0;31mE (580) rtl8201: H2 bmcr.power_down is 0[0m
[0;31mE (580) rtl8201: During waiting num 0 bmcr.power_down is 0[0m
[0;31mE (600) rtl8201: During waiting num 0 bmcr.power_down is 0[0m
[0;31mE (600) rtl8201: During waiting num 0 bmcr.power_down is 0[0m

[14:49:26:499]Rx←⦁[0;32mI (2220) eth2sta: Ethernet Started[0m
[0;32mI (2220) eth2sta: Ethernet Link Up[0m
[0;32mI (2220) eth2sta: Ethernet s_eth_mac Addr 24:4c:ab:d2:be:4f[0m
[0;32mI (2220) eth2sta: ETHERNET_EVENT_CONNECTED DONE

[0m
I (2240) wifi:wifi driver t
[14:49:26:545]Rx←⦁ask: 3ffc6240, prio:23, stack:6656, core=0

ctor was triggered

ESP_ondrej
Posts: 211
Joined: Fri May 07, 2021 10:35 am

Re: About eth2wifi transmit error

Postby ESP_ondrej » Thu Aug 18, 2022 9:31 am

I noticed several occasions of "Brownout detector was triggered" in your log. It indicates some issues with HW, more specifically this message is reported when voltage supplied to the chip gets too low.

See for example https://randomnerdtutorials.com/esp32-t ... ing-guide/ bullet 8) for some hints how to fix.

Who is online

Users browsing this forum: No registered users and 171 guests