espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.7k stars 7.3k forks source link

看门狗没有如期工作 (IDFGH-11559) #12680

Closed aboyuanna closed 3 months ago

aboyuanna commented 11 months ago

Answers checklist.

IDF version.

v5.1.2-dirty

Espressif SoC revision.

ESP32-WROOM-32E-N4 chip revision: v3.0

Operating System used.

Windows

How did you build your project?

Command line with Make

If you are using Windows, please specify command line type.

None

Development Kit.

定制版

Power Supply used.

External 3.3V

What is the expected behavior?

我正在开发一个智能插座,当我通过按键切换继电器时,芯片会被电磁干扰导致程序跑飞了,这时看门狗应该重启芯片。

What is the actual behavior?

按键按下无反应,log输出一堆乱码,看门狗没有重启芯片

Steps to reproduce.

这个问题在我们的电路板上才能复现。

Debug Logs.

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:10028
ho 0 tail 12 room 4
load:0x40078000,len:17452
load:0x40080400,len:4620
entry 0x40080694
I (30) boot: ESP-IDF v5.0.1 2nd stage bootloader
I (30) boot: compile time 13:41:25
D (30) bootloader_flash: XMC chip detected by RDID (00204016), skip.
D (35) bootloader_flash: mmu set block paddr=0x00000000 (was 0xffffffff)
I (42) boot: chip revision: v3.0
D (46) qio_mode: Probing for QIO mode enable...
D (51) qio_mode: Raw SPI flash chip id 0x204016
D (55) qio_mode: Manufacturer ID 0x20 chip ID 0x4016
I (60) qio_mode: Enabling default flash chip QIO
D (66) qio_mode: Initial flash chip status 0x2
D (70) qio_mode: QIO mode already enabled in flash
D (75) qio_mode: Enabling QIO mode...
D (79) boot.esp32: magic e9
D (82) boot.esp32: segments 03
D (85) boot.esp32: spi_mode 02
D (88) boot.esp32: spi_speed 0f
D (91) boot.esp32: spi_size 02
I (94) boot.esp32: SPI Speed      : 80MHz
I (99) boot.esp32: SPI Mode       : QIO
I (103) boot.esp32: SPI Flash Size : 4MB
D (108) boot: Enabling RTCWDT(9000 ms)
I (112) boot: Enabling RNG early entropy source...
D (117) bootloader_flash: rodata starts from paddr=0x0000f000, size=0xc00, will be mapped to vaddr=0x3f400000
D (127) boot: mapped partition table 0xf000 at 0x3f40f000
D (133) flash_parts: partition table verified, 9 entries
I (138) boot: Partition Table:
I (142) boot: ## Label            Usage          Type ST Offset   Length
D (149) boot: load partition table entry 0x3f40f000
D (154) boot: type=0 subtype=10
I (157) boot:  0 ota_0            OTA app          00 10 00010000 001b0000
D (165) boot: load partition table entry 0x3f40f020
D (170) boot: type=0 subtype=11
I (173) boot:  1 ota_1            OTA app          00 11 001c0000 001b0000
D (181) boot: load partition table entry 0x3f40f040
D (186) boot: type=1 subtype=2
I (189) boot:  2 nvs              WiFi data        01 02 00370000 00080000
D (196) boot: load partition table entry 0x3f40f060
D (201) boot: type=1 subtype=2
I (204) boot:  3 homekit_nvs      WiFi data        01 02 003f0000 00006000
D (212) boot: load partition table entry 0x3f40f080
D (217) boot: type=1 subtype=2
I (220) boot:  4 factory_nvs      WiFi data        01 02 003f6000 00006000
D (228) boot: load partition table entry 0x3f40f0a0
D (232) boot: type=1 subtype=4
I (236) boot:  5 nvs_keys         NVS keys         01 04 003fc000 00001000
D (243) boot: load partition table entry 0x3f40f0c0
D (248) boot: type=1 subtype=0
I (251) boot:  6 otadata          OTA data         01 00 003fd000 00002000
D (259) boot: load partition table entry 0x3f40f0e0
D (264) boot: type=1 subtype=1
I (267) boot:  7 phy_init         RF data          01 01 003ff000 00001000
I (274) boot: End of partition table
D (279) boot: OTA data offset 0x3fd000
D (282) bootloader_flash: rodata starts from paddr=0x003fd000, size=0x2000, will be mapped to vaddr=0x3f400000
D (293) boot: otadata[0]: sequence values 0x00000001
D (298) boot: otadata[1]: sequence values 0xffffffff
D (303) boot_comm: Only otadata[0] is valid
D (307) boot: Active otadata[0]
D (310) boot: Mapping seq 0 -> OTA slot 0
D (314) boot: Trying partition index 0 offs 0x10000 size 0x1b0000
D (320) esp_image: reading image header @ 0x10000
D (325) bootloader_flash: mmu set block paddr=0x00010000 (was 0xffffffff)
D (332) esp_image: image header: 0xe9 0x05 0x02 0x02 40081450
I (338) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=3b1f8h (242168) map
D (346) esp_image: free data page_count 0x00000032
D (351) bootloader_flash: rodata starts from paddr=0x00010020, size=0x3b1f8, will be mapped to vaddr=0x3f400000
D (428) bootloader_flash: mmu set block paddr=0x00040000 (was 0xffffffff)
I (428) esp_image: segment 1: paddr=0004b220 vaddr=3ffbdb60 size=04df8h ( 19960) load
D (432) esp_image: free data page_count 0x00000032
D (437) bootloader_flash: rodata starts from paddr=0x0004b220, size=0x4df8, will be mapped to vaddr=0x3f400000
D (453) bootloader_flash: mmu set block paddr=0x00050000 (was 0xffffffff)
I (454) esp_image: segment 2: paddr=00050020 vaddr=400d0020 size=fdd80h (1039744) map
D (462) esp_image: free data page_count 0x00000032
D (467) bootloader_flash: rodata starts from paddr=0x00050020, size=0xfdd80, will be mapped to vaddr=0x3f400000
D (763) bootloader_flash: mmu set block paddr=0x00140000 (was 0xffffffff)
I (763) esp_image: segment 3: paddr=0014dda8 vaddr=3ffc2958 size=003cch (   972) load
D (767) esp_image: free data page_count 0x00000032
D (772) bootloader_flash: rodata starts from paddr=0x0014dda8, size=0x3cc, will be mapped to vaddr=0x3f400000
D (783) bootloader_flash: mmu set block paddr=0x00140000 (was 0xffffffff)
I (789) esp_image: segment 4: paddr=0014e17c vaddr=40080000 size=1f200h (127488) load
D (798) esp_image: free data page_count 0x00000032
D (802) bootloader_flash: rodata starts from paddr=0x0014e17c, size=0x1f200, will be mapped to vaddr=0x3f400000
D (854) bootloader_flash: mmu set block paddr=0x00160000 (was 0xffffffff)
D (854) boot: Calculated hash: 0337ec27445c7405e4be21c8930697af687f567db6364a0989d39bcb7207dcfb
I (874) boot: Loaded app from partition at offset 0x10000
I (874) boot: Disabling RNG early entropy source...
D (874) boot: Mapping segment 0 as DROM
D (878) boot: Mapping segment 2 as IROM
D (882) boot: calling set_cache_and_start_app
D (887) boot: configure drom and irom and start
D (891) boot: start: 0x40081450
I (906) cpu_start: Pro cpu up.
I (906) cpu_start: Single core mode
I (916) cpu_start: Pro cpu start user code
I (916) cpu_start: cpu freq: 240000000 Hz
I (916) cpu_start: Application information:
I (921) cpu_start: Project name:     esp32-gateway
I (926) cpu_start: App version:      v10.0
I (931) cpu_start: Compile time:     Jul 18 2023 14:05:56
I (937) cpu_start: ELF file SHA256:  14277e3b4b80016f...
I (943) cpu_start: ESP-IDF:          v5.0.1
I (948) cpu_start: Min chip rev:     v3.0
I (953) cpu_start: Max chip rev:     v3.99 
I (958) cpu_start: Chip rev:         v3.0
I (963) heap_init: Initializing. RAM available for dynamic allocation:
I (970) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (976) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (982) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (988) heap_init: At 3FFCC180 len 00013E80 (79 KiB): DRAM
I (994) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (1001) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (1007) heap_init: At 4009F200 len 00000E00 (3 KiB): IRAM
I (1013) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (1020) spi_flash: detected chip: generic
I (1024) spi_flash: flash io: qio
I (1029) cpu_start: Starting scheduler on PRO CPU.
I (00:00:00.120) main: internal Free memory: 259776 bytes   psram Free memory: 0 bytes
E (00:00:00.290) nvs: factory nvs does not exist
I (00:00:00.291) system_api: Base MAC address is not set
I (00:00:00.291) system_api: read default base MAC address from EFUSE
I (00:00:00.299) time: timer check_ram create!
I (00:00:00.303) time: timer check_ram periodic start!
I (08:00:00.309) time: timer schedule create!
I (08:00:00.314) time: timer schedule periodic start!
I (08:00:00.320) ble_slave: Starting BLE Slave
I (08:00:00.325) BTDM_INIT: BT controller compile version [60aae55]
I (08:00:00.333) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (08:00:00.596) ble_slave: BLE Host Task Started
I (08:00:00.601) time: timer slave Auth create!
I (08:00:00.602) ble_slave: Advertising Started
I (08:00:00.602) ble_master: Starting BLE MASTER application...
I (08:00:00.613) time: timer pubinr_min create!
I (08:00:00.613) ble_master: BLE MASTER application initialization is complete
I (08:00:00.621) button: IoT Button Version: 2.5.1
I (08:00:00.626) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (08:00:00.636) button: IoT Button Version: 2.5.1
I (08:00:00.642) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (08:00:00.652) time: timer delay_lastfor create!
I (08:00:00.657) time: timer delay_lastfor periodic start!
I (08:00:00.663) time: timer quota create!
I (08:00:00.668) time: timer quota periodic start!
I (08:00:00.674) uart: queue free spaces: 8
I (08:00:00.679) uart: queue free spaces: 8
E (08:00:00.684) app: gang0hlw8110 uart error,try to reset
I (08:00:00.690) app: hlw8110 init compelete
I (08:00:00.695) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:00.704) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:00.713) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:00.724) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:00.733) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:00.742) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:00.753) ble_slave: notify to ff82:
I (08:00:00.758) ble_slave: 80 00 
I (08:00:00.764) ble_master: update self mandata:8000
I (08:00:00.770) mqtt: mqtt disconnected,publish msg failed!
I (08:00:00.775) ble_mesh: ble mesh initialization is complete
I (2364) wifi:wifi driver task: 3ffe6974, prio:23, stack:6656, core=0
I (2364) wifi:wifi firmware version: 17afb16
I (2364) wifi:wifi certification version: v7.0
I (2364) wifi:config NVS flash: enabled
I (2364) wifi:config nano formating: disabled
I (2374) wifi:Init data frame dynamic rx buffer num: 12
I (2374) wifi:Init management frame dynamic rx buffer num: 12
I (2384) wifi:Init management short buffer num: 32
I (2384) wifi:Init dynamic tx buffer num: 12
I (2394) wifi:Init static rx buffer size: 1600
I (2394) wifi:Init static rx buffer num: 6
I (2394) wifi:Init dynamic rx buffer num: 12
I (08:00:00.834) wifi_init: rx ba win: 6
I (08:00:00.838) wifi_init: tcpip mbox: 32
I (08:00:00.843) wifi_init: udp mbox: 10
I (08:00:00.848) wifi_init: tcp mbox: 6
I (08:00:00.852) wifi_init: tcp tx win: 5744
I (08:00:00.857) wifi_init: tcp rx win: 5744
I (08:00:00.862) wifi_init: tcp mss: 1440
I (08:00:00.867) wifi_init: WiFi IRAM OP enabled
I (08:00:00.872) wifi_init: WiFi RX IRAM OP enabled
I (2444) wifi:mode : sta (90:38:0c:3c:1e:90)
I (2454) wifi:enable tsf
I (08:00:00.885) ip: Wifi Started
E (08:00:01.180) app: gang1hlw8110 uart error,try to reset
I (08:00:01.181) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:01.185) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:01.194) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
E (08:00:06.200) app: gang0hlw8110 uart error,try to reset
E (08:00:06.700) app: gang1hlw8110 uart error,try to reset
I (08:00:06.700) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:06.705) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:06.714) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:10.303) event: internal Free memory: 130196 bytes   psram Free memory: 0 bytes   internal Min memory: 130016 bytes
E (08:00:11.720) app: gang0hlw8110 uart error,try to reset
E (08:00:12.220) app: gang1hlw8110 uart error,try to reset
I (08:00:12.220) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:12.225) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:12.234) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:16.956) app: gpio:36  event:BUTTON_PUSH
I (08:00:16.959) ble_slave: notify to ff82:
I (08:00:16.959) ble_slave: 80 01 
I (08:00:16.960) ble_master: update self mandata:8001
I (08:00:16.968) mqtt: mqtt disconnected,publish msg failed!
I (08:00:17.136) app: gpio:36  event:BUTTON_RELEASE
E (08:00:17.240) app: gang0hlw8110 uart error,try to reset
E (08:00:17.740) app: gang1hlw8110 uart error,try to reset
I (08:00:17.740) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:17.745) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:17.754) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:19.356) app: gpio:36  event:BUTTON_PUSH
I (08:00:19.357) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:19.360) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:19.371) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:19.380) ble_slave: notify to ff82:
I (08:00:19.385) ble_slave: 80 00 
I (08:00:19.389) ble_master: update self mandata:8000
I (08:00:19.397) mqtt: mqtt disconnected,publish msg failed!
I (08:00:19.496) app: gpio:36  event:BUTTON_RELEASE
I (08:00:20.303) event: internal Free memory: 130180 bytes   psram Free memory: 0 bytes   internal Min memory: 128088 bytes
I (08:00:22.616) app: gpio:36  event:BUTTON_PUSH
I (08:00:22.619) ble_slave: notify to ff82:
I (08:00:22.619) ble_slave: 80 01 
I (08:00:22.620) ble_master: update self mandata:8001
I (08:00:22.628) mqtt: mqtt disconnected,publish msg failed!
E (08:00:22.760) app: gang0hlw8110 uart error,try to reset
I (08:00:22.856) app: gpio:36  event:BUTTON_RELEASE
E (08:00:23.260) app: gang1hlw8110 uart error,try to reset
I (08:00:23.260) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:23.265) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:23.274) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:23.496) app: gpio:36  event:BUTTON_PUSH
I (08:00:23.497) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:23.500) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:23.511) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:23.520) ble_slave: notify to ff82:
I (08:00:23.525) ble_slave: 80 00 
I (08:00:23.529) ble_master: update self mandata:8000
I (08:00:23.537) mqtt: mqtt disconnected,publish msg failed!
I (08:00:23.656) app: gpio:36  event:BUTTON_RELEASE
I (08:00:24.536) app: gpio:36  event:BUTTON_PUSH
I (08:00:24.539) ble_slave: notify to ff82:
I (08:00:24.539) ble_slave: 80 01 
I (08:00:24.540) ble_master: update self mandata:8001
I (08:00:24.548) mqtt: mqtt disconnected,publish msg failed!
I (08:00:24.716) app: gpio:36  event:BUTTON_RELEASE
I (08:00:25.196) app: gpio:36  event:BUTTON_PUSH
I (08:00:25.197) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:25.200) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:25.211) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:25.220) ble_slave: notify to ff82:
I (08:00:25.225) ble_slave: 80 00 
I (08:00:25.229) ble_master: update self mandata:8000
I (08:00:25.237) mqtt: mqtt disconnected,publish msg failed!
I (08:00:25.356) app: gpio:36  event:BUTTON_RELEASE
I (08:00:25.816) app: gpio:36  event:BUTTON_PUSH
I (08:00:25.819) ble_slave: notify to ff82:
I (08:00:25.819) ble_slave: 80 01 
I (08:00:25.820) ble_master: update self mandata:8001
I (08:00:25.828) mqtt: mqtt disconnected,publish msg failed!
I (08:00:25.956) app: gpio:36  event:BUTTON_RELEASE
I (08:00:26.496) app: gpio:36  event:BUTTON_PUSH
I (08:00:26.497) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:26.500) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:26.511) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:26.520) ble_slave: notify to ff82:
I (08:00:26.525) ble_slave: 80 00 
I (08:00:26.529) ble_master: update self mandata:8000
I (08:00:26.537) mqtt: mqtt disconnected,publish msg failed!
I (08:00:26.576) app: gpio:36  event:BUTTON_RELEASE
I (08:00:27.016) app: gpio:36  event:BUTTON_PUSH
I (08:00:27.019) ble_slave: notify to ff82:
I (08:00:27.019) ble_slave: 80 01 
I (08:00:27.020) ble_master: update self mandata:8001
I (08:00:27.028) mqtt: mqtt disconnected,publish msg failed!
I (08:00:27.076) app: gpio:36  event:BUTTON_RELEASE
I (08:00:27.896) app: gpio:36  event:BUTTON_PUSH
I (08:00:27.897) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:27.900) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:27.911) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:27.920) ble_slave: notify to ff82:
I (08:00:27.925) ble_slave: 80 00 
I (08:00:27.929) ble_master: update self mandata:8000
I (08:00:27.937) mqtt: mqtt disconnected,publish msg failed!
I (08:00:27.956) app: gpio:36  event:BUTTON_RELEASE
E (08:00:28.280) app: gang0hlw8110 uart error,try to reset
I (08:00:28.396) app: gpio:36  event:BUTTON_PUSH
I (08:00:28.399) ble_slave: notify to ff82:
I (08:00:28.399) ble_slave: 80 01 
I (08:00:28.400) ble_master: update self mandata:8001
I (08:00:28.408) mqtt: mqtt disconnected,publish msg failed!
I (08:00:28.536) app: gpio:36  event:BUTTON_RELEASE
E (08:00:28.780) app: gang1hlw8110 uart error,try to reset
I (08:00:28.781) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:28.785) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:28.794) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:28.796) app: gpio:36  event:BUTTON_PUSH
I (08:00:28.810) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:28.819) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:28.830) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:28.840) ble_slave: notify to ff82:
I (08:00:28.845) ble_slave: 80 00 
I (08:00:28.849) ble_master: update self mandata:8000
I (08:00:28.856) mqtt: mqtt disconnected,publish msg failed!
I (08:00:28.916) app: gpio:36  event:BUTTON_RELEASE
I (08:00:29.276) app: gpio:36  event:BUTTON_PUSH
I (08:00:29.279) ble_slave: notify to ff82:
I (08:00:29.279) ble_slave: 80 01 
I (08:00:29.280) ble_master: update self mandata:8001
I (08:00:29.288) mqtt: mqtt disconnected,publish msg failed!
I (08:00:29.336) app: gpio:36  event:BUTTON_RELEASE
I (08:00:29.696) app: gpio:36  event:BUTTON_PUSH
I (08:00:29.697) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:29.700) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:29.711) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:29.720) ble_slave: notify to ff82:
I (08:00:29.725) ble_slave: 80 00 
I (08:00:29.729) ble_master: update self mandata:8000
I (08:00:29.737) mqtt: mqtt disconnected,publish msg failed!
I (08:00:29.796) app: gpio:36  event:BUTTON_RELEASE
I (08:00:30.136) app: gpio:36  event:BUTTON_PUSH
I (08:00:30.139) ble_slave: notify to ff82:
I (08:00:30.139) ble_slave: 80 01 
I (08:00:30.140) ble_master: update self mandata:8001
I (08:00:30.148) mqtt: mqtt disconnected,publish msg failed!
I (08:00:30.216) app: gpio:36  event:BUTTON_RELEASE
I (08:00:30.303) event: internal Free memory: 130180 bytes   psram Free memory: 0 bytes   internal Min memory: 128088 bytes
I (08:00:33.736) app: gpio:36  event:BUTTON_PUSH
I (08:00:33.737) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:33.740) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:33.751) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:33.760) ble_slave: notify to ff82:
I (08:00:33.765) ble_slave: 80 00 
I (08:00:33.769) ble_master: update self mandata:8000
I (08:00:33.777) mqtt: mqtt disconnected,publish msg failed!
E (08:00:33.860) app: gang0hlw8110 uart error,try to reset
I (08:00:33.936) app: gpio:36  event:BUTTON_RELEASE
E (08:00:34.360) app: gang1hlw8110 uart error,try to reset
I (08:00:34.360) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:34.365) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:34.374) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:34.516) app: gpio:36  event:BUTTON_PUSH
I (08:00:34.519) ble_slave: notify to ff82:
I (08:00:34.519) ble_slave: 80 01 
I (08:00:34.520) ble_master: update self mandata:8001
I (08:00:34.528) mqtt: mqtt disconnected,publish msg failed!
I (08:00:34.696) app: gpio:36  event:BUTTON_RELEASE
I (08:00:35.036) app: gpio:36  event:BUTTON_PUSH
I (08:00:35.037) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:35.040) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:35.051) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:35.060) ble_slave: notify to ff82:
I (08:00:35.065) ble_slave: 80 00 
I (08:00:35.069) ble_master: update self mandata:8000
I (08:00:35.077) mqtt: mqtt disconnected,publish msg failed!
I (08:00:35.196) app: gpio:36  event:BUTTON_RELEASE
I (08:00:35.396) app: gpio:36  event:BUTTON_PUSH
I (08:00:35.399) ble_slave: notify to ff82:
I (08:00:35.399) ble_slave: 80 01 
I (08:00:35.400) ble_master: update self mandata:8001
I (08:00:35.408) mqtt: mqtt disconnected,publish msg failed!
I (08:00:35.576) app: gpio:36  event:BUTTON_RELEASE
I (08:00:35.736) app: gpio:36  event:BUTTON_PUSH
I (08:00:35.737) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:35.740) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:35.751) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:35.760) ble_slave: notify to ff82:
I (08:00:35.765) ble_slave: 80 00 
I (08:00:35.769) ble_master: update self mandata:8000
I (08:00:35.777) mqtt: mqtt disconnected,publish msg failed!
I (08:00:35.856) app: gpio:36  event:BUTTON_RELEASE
I (08:00:36.216) app: gpio:36  event:BUTTON_PUSH
I (08:00:36.219) ble_slave: notify to ff82:
I (08:00:36.219) ble_slave: 80 01 
I (08:00:36.220) ble_master: update self mandata:8001
I (08:00:36.228) mqtt: mqtt disconnected,publish msg failed!
I (08:00:36.356) app: gpio:36  event:BUTTON_RELEASE
I (08:00:36.556) app: gpio:36  event:BUTTON_PUSH
I (08:00:36.557) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:36.560) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:36.571) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:36.580) ble_slave: notify to ff82:
I (08:00:36.585) ble_slave: 80 00 
I (08:00:36.589) ble_master: update self mandata:8000
I (08:00:36.597) mqtt: mqtt disconnected,publish msg failed!
I (08:00:36.696) app: gpio:36  event:BUTTON_RELEASE
I (08:00:36.836) app: gpio:36  event:BUTTON_PUSH
I (08:00:36.839) ble_slave: notify to ff82:
I (08:00:36.839) ble_slave: 80 01 
I (08:00:36.840) ble_master: update self mandata:8001
I (08:00:36.848) mqtt: mqtt disconnected,publish msg failed!
I (08:00:36.996) app: gpio:36  event:BUTTON_RELEASE
I (08:00:37.156) app: gpio:36  event:BUTTON_PUSH
I (08:00:37.157) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:37.160) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:37.171) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:37.180) ble_slave: notify to ff82:
I (08:00:37.185) ble_slave: 80 00 
I (08:00:37.189) ble_master: update self mandata:8000
I (08:00:37.197) mqtt: mqtt disconnected,publish msg failed!
I (08:00:37.296) app: gpio:36  event:BUTTON_RELEASE
I (08:00:37.436) app: gpio:36  event:BUTTON_PUSH
I (08:00:37.439) ble_slave: notify to ff82:
I (08:00:37.439) ble_slave: 80 01 
I (08:00:37.440) ble_master: update self mandata:8001
I (08:00:37.448) mqtt: mqtt disconnected,publish msg failed!
I (08:00:37.556) app: gpio:36  event:BUTTON_RELEASE
I (08:00:37.676) app: gpio:36  event:BUTTON_PUSH
I (08:00:37.677) app: gang0 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:37.680) app: gang1 voltage:0.000000 current:0.000000 power:0.000000 energy:0.000000
I (08:00:37.691) ble_master: update self mandata:870000000000000000000000000000000000000000000000000000000000000000
I (08:00:37.700) ble_slave: notify to ff82:
I (08:00:37.705) ble_slave: 80 00 
I (08:00:37.709) ble_master: update self mandata:8000
I (08:00:37.717) mqtt: mqtt disconnected,publish msg failed!
I (08:00:37.796) app: gpio:36  event:BUTTON_RELEASE
I (08:00:37.936) app: gpio:36  event:BUTTON_PUSH
I (08:0�*r��P� ������-����--9
�n&屧F3fp�+X�"��VJ$dJ�%;�f8���m�-���宩�VF-�dN8|��t�,��t�X���'�X���t�X����B�-9���B�X�"�Ѫ��\���AH����ɪ�R�+�*٫��ˁ�(�(A���~A�"�ɪ�T����a� �A.��|��kAn
�ɪ�t�/��X�
*r��Pۨ�����-�����-9�(N���v�`VDZ���R
Bb�d%n&�hJ�f8C���m�-���o�K�`��v'�|��t�,��t�X���'p�,P��PB�X9���B�X���nׯ�,�X~�-js�|�Aj��
�ɪR�   ��*�
�����+��|�
�kAn
�ɪ.����X��+���|�5�*�
�ɪ�t�/��X�b���
*r��P� �����-*��-X���#7f�v�ebf����R
�`;cb~&�R`�L�8~k�m���o�K�`;��jN8|��t�,�B�-���'�X��-?ׯ�, �B�-9���B�X��
�t�H�*'�z�EX�H~��t����X��H~��|�
�~A�
�ɪT���al �P��(A,��*�����P�+��ĭ�,��*r��Pۨ�����-�����X��(N��bn`VDZ���R
Bb�d%~&�hJ�f�ȫ�em�-��o�K�`;��jN8|��t�,��t�X���t�X���-�ׯ�P��'�X��nׯ�P��+v�m\��z�EX��kt��t�챩�X���H~�1�*�
��*��ɪ�T����a� �A.��|������(X�����j|�n��l
*r������
��m���8�-X���#�f�vsebf(�뮱쁈d�c%~&�RJ�L�8~k�m�����o��bm��jN8깪��, �t�,��B�-���-�ׯ�P��'�X���B�-����jX#@)��(z�l ���R�+�*٫�ˢ�+��|�
��*��ɪ�T����-
H+��|�5�* �ɪ�P�+����,���*r��P� ��*��-�����-9�(f���v�`VDZ����R
B`�I%~&�RJ�L�8~k�m�����o���be�jN8깪��,  �t�,��t�-���-�ׯ�P��'p�,P��t�X����ф��\���(z�l �(X�+t�챩�X����+��|�
��*��ɪ�T����-
H+���|�5kAn
�ɪ�P�)���aŹ����Dr��P� ������-"��--��*f�f�vs`\D(��R
Bb�d%~&�hJ�f�ȫ�er���oK�bm�jN���P��t�P�w�t�.�ȃ'p�,P��t�X����B�X��
�t�H�*'�z�EX�H~�R� ����a,�ˢ�A,��*
��*�����T����-��+��|���* �ɪ�P�+��𪭹�,���*r��P۠����-�����-9�(N���v�`VDZ����R
Bb�d%~&�hJ�f�ȫ�er���oK�`;��jN8|��t�P��t�-9��t�X���-�ׯP��'p�,P�pt�X����Ѫ��\���Aj� �ɪ�R�)���٫�ˢBA,��|������(X�������X��+���|���* �ɪ�P�)���aŹ���*--����
��m���8�-X��#7f�j�ebf(����"��VJ$dJ�%;�f8���m�-���宩�VF-�dN8|��t�,��B�-���'�X���-�ׯP��'p�,P�pt�X����ф��\���(z�l �(X�+t�챩�X����+��|�
��* �ɪ�T����a�*�A.��*�����(X�%��Kj|�b���l *r��Pۨ����-�����X��(N�dbn`V"Z����R
�`�cbv!�%��f8�~��rp
����    �VF-9����'p�,P��t�X���'p�,P��Pt�X����B�-���nׯ�,
�+v
�q���)�EX�H~�R�    ���va�ˢB+���|������r�.���al
�A.��*������r��t�/�am�Ŭ���Dr��P� ������-���--��(f�f�v�`\D(��쁈d�c%~&�RJ�L�8~k�m�����o���be�jN�깪�,��t�P�w�t��ȃ'p�,P��t�X����B�-9���jX#@)�z�EX��k���t�챩�X���H~�1*�
��* �ɪ�T����a�*�A.��*�����(X�%��Kj|�b���l *r��Pۨ�����-���j�X��(N�fbnjV"Z����R
�`;ab~&�R`L8�~t�Ӭ���o�A�be�v-C깪�,   �t�,�B�-9��-�կ�P��'�X����B�-9���jX#@)��(z�l �(X�+t�ı��m���+��|�
�kAn
�ɪ�T����al
�A.1�*���*�����P�+���,���D-�ƨ����E� ��--9�(f���v�`VDZ����R
�`�Ib~&�R`L8�~t�Ӭ��� �VF-9����'p�,P��t�X���'p�,P��PB�X����P��'p�,P�X~�-jS�|�Aj�G�H~�R�   ��*�a,�ɢ�A,��|�������(X������X�H~���*�����(X�����j|�b���"Dr��P� ��
��-�����X��(N�fbnjV"���R
�b�cbv#�%�ɻf8���r�-��安�VF-�d���'p�,P��t�X���'p�,P��PB�X����,��'p�,P�X~�-jS@|�Aj�m��k���t����X��H~�1�*
��*�����T����-��+��|�5~A�
�ɪP�   ��am�Ŭ���D-�ƨ����m�"��--��(f���v�`VDZ����R
�`;abv  �%��f8�~��r�-���  �VF-9����t���'�X��'p�,P��PB�X���w�t�,��t�X����ф��\���AH�m
Hkt�쭷��٫�ˁ�A,��|������(X������X��+��|�5�*"�ɪ�P�  ���aŹ���D--�����m���8rX��f�f�vsebf(����d�c%n&$hJ�f�ȫ�em�-��o�K�`;��jN8|��t�,��t�X���t�X���-�ׯ�P��'�X���B�-9���jX#@)�z�EX�H~���t�챩�X��H~�1�*
��*�����T����-��+��|�5�**�ɪ�P�)���aŹ���*r������
�m��8�r�,V�N�fbn`V"Z����R
�`�I%~&�RJ�f�8~k�m�����o���bm��jN8깪t�,��t�,��t�-���-�ׯ�P��'�X���B�-����jXq���)�Em��kt��%�,��٫�ˢ�+��|�
��*"�ɪ�T����a� �A.��|��kAn
�ɪ�t�/��X�*Dr�ƨ����E� ��--��(f�f�vsebf(�뮱��Vd%n&�hJ�f�ȫk�m����o��be�jN8깪��,  �t�,��B�-���-�կ�P��'�X����B�-9���t�H�*��z�EX�H~t�N����٫��ˁ�A��|�
�kAn
�ɪ�T����a� �A.��|��kAn
�ɪP�   ���X�**-�����
��m���8�-X��D&�n-�ffp���R��b�cbv#�%�ɻf8�~��r�-��宩�VF-�dN8|��t�,��B�-���'�X���-?ׯ�,   tB�-9���B�X�"�Ѫ��\���AH� �ɪ�R�+��"٫�ˁ�A,��|������(X�������X��+��|���*���ɪ�P�+����,��D-�ƨ����E� ��--��(f���v�`VDZ����R
�`�Ib~&�R`�L8�~t��p
���宩�VF-�dN8|��t�,��B�-9��t�X���-�ׯP��'p�,P�pt�X����ф��\���(z�l ���R�+�*٫��ˁ�(��(A���kAn
�ɪT���al
�A.1�*���*���(X�%��Kj|�b���l *r��P� ��*��-�����-9�(N��bn`VDZ����R
�`;abv  �%��f8�~��r�-��安�VF-�d���'p�,P��t�X���'p�,P��PB�X���w���, �'p�,P��+��m\��RP�
���(X�+t�챩�X��H~�1�*�
��*���ɪ�T����-
H+���|��kAn
�ɪP�   ���am����*r��Pۀ��
��-�����-9�(N���v�`VDZ���R
Bb�d%~&�hJ�f�8~k�m����o��be�jN�깪�,  �t�,��B�-9��-�կ�P��'�X���B�-9���jX#@)�z�EX��k���t�챩�X��H~�1�*�
��*�����T����-
H+��|�5kAn
�ɪ�t�/��X�"*-������
��m���8�-X��#7f�j�`V"���-�"��jJ$dJ�%�ɻf8�~��r�-���   �VF-9d���'p�,P��t�X���'p�,P��Pt�X����B�-����t�X����Ѫ��\���AHt���ɪ�R�+��*٫��ˁ�A��|�
�kAn
�ɪT����a�
�A.��*��kAn �r��t�/�am�Ŭ���*r������
��m��8�-X���&�n'�Ffp���R��b�cbv#�%�ɹf8�~��r����o���be�jN8깪��,  �t�.��t�X���-�ׯP��'p�,P�pB�X� �Ѫ��\���AH�"�ɪ�R�)���va�ˢB+���|�
�����(X������X��+��|���*���ɪ�P�+��𪭹�,���*r��P� ������-*��-X��"f�f�vsebf(����"��jJ$dJ�%�ɛf8�~��rp
��宩�VF-���)�t�X���'p�,P�w�t�,��Pt�X����B�-9���B�X����t�H�*��z�EX��kt��t�ı��m���+��|�
�kAn �(X�������X��+��|���*��ɪ�P�)���aŹ��*-�������m��8�r�,V�N�Dbn`VDZ����R
�`;Ib~&�RJ�L�8~k�m���o�K�`��v'�|��t�.��t�X���'p�,P��PB�X�������,  �'p�,P��+v��\���(z�l ���R�+�*٫��ˁ�A��|�
�kAn �(X�������X��+��|���*��ɪ�P�+���aŹ���*--����
��m���8�-X���#7f�j�`V"���-�"��L�cbv#�%�ɻf8���r�-��宩�VF-�d��J'p�,P��t�-9��'�X���-?ׯ,��'p�,P�pt�X����Ѫ��\���AH� �ɪ�R�)���va�ˢBA,��*
��*�����T���-�H~���|�����(X�%��Kj|�b���l *r��Pۨ�����-�����-9�(f�f�vsebf(����"��jJ$dJ�%��d8�~k�m����o���be�jN8깪��,��t�-9��t�X��-?ׯ�,  tB�-9���B�X��
�Ѫ��*'�z�EX�H~�R�  ��*�a,�ˢBA,��|�������(X�������X��+���|���* �ɪ�P�)���am�� *r��P� ������- ��--���f�f�v�ebf(����"��VJ$dJ�%;ɹf8���r�-��� �VF-9�����P��t�,�B�-9��-�կ�P��'�X����B�-9���jX#@)��P�
���(X�+t�챩�X����+��|�
��**�ɪ�T����a�
�A.1�*�����(X�%��Kj|�b���l D--ƨ���m���8�-X��D'�n-�fdp����R
�`;ab~&�R`L8�~k�Ӭ���o�a�be��v'�|�t�-9��'�X��'p�,P��PB�X������,  �'p�,P��+v�m\��RP�
���(X�+t�챩�X���H~��*�
��* �ɪ�T����a�"�A.��|��kAn �(X����Kj|�n���l *-������
��m��8�r�,V�N�fbn`VDZ����R
�`�I%~&�RJ�f�8~k�m���oK�`;��jN8깪t�,��t�X���t�X���-�ׯ�P��'�X��nׯP��+v��\���(z�l ���R�+�*٫��ˢ�+���|�
�kAn
�ɪT����X�H~�1�*���*���(X�%��Kj|�b���l *r��Pۨ����-�����-9�(f�f�v�`TDZ����R
B`�I%~&�RJ�L�8~k�m����o���be�jN�깪�,  �t�,�B�-9��-�կ�P��'�X���B�-����ф��\���(z��!kt�쭷��٫��ˁ�A��|�
�kAn �r�.����al
�A.��|������(X�����j|�n���l
*r��Pۨ����������t����&�n'�F3fp�+X�"��d�c%~&�hJ�f�ȫk�m����oK�b��jN8깪t�,��t�X���t�X���-�ׯ�P��'�X��nׯP��+v
�q���)�EX��kt��%�,��٫�ˢ�+��|�
��*���ɪ�T����-
H+��|���*���ɪ�P�+���X�b����*r������
��m���8�-X���#7f�v�ebf(����"�Vd%n&$hJ�f�ȫ�em�-��oK�`;��jN8깪��,  �t�,��t�X���-�ׯP��'p�,P�pt�X���Ѫ��\���Aj� �ɪ�R�)��٫�ˁ�A,��|�   �����(X�������X��+��|���*���ɪ�P�+��𪭹�,���*r��Pۨ����������t�V�6�d~�bj$f���-�"��VJ$dJ�C�n�h �z�(X��o�K�`;��jN8|��t�,�B�-9��'�X���-?ׯ,  tB�-9���B�X� �Ѫ��\���AH����ɪ�R�+�*٫�ˢ�+���|�
�~A�*�ɪ�T����-
H+���|�5kAn
�ɪ�P�   ���aŹ���Dr�ƨ����m�"��--��*f�f�vsebf(����"�Vd%n&$hJ�f8���r�-���   �VF-9������P��t�X���'p�,P��PB�X���w�t�,��B�-����jX#@)��(z�l �(X�+t�챩�X����+��|�
��* �ɪ�T����a�
�A.��*��kAn �ru�t�/���X�b���
*--����
��m���8-X���#�f�vsebf(�뮱��Vd%n&$hJ�f8C~�em���oK�`;��jN8깪t�,��t�,��t�-���-�ׯ�P��'�X��nׯP��+v��\��rP�
���(X�+t����X��H~���*
��*�����T������X��+���|���*���ɪ�P�+����,���*r��P� ��*��-����--9�(f���v�`TD(�����d�c%n&�hJ�f8C��em�-���宩�VF-�d���'p�,P��t�X���'p�,P��PB�X����B�X��nׯ�,
X+v
jq�|�Aj�*�ɪ�R� ����a,�ˢBA,��|����*�����T���-
H+���|��kAn �(X����Kj|�n���l
*r��P� ��*��-�����-��(N�Dbn`V"Z����R
�`;ib~&�R`�L�8~k�m����o�a�be�v%C|�t�-���'�X��'p�,P��PB�X�����,��'p�,P�X~�-jS�|�Aj�G�H~��R� ����a,�ˢBA,��*
��*�����T����-
�+��|���*���ɪ�P�+��𪭹�,���*r��P۠��*��-����--��*f�f�vsebf(����"��jJ$dJ�%�ɛf8�~��r����o���be�jN8깪t�,��t�-9��'�X���'�X���B�-����B�X����jX#@)�z�EX��kt�쭷,��٫��ˁ�A��|�
�kAn �(X�������X��+��|�5~A�
�ɪP�   ���X�b���
*--����
��m���8�-X��#7f�j�`V"���-�"��L�cbv#�%�ɻf8�~��r�-��宩�VF-�dN8|��t�,��B�-���'�X��-?ׯ�, �B�-����B�X����tuH*��z�EX��kt�R�+�*٫��ˁ�A��|�
�����(X�������X��+���|�5~A�
�ɪP�   ���X�b���
Dr��P� �����-
��-X���#7f�v�ebf����R
�b�cbv!�%��d8�~t�Ӭ���o���be�jN8깪��,  �t�,��t�X���-�ׯP��'p�,P�pt�X����Ѫ��\���AH�"�ɪ�R�  ����a�ˢBA,��*����*���(X������X��+��|���*���ɪ�P�+��𪭹�,���*r��Pۨ���������t�/�6�dv�bj$"���-�"��L�cbv#�%�ɹf8���m�-���宩�VF-�dN8|��t�,��B�-9��t�X���-?ׯP��'p�,P�pt�X����ф��\���(z�l �(X�+t�챩�X����+��|�
��* �ɪ�T����-
H+���|�5�*"�ɪ�P�+���aŹ����*-������
��m��8�-X��D'�n%�Ffp���R��b�cbv#�%;�f8���m�-���宩�VF-�d���'p�,P��t�X���'p�,P��PB�X������,    �'p�,P��+v�m\���P�
���(X�+t����m���+��|�
�kAn �(X�������X��+��|���*���ɪ�P�+����,���*-�����
��m���8�-X��#7f�j�`V"���-�"��L�cbv!�%��d8�~��r����o���be�v%C|�t�X���'�X��B�-9�ȃ'p�,P��t�X����B�-9���jX#@)��(z�l �(X�+t�챩�X����+��|�
�kAn
�ɪT���al �A.1�*���*�����P�+����X�b����������� ��

More Information.

No response

aboyuanna commented 11 months ago

sdkconfig.txt

zikalino commented 11 months ago

这个问题可以始终如一地重现,还是会不时发生? 我认为它可能与软件无关。您能分享一些关于硬件设计的更多细节吗?与此同时,我们将在内部讨论这个问题,并尝试找出可能的解决方案。

Dazza0 commented 11 months ago

Hi @aboyuanna, 请用逻辑分析仪看看乱码。有可能是普通的 LOG,但是在不同的波特率输出。

这个问题在我们的电路板上才能复现

能分享以下电路吗?会不会 ESP32 供电遇到过电流或欠电压的情况?

aboyuanna commented 11 months ago

@zikalino @Dazza0 这个问题在切换继电器的时候就有概率出现。 相关资料.zip zip文件里有能够复现这个现象的代码、原理图。当log出现乱码时,芯片是完全没有反应的,只会不停输出乱码。我们现在关注的问题是ESP32在这种情况下为什么不自动重启?

Dazza0 commented 11 months ago

当log出现乱码时,芯片是完全没有反应的

理论上,如果 ESP32 还在输出 log,就应该还在跑的 (表示 ESP32 内部时钟和 UART 外设还在跑)。所以才想用逻辑分析一看看这些乱码是什么。

一个简单的方法来测试 ESP32 是否停掉了是开个 task (或者用 Idle hook) 定时将一个 GPIO 拉高/低 。

aboyuanna commented 11 months ago

当log出现乱码时,芯片是完全没有反应的

理论上,如果 ESP32 还在输出 log,就应该还在跑的 (表示 ESP32 内部时钟和 UART 外设还在跑)。所以才想用逻辑分析一看看这些乱码是什么。

一个简单的方法来测试 ESP32 是否停掉了是开个 task (或者用 Idle hook) 定时将一个 GPIO 拉高/低 。

你可以看一下源码,我创建了一个esp timer每隔一秒切换继电器。当log输出乱码时,继电器就不会切换了,而且这时按键也没反应。稍后我会用逻辑仪看看乱码是什么内容。

aboyuanna commented 11 months ago

这个问题有什么进展吗?

ESP-Marius commented 4 months ago

Sorry for the slow replies, is there still any outstanding issues here?

PING020903 commented 3 months ago

不能通过增加金属屏蔽层避免吗