Closed taxidriver2022 closed 4 months ago
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \.\COM4 instead...
--- esp-idf-monitor 1.4.0 on \.\COM4 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
I (13) boot: ESP-IDF 3bf3bdce-dirty 2nd stage bootloader
I (13) boot: compile time Jun 14 2024 17:31:24
W (13) boot: Unicore bootloader
I (17) boot: chip revision: v3.1
I (21) boot.esp32: SPI Speed : 40MHz
I (25) boot.esp32: SPI Mode : DIO
I (30) boot.esp32: SPI Flash Size : 8MB
I (34) boot: Enabling RNG early entropy source...
I (40) boot: Partition Table:
I (43) boot: ## Label Usage Type ST Offset Length
I (51) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (58) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (66) boot: 2 ota_0 OTA app 00 10 00010000 00270000
I (73) boot: 3 ota_1 OTA app 00 11 00280000 00270000
I (81) boot: 4 dzk12 Unknown data 01 42 00600000 00040000
I (88) boot: 5 dzk14 Unknown data 01 43 00640000 00040000
I (96) boot: 6 logo Unknown data 01 41 00680000 00004000
I (103) boot: 7 backup Unknown data 01 44 00684000 00004000
I (111) boot: 8 alarm Unknown data 01 46 00688000 00008000
I (118) boot: 9 status Unknown data 01 47 00690000 00070000
I (126) boot: 10 eeprom Unknown data 01 40 00700000 000c0000
I (133) boot: 11 stat Unknown data 01 48 007c0000 00008000
I (141) boot: End of partition table
I (145) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=3c554h (247124) map
I (243) esp_image: segment 1: paddr=0004c57c vaddr=3ffb0000 size=03a9ch ( 15004) load
I (249) esp_image: segment 2: paddr=00050020 vaddr=400d0020 size=be164h (778596) map
I (530) esp_image: segment 3: paddr=0010e18c vaddr=3ffb3a9c size=0068ch ( 1676) load
I (531) esp_image: segment 4: paddr=0010e820 vaddr=40080000 size=1638ch ( 91020) load
I (585) boot: Loaded app from partition at offset 0x10000
I (585) boot: Disabling RNG early entropy source...
I (597) cpu_start: Unicore app
I (597) cpu_start: Pro cpu up.
I (597) cpu_start: Single core mode
I (609) cpu_start: Pro cpu start user code
I (609) cpu_start: cpu freq: 160000000 Hz
I (609) cpu_start: Application information:
I (620) cpu_start: App version: 1.0.1
I (625) cpu_start: Compile time: Jun 21 2024 14:53:03
I (631) cpu_start: ELF file SHA256: f56ce8127c824f0f...
I (637) cpu_start: ESP-IDF: 3bf3bdce-dirty
I (642) cpu_start: Min chip rev: v0.0
I (647) cpu_start: Max chip rev: v3.99
I (652) cpu_start: Chip rev: v3.1
I (657) heap_init: Initializing. RAM available for dynamic allocation:
I (664) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (670) heap_init: At 3FFB9D08 len 000262F8 (152 KiB): DRAM
I (676) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (683) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (689) heap_init: At 4009638C len 00009C74 (39 KiB): IRAM
I (695) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (703) spi_flash: detected chip: gd
I (705) spi_flash: flash io: dio
I (710) app_start: Starting scheduler on CPU0
I (714) main_task: Started on CPU0
I (718) main_task: Calling app_main()
I (752) common: wifi_soft_version = 4097
I (752) app_main: ROMReg.name = 173, ROMReg.array = 173
I (752) app_main: ROMRegRange.min = 173, ROMRegRange.max = 173
I (758) app_main: RAMReg.name = 118, RAMReg.array = 118
I (764) app_main: Coils.name = 6, Coils.array = 6
I (773) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (782) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (791) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (801) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (810) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (820) TaskDTU: DTU UART number : 2
I (824) TaskDTU: Start RS485 application test and configure UART.
I (831) TaskDTU: UART set pins, mode and install driver. (847) uart: queue free spaces: 2
I (1849) app_main: heap(min:now) 236148:236172
I (1851) bridge_common: esp-iot-bridge version: 0.11.7
I (1853) wifi:wifi driver task: 3ffcc1b4, prio:23, stack:6656, core=0
I (1859) wifi:wifi firmware version: 91b9630
I (1860) wifi:wifi certification version: v7.0
I (1865) wifi:config NVS flash: enabled
I (1869) wifi:config nano formating: disabled
I (1873) wifi:Init data frame dynamic rx buffer num: 32
I (1879) wifi:Init static rx mgmt buffer num: 5
I (1883) wifi:Init management short buffer num: 32
I (1888) wifi:Init dynamic tx buffer num: 32
I (1893) wifi:Init static rx buffer size: 1600
I (1897) wifi:Init static rx buffer num: 10
I (1902) wifi:Init dynamic rx buffer num: 32
I (1919) wifi_init: tcpip mbox: 32
I (1919) wifi_init: udp mbox: 6
I (1919) wifi_init: tcp mbox: 6
I (1920) wifi_init: tcp tx win: 5744
I (1924) wifi_init: tcp rx win: 5744
I (1929) wifi_init: tcp mss: 1440
I (1934) wifi_init: WiFi IRAM OP enabled
I (1939) wifi_init: WiFi RX IRAM OP enabled
I (1945) phy_init: phy_version 4780,16b31a7,Sep 22 2023,20:42:16
I (2023) wifi:mode : null
I (2038) wifi:mode : softAP (fc:b4:67:8d:4f:39)
I (2040) wifi:Total power save buffer number: 16
I (2040) wifi:Init max length of beacon: 752/752
I (2041) wifi:Init max length of beacon: 752/752
I (2049) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
Add netif ap with (commit id)
I (2058) bridge_common: netif list add success
I (2065) bridge_common: [WIFI_AP_DEF ]
I (2070) wifi:Disabled PMF config for SoftAP
I (2074) wifi:Total power save buffer number: 16
I (2081) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (2088) bridge_common: [WIFI_AP_DEF ]Name Server1: 114.114.114.114
I (2108) bridge_common: DHCPS Restart, deauth all station
I (2143) esp_eth.netif.netif_glue: fc:b4:67:8d:4f:3b
I (2143) esp_eth.netif.netif_glue: ethernet attached to netif
I (4487) bridge_eth: Ethernet Started
I (4489) bridge_eth: Ethernet Link Up
I (4490) bridge_eth: Ethernet HW Addr fc:b4:67:8d:4f:3b
I (4493) bridge_eth: [ETH_WAN ]
Add netif eth with (commit id)
I (4499) bridge_common: netif list add success
Add netif sta with (commit id)
I (4508) bridge_common: netif list add success
I (4515) wifi:mode : sta (fc:b4:67:8d:4f:38) + softAP (fc:b4:67:8d:4f:39)
I (4521) wifi:enable tsf
E (4526) NVS: Failed to read IP info from NVS
I (4529) wifi:Disabled PMF config for STA
W (4551) wifi:Affected by the ESP-NOW encrypt num, set the max connection num to 10
I (5243) wifi:Total power save buffer number: 16
I (5249) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (5265) bridge_wifi: SoftAP config changed, deauth all station
I (5265) bridge_wifi: [esp_bridge_wifi_set_config] sta ssid: m password: 11223344
I (5270) wifi:mode : sta (fc:b4:67:8d:4f:38)
I (5278) app_main: heap(min:now) 152196:157056
I (5279) app_main: heap(min:now) 152196:157232
I (5285) app_main: heap(min:now) 152196:157232
I (5849) app_main: heap(min:now) 152196:157232
I (6851) app_main: heap(min:now) 152196:157232
I (7248) bridge_eth: Ethernet Got IP Address
I (7248) bridge_eth: ~~~
I (7249) bridge_eth: ETHIP:192.168.1.163
I (7251) bridge_eth: ETHMASK:255.255.255.0
I (7256) bridge_eth: ETHGW:192.168.1.1
I (7261) bridge_eth: ~~~
I (7266) bridge_common: [WIFI_AP_DEF ]Name Server1: 192.168.1.1
I (7273) esp_netif_handlers: eth ip: 192.168.1.163, mask: 255.255.255.0, gw: 192.168.1.1
I (7282) app_main: Ethernet Got IP Address
I (7288) app_main: ~~~
I (7292) app_main: IP:192.168.1.163
I (7296) app_main: MASK:255.255.255.0
I (7301) app_main: GW:192.168.1.1
I (7305) app_main: ~~~
I (7310) app_main: MASK:255.255.255.0
I (7314) app_main: DNS1: 192.168.1.1
I (7319) app_main: DNS2: 114.114.114.114
E (13736) wifi:NAN WiFi stop
I (13739) wifi:flush txq
I (13739) wifi:stop sw txq
I (13740) wifi:lmac stop hw txq
I (13) boot: ESP-IDF 3bf3bdce-dirty 2nd stage bootloader
I (13) boot: compile time Jun 14 2024 17:31:24
W (13) boot: Unicore bootloader
I (16) boot: chip revision: v3.1
I (20) boot.esp32: SPI Speed : 40MHz
I (25) boot.esp32: SPI Mode : DIO
I (30) boot.esp32: SPI Flash Size : 8MB
I (34) boot: Enabling RNG early entropy source...
I (40) boot: Partition Table:
I (43) boot: ## Label Usage Type ST Offset Length
I (50) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (58) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (65) boot: 2 ota_0 OTA app 00 10 00010000 00270000
I (73) boot: 3 ota_1 OTA app 00 11 00280000 00270000
I (80) boot: 4 dzk12 Unknown data 01 42 00600000 00040000
I (88) boot: 5 dzk14 Unknown data 01 43 00640000 00040000
I (95) boot: 6 logo Unknown data 01 41 00680000 00004000
I (103) boot: 7 backup Unknown data 01 44 00684000 00004000
I (110) boot: 8 alarm Unknown data 01 46 00688000 00008000
I (118) boot: 9 status Unknown data 01 47 00690000 00070000
I (125) boot: 10 eeprom Unknown data 01 40 00700000 000c0000
I (133) boot: 11 stat Unknown data 01 48 007c0000 00008000
I (140) boot: End of partition table
I (145) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=3c554h (247124) map
I (242) esp_image: segment 1: paddr=0004c57c vaddr=3ffb0000 size=03a9ch ( 15004) load
I (249) esp_image: segment 2: paddr=00050020 vaddr=400d0020 size=be164h (778596) map
I (530) esp_image: segment 3: paddr=0010e18c vaddr=3ffb3a9c size=0068ch ( 1676) load
I (531) esp_image: segment 4: paddr=0010e820 vaddr=40080000 size=1638ch ( 91020) load
I (585) boot: Loaded app from partition at offset 0x10000
I (585) boot: Disabling RNG early entropy source...
I (596) cpu_start: Unicore app
I (597) cpu_start: Pro cpu up.
I (597) cpu_start: Single core mode
I (608) cpu_start: Pro cpu start user code
I (609) cpu_start: cpu freq: 160000000 Hz
I (609) cpu_start: Application information:
I (620) cpu_start: App version: 1.0.1
I (624) cpu_start: Compile time: Jun 21 2024 14:53:03
I (630) cpu_start: ELF file SHA256: f56ce8127c824f0f...
I (636) cpu_start: ESP-IDF: 3bf3bdce-dirty
I (642) cpu_start: Min chip rev: v0.0
I (647) cpu_start: Max chip rev: v3.99
I (652) cpu_start: Chip rev: v3.1
I (657) heap_init: Initializing. RAM available for dynamic allocation:
I (664) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (670) heap_init: At 3FFB9D08 len 000262F8 (152 KiB): DRAM
I (676) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (682) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (688) heap_init: At 4009638C len 00009C74 (39 KiB): IRAM
I (695) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (702) spi_flash: detected chip: gd
I (705) spi_flash: flash io: dio
I (710) app_start: Starting scheduler on CPU0
I (714) main_task: Started on CPU0
I (718) main_task: Calling app_main()
I (752) common: wifi_soft_version = 4097
I (752) app_main: ROMReg.name = 173, ROMReg.array = 173
I (752) app_main: ROMRegRange.min = 173, ROMRegRange.max = 173
I (758) app_main: RAMReg.name = 118, RAMReg.array = 118
I (764) app_main: Coils.name = 6, Coils.array = 6
I (773) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (782) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (791) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (801) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (810) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (820) TaskDTU: DTU UART number : 2
I (824) TaskDTU: Start RS485 application test and configure UART.
I (831) TaskDTU: UART set pins, mode and install driver. (847) uart: queue free spaces: 2
I (1851) bridge_common: esp-iot-bridge version: 0.11.7
I (1853) wifi:wifi driver task: 3ffcc1b4, prio:23, stack:6656, core=0
I (1859) wifi:wifi firmware version: 91b9630
I (1860) wifi:wifi certification version: v7.0
I (1865) wifi:config NVS flash: enabled
I (1869) wifi:config nano formating: disabled
I (1873) wifi:Init data frame dynamic rx buffer num: 32
I (1879) wifi:Init static rx mgmt buffer num: 5
I (1883) wifi:Init management short buffer num: 32
I (1888) wifi:Init dynamic tx buffer num: 32
I (1893) wifi:Init static rx buffer size: 1600
I (1897) wifi:Init static rx buffer num: 10
I (1901) wifi:Init dynamic rx buffer num: 32
I (1919) wifi_init: tcpip mbox: 32
I (1919) wifi_init: udp mbox: 6
I (1919) wifi_init: tcp mbox: 6
I (1920) wifi_init: tcp tx win: 5744
I (1924) wifi_init: tcp rx win: 5744
I (1929) wifi_init: tcp mss: 1440
I (1934) wifi_init: WiFi IRAM OP enabled
I (1939) wifi_init: WiFi RX IRAM OP enabled
I (1945) phy_init: phy_version 4780,16b31a7,Sep 22 2023,20:42:16
I (2024) wifi:mode : null
I (2039) wifi:mode : softAP (fc:b4:67:8d:4f:39)
I (2041) wifi:Total power save buffer number: 16
I (2041) wifi:Init max length of beacon: 752/752
I (2042) wifi:Init max length of beacon: 752/752
I (2050) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
Add netif ap with (commit id)
I (2059) bridge_common: netif list add success
I (2066) bridge_common: [WIFI_AP_DEF ]
I (2071) wifi:Disabled PMF config for SoftAP
I (2075) wifi:Total power save buffer number: 16
I (2082) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (2089) bridge_common: [WIFI_AP_DEF ]Name Server1: 114.114.114.114
I (2109) bridge_common: DHCPS Restart, deauth all station
E (2241) eth_phy_802_3: eth_phy_802_3_pwrctl(162): power up timeout
E (2241) eth_phy_802_3: esp_eth_phy_802_3_basic_phy_init(329): power control failed
E (2246) ip101: ip101_init(175): failed to init PHY
E (2252) esp_eth: esp_eth_driver_install(229): init phy failed
E (2259) esp_eth: esp_eth_increase_reference(489): ethernet driver handle can't be null
E (2269) esp_eth: esp_eth_update_input_path(334): ethernet driver handle can't be null
E (2278) esp_eth: esp_eth_ioctl(402): ethernet driver handle can't be null
I (2293) esp_eth.netif.netif_glue: 10:ed:10:40:a0:a9
I (2293) esp_eth.netif.netif_glue: ethernet attached to netif
E (2300) esp_eth: esp_eth_start(282): ethernet driver handle can't be null
I (2308) bridge_eth: [ETH_WAN ]
Add netif eth with (commit id)
I (2316) bridge_common: netif list add success
Add netif sta with (commit id)
I (2324) bridge_common: netif list add success
I (2331) wifi:mode : sta (fc:b4:67:8d:4f:38) + softAP (fc:b4:67:8d:4f:39)
I (2338) wifi:enable tsf
E (2342) NVS: Failed to read IP info from NVS
I (2355) wifi:Disabled PMF config for STA
W (2360) wifi:Affected by the ESP-NOW encrypt num, set the max connection num to 10
I (3058) wifi:Total power save buffer number: 16
I (3065) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (3078) bridge_wifi: SoftAP config changed, deauth all station
I (3079) bridge_wifi: [esp_bridge_wifi_set_config] sta ssid: m password: 11223344
I (3084) wifi:mode : sta (fc:b4:67:8d:4f:38)
I (3091) app_main: heap(min:now) 153116:157408
I (3849) app_main: heap(min:now) 153116:157584
I (4849) app_main: heap(min:now) 153116:157584
I (5505) app_main: wifi disconnected, restarting!
I (5849) app_main: heap(min:now) 153116:157584
I (6849) app_main: heap(min:now) 153116:157584
I (7849) app_main: heap(min:now) 153116:157584
I (7919) app_main: wifi disconnected, restarting!
E (15336) wifi:NAN WiFi stop
I (15338) wifi:flush txq
I (15339) wifi:stop sw txq
I (15339) wifi:lmac stop hw txq
I (13) boot: ESP-IDF 3bf3bdce-dirty 2nd stage bootloader
I (13) boot: compile time Jun 14 2024 17:31:24
W (13) boot: Unicore bootloader
I (17) boot: chip revision: v3.1
I (20) boot.esp32: SPI Speed : 40MHz
I (25) boot.esp32: SPI Mode : DIO
I (30) boot.esp32: SPI Flash Size : 8MB
I (34) boot: Enabling RNG early entropy source...
I (40) boot: Partition Table:
I (43) boot: ## Label Usage Type ST Offset Length
I (50) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (58) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (65) boot: 2 ota_0 OTA app 00 10 00010000 00270000
I (73) boot: 3 ota_1 OTA app 00 11 00280000 00270000
I (80) boot: 4 dzk12 Unknown data 01 42 00600000 00040000
I (88) boot: 5 dzk14 Unknown data 01 43 00640000 00040000
I (95) boot: 6 logo Unknown data 01 41 00680000 00004000
I (103) boot: 7 backup Unknown data 01 44 00684000 00004000
I (110) boot: 8 alarm Unknown data 01 46 00688000 00008000
I (118) boot: 9 status Unknown data 01 47 00690000 00070000
I (125) boot: 10 eeprom Unknown data 01 40 00700000 000c0000
I (133) boot: 11 stat Unknown data 01 48 007c0000 00008000
I (140) boot: End of partition table
I (145) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=3c554h (247124) map
I (242) esp_image: segment 1: paddr=0004c57c vaddr=3ffb0000 size=03a9ch ( 15004) load
I (249) esp_image: segment 2: paddr=00050020 vaddr=400d0020 size=be164h (778596) map
I (530) esp_image: segment 3: paddr=0010e18c vaddr=3ffb3a9c size=0068ch ( 1676) load
I (531) esp_image: segment 4: paddr=0010e820 vaddr=40080000 size=1638ch ( 91020) load
I (585) boot: Loaded app from partition at offset 0x10000
I (585) boot: Disabling RNG early entropy source...
I (596) cpu_start: Unicore app
I (597) cpu_start: Pro cpu up.
I (597) cpu_start: Single core mode
I (608) cpu_start: Pro cpu start user code
I (609) cpu_start: cpu freq: 160000000 Hz
I (609) cpu_start: Application information:
I (620) cpu_start: App version: 1.0.1
I (624) cpu_start: Compile time: Jun 21 2024 14:53:03
I (630) cpu_start: ELF file SHA256: f56ce8127c824f0f...
I (636) cpu_start: ESP-IDF: 3bf3bdce-dirty
I (642) cpu_start: Min chip rev: v0.0
I (647) cpu_start: Max chip rev: v3.99
I (652) cpu_start: Chip rev: v3.1
I (657) heap_init: Initializing. RAM available for dynamic allocation:
I (664) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (670) heap_init: At 3FFB9D08 len 000262F8 (152 KiB): DRAM
I (676) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (682) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (688) heap_init: At 4009638C len 00009C74 (39 KiB): IRAM
I (695) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (702) spi_flash: detected chip: gd
I (705) spi_flash: flash io: dio
I (710) app_start: Starting scheduler on CPU0
I (714) main_task: Started on CPU0
I (718) main_task: Calling app_main()
I (752) common: wifi_soft_version = 4097
I (752) app_main: ROMReg.name = 173, ROMReg.array = 173
I (752) app_main: ROMRegRange.min = 173, ROMRegRange.max = 173
I (758) app_main: RAMReg.name = 118, RAMReg.array = 118
I (764) app_main: Coils.name = 6, Coils.array = 6
I (773) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (782) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (791) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (801) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (810) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (820) TaskDTU: DTU UART number : 2
I (824) TaskDTU: Start RS485 application test and configure UART.
I (831) TaskDTU: UART set pins, mode and install driver. (847) uart: queue free spaces: 2
I (1849) app_main: heap(min:now) 236148:236172
I (1851) bridge_common: esp-iot-bridge version: 0.11.7
I (1853) wifi:wifi driver task: 3ffcc1b4, prio:23, stack:6656, core=0
I (1859) wifi:wifi firmware version: 91b9630
I (1860) wifi:wifi certification version: v7.0
I (1865) wifi:config NVS flash: enabled
I (1869) wifi:config nano formating: disabled
I (1873) wifi:Init data frame dynamic rx buffer num: 32
I (1879) wifi:Init static rx mgmt buffer num: 5
I (1883) wifi:Init management short buffer num: 32
I (1888) wifi:Init dynamic tx buffer num: 32
I (1893) wifi:Init static rx buffer size: 1600
I (1897) wifi:Init static rx buffer num: 10
I (1901) wifi:Init dynamic rx buffer num: 32
I (1919) wifi_init: tcpip mbox: 32
I (1919) wifi_init: udp mbox: 6
I (1919) wifi_init: tcp mbox: 6
I (1920) wifi_init: tcp tx win: 5744
I (1924) wifi_init: tcp rx win: 5744
I (1929) wifi_init: tcp mss: 1440
I (1934) wifi_init: WiFi IRAM OP enabled
I (1939) wifi_init: WiFi RX IRAM OP enabled
I (1945) phy_init: phy_version 4780,16b31a7,Sep 22 2023,20:42:16
I (2024) wifi:mode : null
I (2039) wifi:mode : softAP (fc:b4:67:8d:4f:39)
I (2041) wifi:Total power save buffer number: 16
I (2041) wifi:Init max length of beacon: 752/752
I (2042) wifi:Init max length of beacon: 752/752
I (2050) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
Add netif ap with (commit id)
I (2059) bridge_common: netif list add success
I (2066) bridge_common: [WIFI_AP_DEF ]
I (2071) wifi:Disabled PMF config for SoftAP
I (2075) wifi:Total power save buffer number: 16
I (2082) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (2089) bridge_common: [WIFI_AP_DEF ]Name Server1: 114.114.114.114
I (2109) bridge_common: DHCPS Restart, deauth all station
I (2143) esp_eth.netif.netif_glue: fc:b4:67:8d:4f:3b
I (2143) esp_eth.netif.netif_glue: ethernet attached to netif
I (4489) bridge_eth: Ethernet Started
I (4492) bridge_eth: Ethernet Link Up
I (4492) bridge_eth: Ethernet HW Addr fc:b4:67:8d:4f:3b
I (4495) bridge_eth: [ETH_WAN ]
Add netif eth with (commit id)
I (4501) bridge_common: netif list add success
Add netif sta with (commit id)
I (4510) bridge_common: netif list add success
I (4517) wifi:mode : sta (fc:b4:67:8d:4f:38) + softAP (fc:b4:67:8d:4f:39)
I (4523) wifi:enable tsf
E (4528) NVS: Failed to read IP info from NVS
I (4532) wifi:Disabled PMF config for STA
W (4551) wifi:Affected by the ESP-NOW encrypt num, set the max connection num to 10
I (5244) wifi:Total power save buffer number: 16
I (5251) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (5267) bridge_wifi: SoftAP config changed, deauth all station
I (5268) bridge_wifi: [esp_bridge_wifi_set_config] sta ssid: m password: 11223344
I (5273) wifi:mode : sta (fc:b4:67:8d:4f:38)
I (5281) app_main: heap(min:now) 152156:157056
I (5282) app_main: heap(min:now) 152156:157232
I (5287) app_main: heap(min:now) 152156:157232
I (5849) app_main: heap(min:now) 152156:157232
I (6249) bridge_eth: Ethernet Got IP Address
I (6250) bridge_eth: ~~~
I (6250) bridge_eth: ETHIP:192.168.1.163
I (6253) bridge_eth: ETHMASK:255.255.255.0
I (6258) bridge_eth: ETHGW:192.168.1.1
I (6263) bridge_eth: ~~~
I (6267) bridge_common: [WIFI_AP_DEF ]Name Server1: 192.168.1.1
I (6274) esp_netif_handlers: eth ip: 192.168.1.163, mask: 255.255.255.0, gw: 192.168.1.1
I (6284) app_main: Ethernet Got IP Address
I (6289) app_main: ~~~
I (6293) app_main: IP:192.168.1.163
I (6298) app_main: MASK:255.255.255.0
I (6303) app_main: GW:192.168.1.1
I (6307) app_main: ~~~
I (6311) app_main: MASK:255.255.255.0
I (6316) app_main: DNS1: 192.168.1.1
I (6321) app_main: DNS2: 114.114.114.114
使用 idf 下面的 examples/ethernet/basic 示例能够复现吗
使用 idf 下面的 examples/ethernet/basic 示例能够复现吗
可以的,我在got_ip处理最后调用esp_restart()后出现了同样的问题
/* Ethernet Basic Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
static const char *TAG = "eth_example";
/* Event handler for Ethernet events / static void eth_event_handler(void arg, esp_event_base_t event_base, int32_t event_id, void event_data) { uint8_t mac_addr[6] = {0}; / we can get the ethernet driver handle from event data / esp_eth_handle_t eth_handle = (esp_eth_handle_t )event_data;
switch (event_id) {
case ETHERNET_EVENT_CONNECTED:
esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr);
ESP_LOGI(TAG, "Ethernet Link Up");
ESP_LOGI(TAG, "Ethernet HW Addr %02x:%02x:%02x:%02x:%02x:%02x",
mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]);
break;
case ETHERNET_EVENT_DISCONNECTED:
ESP_LOGI(TAG, "Ethernet Link Down");
break;
case ETHERNET_EVENT_START:
ESP_LOGI(TAG, "Ethernet Started");
break;
case ETHERNET_EVENT_STOP:
ESP_LOGI(TAG, "Ethernet Stopped");
break;
default:
break;
}
}
/* Event handler for IP_EVENT_ETH_GOT_IP / static void got_ip_event_handler(void arg, esp_event_base_t event_base, int32_t event_id, void event_data) { ip_event_got_ip_t event = (ip_event_got_ip_t ) event_data; const esp_netif_ip_info_t *ip_info = &event->ip_info;
ESP_LOGI(TAG, "Ethernet Got IP Address");
ESP_LOGI(TAG, "~~~~~~~~~~~");
ESP_LOGI(TAG, "ETHIP:" IPSTR, IP2STR(&ip_info->ip));
ESP_LOGI(TAG, "ETHMASK:" IPSTR, IP2STR(&ip_info->netmask));
ESP_LOGI(TAG, "ETHGW:" IPSTR, IP2STR(&ip_info->gw));
ESP_LOGI(TAG, "~~~~~~~~~~~");
esp_restart();
}
void app_main(void) { // Initialize Ethernet driver uint8_t eth_port_cnt = 0; esp_eth_handle_t *eth_handles; ESP_ERROR_CHECK(example_eth_init(ð_handles, ð_port_cnt));
// Initialize TCP/IP network interface aka the esp-netif (should be called only once in application)
ESP_ERROR_CHECK(esp_netif_init());
// Create default event loop that running in background
ESP_ERROR_CHECK(esp_event_loop_create_default());
// Create instance(s) of esp-netif for Ethernet(s)
if (eth_port_cnt == 1) {
// Use ESP_NETIF_DEFAULT_ETH when just one Ethernet interface is used and you don't need to modify
// default esp-netif configuration parameters.
esp_netif_config_t cfg = ESP_NETIF_DEFAULT_ETH();
esp_netif_t *eth_netif = esp_netif_new(&cfg);
// Attach Ethernet driver to TCP/IP stack
ESP_ERROR_CHECK(esp_netif_attach(eth_netif, esp_eth_new_netif_glue(eth_handles[0])));
} else {
// Use ESP_NETIF_INHERENT_DEFAULT_ETH when multiple Ethernet interfaces are used and so you need to modify
// esp-netif configuration parameters for each interface (name, priority, etc.).
esp_netif_inherent_config_t esp_netif_config = ESP_NETIF_INHERENT_DEFAULT_ETH();
esp_netif_config_t cfg_spi = {
.base = &esp_netif_config,
.stack = ESP_NETIF_NETSTACK_DEFAULT_ETH
};
char if_key_str[10];
char if_desc_str[10];
char num_str[3];
for (int i = 0; i < eth_port_cnt; i++) {
itoa(i, num_str, 10);
strcat(strcpy(if_key_str, "ETH_"), num_str);
strcat(strcpy(if_desc_str, "eth"), num_str);
esp_netif_config.if_key = if_key_str;
esp_netif_config.if_desc = if_desc_str;
esp_netif_config.route_prio -= i*5;
esp_netif_t *eth_netif = esp_netif_new(&cfg_spi);
// Attach Ethernet driver to TCP/IP stack
ESP_ERROR_CHECK(esp_netif_attach(eth_netif, esp_eth_new_netif_glue(eth_handles[i])));
}
}
// Register user defined event handers
ESP_ERROR_CHECK(esp_event_handler_register(ETH_EVENT, ESP_EVENT_ANY_ID, ð_event_handler, NULL));
ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_ETH_GOT_IP, &got_ip_event_handler, NULL));
// Start Ethernet driver state machine
for (int i = 0; i < eth_port_cnt; i++) {
ESP_ERROR_CHECK(esp_eth_start(eth_handles[i]));
}
} 这是示例代码修改后的样子 @tswen
I (13) boot: ESP-IDF 3bf3bdce-dirty 2nd stage bootloader
I (13) boot: compile time Jun 25 2024 09:14:58
I (13) boot: Multicore bootloader
I (17) boot: chip revision: v3.1
I (21) boot.esp32: SPI Speed : 40MHz
I (26) boot.esp32: SPI Mode : DIO
I (30) boot.esp32: SPI Flash Size : 2MB
I (35) boot: Enabling RNG early entropy source...
I (40) boot: Partition Table:
I (44) boot: ## Label Usage Type ST Offset Length
I (51) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (59) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (66) boot: 2 factory factory app 00 00 00010000 00100000
I (74) boot: End of partition table
I (78) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=11ae0h ( 72416) map
I (112) esp_image: segment 1: paddr=00021b08 vaddr=3ffb0000 size=021d8h ( 8664) load
I (116) esp_image: segment 2: paddr=00023ce8 vaddr=40080000 size=0c330h ( 49968) load
I (139) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=2f554h (193876) map
I (209) esp_image: segment 4: paddr=0005f57c vaddr=4008c330 size=00608h ( 1544) load
I (216) boot: Loaded app from partition at offset 0x10000
I (217) boot: Disabling RNG early entropy source...
I (229) cpu_start: Multicore app
I (230) cpu_start: Pro cpu up.
I (230) cpu_start: Starting app cpu, entry point is 0x4008120c
0x4008120c: call_start_cpu1 at C:/Users/MTY/esp/esp-idf/components/esp_system/port/cpu_start.c:157
I (0) cpu_start: App cpu up.
I (247) cpu_start: Pro cpu start user code
I (248) cpu_start: cpu freq: 160000000 Hz
I (248) cpu_start: Application information:
I (252) cpu_start: Project name: eth_test
I (257) cpu_start: App version: 1
I (262) cpu_start: Compile time: Jun 25 2024 09:14:38
I (268) cpu_start: ELF file SHA256: 7efc90f5bdeab905...
I (274) cpu_start: ESP-IDF: 3bf3bdce-dirty
I (279) cpu_start: Min chip rev: v0.0
I (284) cpu_start: Max chip rev: v3.99
I (289) cpu_start: Chip rev: v3.1
I (294) heap_init: Initializing. RAM available for dynamic allocation:
I (301) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (307) heap_init: At 3FFB3438 len 0002CBC8 (178 KiB): DRAM
I (313) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (319) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (326) heap_init: At 4008C938 len 000136C8 (77 KiB): IRAM
I (334) spi_flash: detected chip: gd
I (336) spi_flash: flash io: dio
W (340) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (354) app_start: Starting scheduler on CPU0
I (359) app_start: Starting scheduler on CPU1
I (359) main_task: Started on CPU0
I (369) main_task: Calling app_main()
I (409) esp_eth.netif.netif_glue: fc:b4:67:8d:4f:3b
I (409) esp_eth.netif.netif_glue: ethernet attached to netif
I (2709) main_task: Returned from app_main()
I (2709) eth_example: Ethernet Started
I (2709) eth_example: Ethernet Link Up
I (2709) eth_example: Ethernet HW Addr fc:b4:67:8d:4f:3b
I (4209) esp_netif_handlers: eth ip: 192.168.1.103, mask: 255.255.255.0, gw: 192.168.1.1
I (4209) eth_example: Ethernet Got IP Address
I (4209) eth_example: ~~~
I (4209) eth_example: ETHIP:192.168.1.103
I (4219) eth_example: ETHMASK:255.255.255.0
I (4219) eth_example: ETHGW:192.168.1.1
I (4229) eth_example: ~~~
I (13) boot: ESP-IDF 3bf3bdce-dirty 2nd stage bootloader
I (13) boot: compile time Jun 25 2024 09:14:58
I (13) boot: Multicore bootloader
I (17) boot: chip revision: v3.1
I (21) boot.esp32: SPI Speed : 40MHz
I (25) boot.esp32: SPI Mode : DIO
I (30) boot.esp32: SPI Flash Size : 2MB
I (34) boot: Enabling RNG early entropy source...
I (40) boot: Partition Table:
I (43) boot: ## Label Usage Type ST Offset Length
I (51) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (58) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (66) boot: 2 factory factory app 00 00 00010000 00100000
I (73) boot: End of partition table
I (77) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=11ae0h ( 72416) map
I (112) esp_image: segment 1: paddr=00021b08 vaddr=3ffb0000 size=021d8h ( 8664) load
I (116) esp_image: segment 2: paddr=00023ce8 vaddr=40080000 size=0c330h ( 49968) load
I (138) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=2f554h (193876) map
I (209) esp_image: segment 4: paddr=0005f57c vaddr=4008c330 size=00608h ( 1544) load
I (216) boot: Loaded app from partition at offset 0x10000
I (216) boot: Disabling RNG early entropy source...
I (229) cpu_start: Multicore app
I (229) cpu_start: Pro cpu up.
I (229) cpu_start: Starting app cpu, entry point is 0x4008120c
0x4008120c: call_start_cpu1 at C:/Users/MTY/esp/esp-idf/components/esp_system/port/cpu_start.c:157
I (226) cpu_start: App cpu up. I (247) cpu_start: Pro cpu start user code I (247) cpu_start: cpu freq: 160000000 Hz I (247) cpu_start: Application information: I (252) cpu_start: Project name: eth_test I (257) cpu_start: App version: 1 I (262) cpu_start: Compile time: Jun 25 2024 09:14:38 I (268) cpu_start: ELF file SHA256: 7efc90f5bdeab905... I (274) cpu_start: ESP-IDF: 3bf3bdce-dirty I (279) cpu_start: Min chip rev: v0.0 I (284) cpu_start: Max chip rev: v3.99 I (289) cpu_start: Chip rev: v3.1 I (294) heap_init: Initializing. RAM available for dynamic allocation: I (301) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (307) heap_init: At 3FFB3438 len 0002CBC8 (178 KiB): DRAM I (313) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (319) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (326) heap_init: At 4008C938 len 000136C8 (77 KiB): IRAM I (333) spi_flash: detected chip: gd I (336) spi_flash: flash io: dio W (340) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (354) app_start: Starting scheduler on CPU0 I (358) app_start: Starting scheduler on CPU1 I (358) main_task: Started on CPU0 I (368) main_task: Calling app_main() E (488) eth_phy_802_3: eth_phy_802_3_pwrctl(162): power up timeout E (488) eth_phy_802_3: esp_eth_phy_802_3_basic_phy_init(329): power control failed E (488) ip101: ip101_init(175): failed to init PHY E (488) esp_eth: esp_eth_driver_install(229): init phy failed E (498) example_eth_init: eth_init_internal(89): Ethernet driver install failed E (508) example_eth_init: example_eth_init(244): internal Ethernet init failed ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x400d6e3e 0x400d6e3e: app_main at C:/Users/MTY/Desktop/eth_test/main/ethernet_example_main.c:72 (discriminator 1)
file: "./main/ethernet_example_main.c" line 72 func: app_main expression: example_eth_init(ð_handles, ð_port_cnt)
abort() was called at PC 0x40085df7 on core 0 0x40085df7: _esp_error_check_failed at C:/Users/MTY/esp/esp-idf/components/esp_system/esp_err.c:50
Backtrace: 0x40081872:0x3ffb55d0 0x40085e01:0x3ffb55f0 0x4008b47e:0x3ffb5610 0x40085df7:0x3ffb5680 0x400d6e3e:0x3ffb56b0 0x400fed6b:0x3ffb5730 0x40088565:0x3ffb5760 0x40081872: panic_abort at C:/Users/MTY/esp/esp-idf/components/esp_system/panic.c:452 0x40085e01: esp_system_abort at C:/Users/MTY/esp/esp-idf/components/esp_system/port/esp_system_chip.c:84 0x4008b47e: abort at C:/Users/MTY/esp/esp-idf/components/newlib/abort.c:38 0x40085df7: _esp_error_check_failed at C:/Users/MTY/esp/esp-idf/components/esp_system/esp_err.c:50 0x400d6e3e: app_main at C:/Users/MTY/Desktop/eth_test/main/ethernet_example_main.c:72 (discriminator 1) 0x400fed6b: main_task at C:/Users/MTY/esp/esp-idf/components/freertos/app_startup.c:208 (discriminator 13) 0x40088565: vPortTaskWrapper at C:/Users/MTY/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162
ELF file SHA256: 7efc90f5bdeab905 这里是调试信息 @tswen
我用的是ESP-IDFV5.1.2 VSCode平台, 使用esp-iot-bridge模块中遇到的问题 初始化eth模块后,调用esp_restart()进行重启后eth模块初始化失败并报错; 但再次调用esp_restart()重启后eth模块能初始化成功,这个是什么问题呢