Skip to content

Zigbee_Binary_Input.ino crashes on reportBinaryInput() #11749

@ichilver

Description

@ichilver

Board

Seed Xiao ESP32C6

Device Description

Seed Xiao ESP32C6

Hardware Configuration

Nothing attached at all.

Version

v3.3.0

Type

Bug

IDE Name

VSCode

Operating System

Windows 11

Flash frequency

40Mhz

PSRAM enabled

yes

Upload speed

115200

Description

Downloaded the Zigbee_Binary_Input.ino sketch and compiled to a ESP32C6.

When the code reaches the reportBinaryInput(); it crashes and in the console log the below is displayed

Zigbee stack assertion failed /builds/thread_zigbee/esp-zboss/components/esp_zb_sdk/src/e
abort() was called at PC 0x42019a77 on core 0

Sketch

Source is direct from the below URL

https://github.com/espressif/arduino-esp32/blob/master/libraries/Zigbee/examples/Zigbee_Binary_Input/Zigbee_Binary_Input.ino

My platformio.ini file looks like this

[env:seeed_xiao_esp32c6]
platform = espressif32
board = seeed_xiao_esp32c6

board_build.partitions = partitions.csv
board_build.filesystem = spiffs
board_build.f_cpu = 160000000L
framework = arduino
monitor_speed = 115200

build_flags =  
    -D CORE_DEBUG_LEVEL=5
	-D ARDUINO_USB_MODE=1
	-D ARDUINO_USB_CDC_ON_BOOT=1
	-D ZIGBEE_MODE_ED

My partitions.csv file looks like this

# Name,     Type, SubType, Offset,  Size, Flags
nvs,        data, nvs,     0x9000,  0x5000,
otadata,    data, ota,     0xe000,  0x2000,
app0,       app,  ota_0,   0x10000, 0x140000,
app1,       app,  ota_1,   0x150000,0x140000,
spiffs,     data, spiffs,  0x290000,0x15B000,
zb_storage, data, fat,     0x3EB000,0x4000,
zb_fct,     data, fat,     0x3EF000,0x1000,
coredump,   data, coredump,0x3F0000,0x10000,

Debug Message

Zigbee stack assertion failed /builds/thread_zigbee/esp-zboss/components/esp_zb_sdk/src/e
abort() was called at PC 0x42019a77 on core 0
Core  0 register dump:
MEPC    : 0x40801080  RA      : 0x408071d2  SP      : 0x4087f150  GP      : 0x4080f624
TP      : 0x4087f2e0  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x4087f17c  S1      : 0x4087f17c  A0      : 0x4087f188  A1      : 0x4087f16a
A2      : 0x00000000  A3      : 0x4087f1b5  A4      : 0x00000001  A5      : 0x40816000
A6      : 0x00000000  A7      : 0x76757473  S2      : 0x00000001  S3      : 0x00000000
S4      : 0x00000000  S5      : 0x40826f30  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000002  MTVAL   : 0x00000000
MHARTID : 0x00000000

Stack memory:
4087f150: 0x00000000 0x00000000 0x4087f168 0x4080d038 0x00000000 0x40826f30 0x00000030 0x40810d80
4087f170: 0x4087f17c 0x40810d9c 0x4087f168 0x31303234 0x37376139 0x00000000 0x726f6261 0x20292874
4087f190: 0x20736177 0x6c6c6163 0x61206465 0x43502074 0x34783020 0x39313032 0x20373761 0x63206e6f
4087f1b0: 0x2065726f 0x00000030 0x00000000 0x5ea3a113 0x0000002f 0x4087f254 0x42075fec 0x42019a7a
4087f1d0: 0x00000055 0x00000001 0x00000001 0x000000fc 0x00000000 0x4087f254 0x40827288 0x4200c6e8
4087f1f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x40816000 0x00000000 0x4082408c 0x40807e3e
4087f210: 0x42004f32 0x4087f244 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f230: 0x40816000 0x00000bb8 0x40811000 0x42004ff2 0x42073000 0x4087f2f8 0x4082408c 0x408078e0
4087f250: 0x42073348 0x42073000 0x00000000 0x42006354 0x00000000 0x0004000f 0x0055ffff 0x5ea3a113
4087f270: 0x00000014 0x00000000 0x00000000 0x00000000 0x00000000 0x00000bb8 0x40811000 0x4200611c
4087f290: 0x00000000 0x4200a000 0x40816000 0x42009ad6 0x00000000 0x00000000 0x00000000 0x408080e6
4087f2b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f2d0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x00000168
4087f2f0: 0xabba1234 0x0000015c 0x4087f080 0x0000c65e 0x40814460 0x40814460 0x4087f2f8 0x40814458
4087f310: 0x00000014 0x4081a6f4 0x4081a6f4 0x4087f2f8 0x00000000 0x00000005 0x4087d2e8 0x706f6f6c
4087f330: 0x6b736154 0x00000000 0x00000000 0x4087f2e0 0x00000004 0x00000000 0x00000001 0x00000001
4087f350: 0x00000000 0x00000000 0x00022364 0x00000000 0x40816fdc 0x40817044 0x408170ac 0x00000000
4087f370: 0x00000000 0x00000001 0x00000000 0x00000000 0x4081f018 0x4204ee4e 0x00000000 0x00000000
4087f390: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f3b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f3d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f3f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f410: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f430: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087f450: 0x00000000 0xbaad5678 0x00000068 0xabba1234 0x0000005c 0x00000000 0x4087f464 0x00000000
4087f470: 0x00000000 0x00000000 0x4087f47c 0xffffffff 0x4087f47c 0x4087f47c 0x00000000 0x4087f490
4087f490: 0xffffffff 0x4087f490 0x4087f490 0x00000001 0x00000001 0x00000000 0x6600ffff 0x00000000
4087f4b0: 0x74657320 0x206f7401 0x65707974 0x52415520 0xbaad5678 0x0000007c 0xabba1234 0x00000070
4087f4d0: 0x00000100 0x00000100 0x00000002 0x40805c8a 0x408062f0 0x40805bc0 0x4080681e 0x40806802
4087f4f0: 0x4081efc7 0x4081efc7 0x4081efab 0x4081efab 0x4081ef08 0x4081f008 0x0000001c 0x00000000
4087f510: 0x4087f514 0xffffffff 0x4087f514 0x4087f514 0x00000000 0x4087f528 0xffffffff 0x4087f528
4087f530: 0x4087f528 0x00000000 0x00000000 0x00000000 0xbaad5678 0x00000018 0xabba1234 0x00000008

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Area: ZigbeeIssues and Feature Request about ZigbeeResolution: Unable to reproduceWith given information issue is unable to reproduce

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions