Closed mrezzaaa closed 1 year ago
Could be the problem with esp-idf commit. Documentation suggest that you use ea5e0ff298e6257b31d8e0c81435e6d3937f04c7
. Please try with that rather than using latest.
Ok i'll try with commit hash that you give to me. I'll update later if it works or not
@shubhamdp trying your suggest and got this error message when compiling
/esp-idf/esp-idf/components/lwip/lwip/src/core/ipv4/dhcp.c:1144:11: error: 'DHCP_REQUEST_TIMEOUT_SEQUENCE' undeclared (first use in this function)
1144 | msecs = DHCP_REQUEST_TIMEOUT_SEQUENCE(dhcp->tries);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When i moving to branch v5.1.1
of esp-idf and commit 68e99de70266674ce172459136960bbb5c58dc0e
of esp-matter and compiling it again for esp32c6
target is working, but now i got this error.
Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
0x4001975a: software_reset_cpu in ROM
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd10
load:0x4086e610,len:0x2dc4
load:0x40875728,len:0x17d0
entry 0x4086c410
I (26) boot: ESP-IDF v5.1.1 2nd stage bootloader
I (27) boot: compile time Aug 30 2023 03:20:06
I (28) boot: chip revision: v0.0
I (30) boot.esp32c6: SPI Speed : 80MHz
I (34) boot.esp32c6: SPI Mode : DIO
I (39) boot.esp32c6: SPI Flash Size : 4MB
I (44) boot: Enabling RNG early entropy source...
I (50) boot: Partition Table:
I (53) boot: ## Label Usage Type ST Offset Length
I (60) boot: 0 esp_secure_cert unknown 3f 06 0000d000 00002000
I (68) boot: 1 nvs WiFi data 01 02 00010000 0000e000
I (75) boot: 2 nvs_keys NVS keys 01 04 0001e000 00001000
I (83) boot: 3 otadata OTA data 01 00 0001f000 00002000
I (90) boot: 4 phy_init RF data 01 01 00021000 00001000
I (97) boot: 5 ota_0 OTA app 00 10 00030000 001d0000
I (105) boot: 6 ota_1 OTA app 00 11 00200000 001d0000
I (112) boot: 7 fctry WiFi data 01 02 003d0000 00006000
I (120) boot: 8 zb_storage Unknown data 01 81 003d6000 00020000
I (128) boot: 9 zb_fct Unknown data 01 81 003f6000 00000400
I (135) boot: End of partition table
I (140) esp_image: segment 0: paddr=00030020 vaddr=42170020 size=3baa8h (244392) map
I (246) esp_image: segment 1: paddr=0006bad0 vaddr=40800000 size=04548h ( 17736) load
I (256) esp_image: segment 2: paddr=00070020 vaddr=42000020 size=166098h (1466520) map
I (845) esp_image: segment 3: paddr=001d60c0 vaddr=40804548 size=1215ch ( 74076) load
I (879) esp_image: segment 4: paddr=001e8224 vaddr=408166b0 size=03814h ( 14356) load
I (897) boot: Loaded app from partition at offset 0x30000
I (898) boot: Disabling RNG early entropy source...
I (910) cpu_start: Unicore app
I (910) cpu_start: Pro cpu up.
W (920) clk: esp_perip_clk_init() has not been implemented yet
I (926) cpu_start: Pro cpu start user code
I (927) cpu_start: cpu freq: 160000000 Hz
I (927) cpu_start: Application information:
I (929) cpu_start: Project name: zigbee_bridge
I (935) cpu_start: App version: 1.0
I (939) cpu_start: Compile time: Aug 30 2023 03:19:57
I (946) cpu_start: ELF file SHA256: 7d485798c3768231...
I (952) cpu_start: ESP-IDF: v5.1.1
I (956) cpu_start: Min chip rev: v0.0
I (961) cpu_start: Max chip rev: v0.99
I (966) cpu_start: Chip rev: v0.0
I (971) heap_init: Initializing. RAM available for dynamic allocation:
I (978) heap_init: At 40830F70 len 0004B6A0 (301 KiB): D/IRAM
I (984) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (991) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
I (998) spi_flash: detected chip: generic
I (1002) spi_flash: flash io: dio
W (1006) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (1020) sleep: Configure to isolate all GPIO pins in sleep state
I (1026) sleep: Enable automatic switching of GPIO sleep configuration
I (1033) coexist: coex firmware version: 80b0d89
I (1039) coexist: coexist rom version 5b8dcfa
I (1044) app_start: Starting scheduler on CPU0
I (1049) main_task: Started on CPU0
I (1049) main_task: Calling app_main()
W (1079) esp_matter_core: Attribute 0x0000FFFD on cluster 0x0000001D already exists. Not creating again.
W (1079) esp_matter_core: Attribute 0x0000FFFD on cluster 0x0000001F already exists. Not creating again.
E (1089) esp_matter_attribute: Could not create attribute, string length out of bound
E (1089) esp_matter_attribute: Could not create attribute, string length out of bound
W (1099) esp_matter_core: Attribute 0x00000000 on cluster 0x00000030 already exists. Not creating again.
W (1109) esp_matter_core: Attribute 0x0000FFFD on cluster 0x0000001D already exists. Not creating again.
I (1119) pp: pp rom version: 5b8dcfa
I (1129) net80211: net80211 rom version: 5b8dcfa
I (1139) wifi:wifi driver task: 40839958, prio:23, stack:6656, core=0
I (1139) wifi:wifi firmware version: ce9244d
I (1139) wifi:wifi certification version: v7.0
I (1149) wifi:config NVS flash: enabled
I (1149) wifi:config nano formating: disabled
I (1149) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (1159) wifi:Init data frame dynamic rx buffer num: 32
I (1159) wifi:Init management frame dynamic rx buffer num: 32
I (1169) wifi:Init management short buffer num: 32
I (1169) wifi:Init dynamic tx buffer num: 32
I (1179) wifi:Init static tx FG buffer num: 2
I (1179) wifi:Init static rx buffer size: 1700
I (1189) wifi:Init static rx buffer num: 10
I (1189) wifi:Init dynamic rx buffer num: 32
I (1189) wifi_init: rx ba win: 6
I (1199) wifi_init: tcpip mbox: 32
I (1199) wifi_init: udp mbox: 6
I (1209) wifi_init: tcp mbox: 6
I (1209) wifi_init: tcp tx win: 5744
I (1209) wifi_init: tcp rx win: 5744
I (1219) wifi_init: tcp mss: 1440
I (1219) wifi_init: WiFi IRAM OP enabled
I (1229) wifi_init: WiFi RX IRAM OP enabled
I (1249) chip[DL]: NVS set: chip-counters/reboot-count = 15 (0xF)
I (1249) CHIP[DL]: WiFi station already provisioned, not initializing BLE
I (1249) chip[DL]: Real time clock set to 946684800 (0100/00/01 00:00:00 UTC)
I (1259) chip[DL]: Starting ESP WiFi layer
I (1259) phy_init: phy_version 202,b4b3263,May 17 2023,20:14:14
W (1309) wifi:(bf)761:0x600a7cac:0x01b4b4b0
W (1309) wifi:(agc)0x600a7128:0xd2177800, min.avgNF:0xce->0xd2(dB), RCalCount:0x177, min.RRssi:0x800(-128.00)
W (1309) wifi:(TB)WDEV_PWR_TB_MCS0:19
W (1319) wifi:(TB)WDEV_PWR_TB_MCS1:19
W (1319) wifi:(TB)WDEV_PWR_TB_MCS2:19
W (1319) wifi:(TB)WDEV_PWR_TB_MCS3:19
W (1329) wifi:(TB)WDEV_PWR_TB_MCS4:19
W (1329) wifi:(TB)WDEV_PWR_TB_MCS5:19
W (1329) wifi:(TB)WDEV_PWR_TB_MCS6:18
W (1339) wifi:(TB)WDEV_PWR_TB_MCS7:18
W (1339) wifi:(TB)WDEV_PWR_TB_MCS8:17
W (1339) wifi:(TB)WDEV_PWR_TB_MCS9:15
W (1349) wifi:(TB)WDEV_PWR_TB_MCS10:15
W (1349) wifi:(TB)WDEV_PWR_TB_MCS11:15
I (1349) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377).
I (1359) wifi:mode : sta (40:4c:ca:42:4b:88)
I (1369) wifi:enable tsf
W (1369) wifi:Haven't to connect to a suitable AP now!
I (1369) chip[DL]: Attempting to connect WiFi station interface
I (1379) chip[DL]: WiFi station state change: NotConnected -> Connecting
I (1389) chip[DL]: Done driving station state, nothing else to do...
I (1389) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (1399) wifi:(connect)dot11_authmode:0x3, pairwise_cipher:0x3, group_cipher:0x1
I (1409) wifi:state: init -> auth (b0)
I (1409) chip[DL]: WIFI_EVENT_STA_START
I (1409) wifi:state: auth -> assoc (0)
I (1419) chip[DL]: Done driving station state, nothing else to do...
I (1429) chip[SVR]: Initializing subscription resumption storage...
I (1429) chip[SVR]: Server initializing...
I (1439) chip[TS]: Last Known Good Time: 2023-08-30T03:20:55
I (1439) chip[DMG]: AccessControl: initializing
I (1449) chip[DMG]: Examples::AccessControlDelegate::Init
I (1449) chip[DMG]: AccessControl: setting
I (1459) chip[DMG]: DefaultAclStorage: initializing
I (1459) chip[DMG]: DefaultAclStorage: 0 entries loaded
I (1419) wifi:state: assoc -> run (10)
I (1469) wifi:(trc)phytype:CBW20-SGI, snr:67, maxRate:144, highestRateIdx:0
I (1479) wifi:(trc)rate(S-MCS7, schedIdx:0), ampdu(rate:S-MCS7, schedIdx(0, stop:8)), snr:67, ampduState:wait operational
I (1489) wifi:ifidx:0, rssi:-29, nf:-96, phytype(0x3, CBW20-SGI), phymode(0x3, 11bgn), max_rate:1440, he:0
I (1499) wifi:max ampdu length exponent:3(65535 bytes), mmss:5(4 us)
I (1479) chip[ZCL]: Using ZAP configuration...
I (1509) esp_matter_cluster: Cluster plugin init common callback
I (1519) chip[DMG]: AccessControlCluster: initializing
I (1519) chip[ZCL]: 0x421796b8ep 0 clus 0x0000_0030 attr 0x0000_0000 not supported
I (1529) chip[ZCL]: Initiating Admin Commissioning cluster.
E (1539) chip[ZCL]: Duplicate attribute override registration failed
I (1549) chip[SVR]: BLE networking available but BLE advertising is not supported
I (1549) chip[DIS]: Updating services using commissioning mode 1
I (1559) chip[DIS]: CHIP minimal mDNS started advertising.
I (1569) chip[DIS]: Advertise commission parameter vendorID=65521 productID=32768 discriminator=3840/15 cm=1
I (1579) chip[DIS]: CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 5C31B6125492E0C0.
I (1589) chip[DIS]: mDNS service published: _matterc._udp
I (1589) chip[IN]: CASE Server enabling CASE session setups
I (1599) chip[SVR]: Joining Multicast groups
I (1609) chip[SVR]: Server Listening...
I (1609) esp_matter_core: Dynamic endpoint 0 added
I (1619) esp_matter_core: Dynamic endpoint 1 added
I (1619) app_main: Commissioning window opened
W (1519) wifi:<ba-add>idx:0, ifx:0, tid:0, TAHI:0x10040c6, TALO:0x80e9410c, (ssn:0, win:64, cur_ssn:0), CONF:0xc0000005
I (1649) wifi:(extcap)mbssid:0, enhanced_mbssid_advertise:0, complete_nontxbssid_profiles:0
I (1649) wifi:connected with ReadysNetwork, aid = 6, channel 6, BW20, bssid = 0c:41:e9:80:c6:40
I (1669) wifi:cipher(pairwise:0x3, group:0x1), pmf:0, security:WPA2-PSK, phy:11bgn, rssi:-29
I (1679) wifi:pm start, type: 1, itwt_start:0
I (1679) wifi:pm start, type:1, aid:0x6, trans-BSSID:0c:41:e9:80:c6:40, BSSID[5]:0x40, mbssid(max-indicator:0, index:0), he:0
I (1689) wifi:set rx beacon pti, rx_bcn_pti: 10, bcn_timeout: 25000, mt_pti: 10, mt_time: 10000
I (1689) wifi:[ADDBA]TX addba request, tid:0, dialogtoken:1, bufsize:64, A-MSDU:0(not supported), policy:1(IMR), ssn:0(0x0)
I (1699) wifi:[ADDBA]TX addba request, tid:7, dialogtoken:2, bufsize:64, A-MSDU:0(not supported), policy:1(IMR), ssn:0(0x20)
I (1709) wifi:[ADDBA]TX addba request, tid:5, dialogtoken:3, bufsize:64, A-MSDU:0(not supported), policy:1(IMR), ssn:0(0x0)
I (1729) wifi:[ADDBA]RX addba response, status:0, tid:0/tb:1(0xa1), bufsize:64, batimeout:0, txa_wnd:64
I (1739) wifi:[ADDBA]RX addba response, status:0, tid:7/tb:1(0xa1), bufsize:64, batimeout:0, txa_wnd:64
I (1749) wifi:[ADDBA]RX addba response, status:0, tid:5/tb:1(0xa1), bufsize:64, batimeout:0, txa_wnd:64
I (1729) chip[DL]: WIFI_EVENT_STA_CONNECTED
I (1759) chip[DL]: WiFi station state change: Connecting -> Connecting_Succeeded
I (1769) phy: libbtbb version: b684fcb, May 17 2023, 20:14:35
I (1769) chip[DL]: WiFi station state change: Connecting_Succeeded -> Connected
I (1779) chip[DL]: WiFi station interface connected
I (1789) esp_zboss: status: -1
I (1799) esp_zboss: Zigbee stack initialized
I (1799) esp_zboss: status: 0
I (1799) esp_zboss: Start network formation
I (1809) esp_zboss: Formed network successfully
I (1809) esp_zboss: ieee extended address: 88:4b:42:fe:ff:ca:4c:40, PAN ID: 0xd57f)
I (1799) chip[ZCL]: WiFiDiagnosticsDelegate: OnConnectionStatusChanged
I (1829) chip[DL]: Done driving station state, nothing else to do...
I (1839) chip[DL]: Updating advertising data
I (1759) main_task: Returned from app_main()
> I (1899) wifi:AP's beacon interval = 499712 us, DTIM period = 1
I (2279) esp_zboss: status: 0
I (2279) esp_zboss: Network steering started
I (2729) esp_netif_handlers: sta ip: 192.168.100.13, mask: 255.255.255.0, gw: 192.168.100.1
***ERROR*** A stack overflow in task sys_evt has been detected.
Stack dump detected
Core 0 register dump:
MEPC : 0x40800606 RA : 0x4080a8e8 SP : 0x4081a7d0 GP : 0x40816eb0
0x40800606: panic_abort at /Users/icewalker/esp-idf/esp-idf/components/esp_system/panic.c:452
0x4080a8e8: __ubsan_include at /Users/icewalker/esp-idf/esp-idf/components/esp_system/ubsan.c:313
TP : 0x407fa868 T0 : 0x40030dca T1 : 0x0000000f T2 : 0x00000001
0x40030dca: memset in ROM
S0/FP : 0x4081a7f4 S1 : 0x4081a7f4 A0 : 0x4081a7f4 A1 : 0x42173268
A2 : 0x0000000f A3 : 0x4081a821 A4 : 0x00000001 A5 : 0x4082f000
A6 : 0x0000001c A7 : 0x0164a8c0 S2 : 0x00001881 S3 : 0x00000001
S4 : 0xffffffff S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x4083f5a8 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x00000000 T4 : 0x00000000 T5 : 0x00000001 T6 : 0x421a2a64
MSTATUS : 0x00001801 MTVEC : 0x40800001 MCAUSE : 0x00000007 MTVAL : 0x00000000
0x40800001: _vector_table at ??:?
MHARTID : 0x00000000
Backtrace:
panic_abort (details=details@entry=0x4081a7f4 <xIsrStack+1412> "***ERROR*** A stack overflow in task sys_evt has been detected.") at /Users/icewalker/esp-idf/esp-idf/components/esp_system/panic.c:452
452 *((volatile int *) 0) = 0; // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets
#0 panic_abort (details=details@entry=0x4081a7f4 <xIsrStack+1412> "***ERROR*** A stack overflow in task sys_evt has been detected.") at /Users/icewalker/esp-idf/esp-idf/components/esp_system/panic.c:452
#1 0x4080a8e8 in esp_system_abort (details=details@entry=0x4081a7f4 <xIsrStack+1412> "***ERROR*** A stack overflow in task sys_evt has been detected.") at /Users/icewalker/esp-idf/esp-idf/components/esp_system/port/esp_system_chip.c:84
#2 0x4080d168 in vApplicationStackOverflowHook (xTask=<optimized out>, pcTaskName=<optimized out>) at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:434
#3 0x4080c20e in vTaskSwitchContext () at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3729
#4 vTaskSwitchContext () at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3673
#5 0x4080d46c in isr_skip_decrement () at /Users/icewalker/esp-idf/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/portasm.S:87
Backtrace stopped: frame did not save the PC
ELF file SHA256: 7d485798c3768231
This error happened when i'm trying to commisioning using QR code and WiFi Networks
ERROR A stack overflow in task sys_evt has been detected.
This suggests that someone is using a lot more stack on default event loop. Are you using the default example without any change?
I tried the default one, since error after connected to wifi and comissioning process. I tried to increasing stack, same error still happened.
Quoting from https://github.com/espressif/esp-matter/tree/main/examples/zigbee_bridge
The Matter Bridge device is composed of two parts: The RCP running on ESP32-H2 and the bridge app running on ESP32.
Are you using C6 for bridge or rcp? Did you completed the hardware setup described in there?
yes i'd testing both bridge and rcp. I think C6 is built in for 802.15 hardware, so doesn't need any external like H2 hardware (just set to Native Zigbee on SDK config). Based on log (not on log above), 802.15 network joined to Zigbee network successfully, but crashing after joining WiFi network. Some crashed before joined Zigbee network, and some crash after joined Zigbee network. Crashed happened after WiFi joining successfully.
I have encountered this crash for zigbee-bridge example on ESP32-C6. Could you try to disable USE_BLE_ONLY_FOR_COMMISSIONING
in menuconfig? There is an issue of heap corruption which will crash when de-initializing BLE and it has been fixed in https://github.com/espressif/esp-idf/commit/db51ceed69c65437ac7f13bc8fb9ff798299f48c. Could you please verify whether you ESP-IDF has included this commit?
Note: You should also change the radio_mode
to RADIO_MODE_NATIVE
in main/app_zboss.h
for ESP32-C6.
I am using IDF 5.1.1
@mrezzaaa
I am using IDF 5.1.1
As I understand it, you cannot use both 802.15 and Wifi at the same time on H2 or C6 devices. You will need to use two devices together in that case.
Any detail explanation why this couldn't work at same time?
Any detail explanation why this couldn't work at same time?
You'd have to ask Espressif for a definitive answer, however I believe it's because there is only a single radio in the device, which makes it more difficult to use both protocols at the same time.
I think (correct me if i'm wrong) the release of C6 for increasing efficiency of it's predecessor ( H2 + Esp32 ) for Matter WiFi and Radio.🤔
I think (correct me if i'm wrong) the release of C6 for increasing efficiency of it's predecessor ( H2 + Esp32 ) for Matter WiFi and Radio.🤔
Unfortunately you are wrong. As it clearly states there... "ESP32-C6 combined with another Espressif SoC". At this stage I have not seen any examples of using WiFi and 802.15 together at the same time in a single device. You can use WiFi and Bluetooth together, and Bluetooth and 802.15 together, so I don't understand why it's different with WiFi and 802.15, but that's just the way it is right now.
Ah i see. Thanks for the information. Closing this issue now
I want to bridging Zigbee Gateway to Matter end device using esp32c6 devkit C.
Im trying to testing matter examples zigbee_bridge and when compiling got this error message:
Already set
idf.py --preview set-target esp32c6
. SDK configZigbee > Zigbee Coordinator or Router device checked
and got this error.Environment