Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-C6 #15

Open
10der opened this issue Dec 1, 2024 · 3 comments
Open

ESP32-C6 #15

10der opened this issue Dec 1, 2024 · 3 comments
Labels
more information needed Logs, yaml, hardware setup, etc.

Comments

@10der
Copy link

10der commented Dec 1, 2024

[11:27:47]Rebooting...
[11:27:47]ESP-ROM:esp32c6-20220919
[11:27:47]Build:Sep 19 2022
[11:27:47]rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
[11:27:47]Saved PC:0x4001975a
[11:27:47]SPIWP:0xee
[11:27:47]mode:DIO, clock div:2
[11:27:47]load:0x4086c410,len:0xe58
[11:27:47]load:0x4086e610,len:0x2e20
[11:27:47]load:0x40875720,len:0x1804
[11:27:47]entry 0x4086c410
[11:27:48]I (540) main_task: Started on CPU0
[11:27:48]I (543) main_task: Calling app_main()
[11:27:48]I (647) main_task: Returned from app_main()
[11:27:48]Zigbee stack assertion failed zcl/zcl_general_commands.c:608
[11:27:48]
[11:27:48]abort() was called at PC 0x42034a23 on core 0
@10der
Copy link
Author

10der commented Dec 1, 2024

the same but via Arduino
image
image

@luar123 luar123 added the more information needed Logs, yaml, hardware setup, etc. label Dec 1, 2024
@ggb83
Copy link

ggb83 commented Dec 29, 2024

Hi Guys, same here but I have the Logs and the Project,

he is seemingly killing himself early on in the game, trying to get the manufacturer from zigbee?!,

but no earlier meaningful logmessages?!

hopefully this meight help.

PS: tried it with IDF Version 5.3 too, with the same result.

[16:56:51]ELF file SHA256: a5191f47
[16:56:51]
[16:56:51]Rebooting...
[16:56:51]ESP-ROM:esp32c6-20220919
[16:56:51]Build:Sep 19 2022
[16:56:51]rst:0xc (SW_CPU),boot:0x6e (SPI_FAST_FLASH_BOOT)
[16:56:51]Saved PC:0x4001975a
[16:56:51]SPIWP:0xee
[16:56:51]mode:DIO, clock div:2
[16:56:51]load:0x4086c410,len:0xd8c
[16:56:51]load:0x4086e610,len:0x2e1c
[16:56:51]load:0x40875728,len:0x17d0
[16:56:51]entry 0x4086c410
[16:56:51]I (22) boot: ESP-IDF 5.1.5 2nd stage bootloader
[16:56:51]I (22) boot: compile time Dec 29 2024 16:53:30
[16:56:51]I (24) boot: chip revision: v0.0
[16:56:51]I (25) boot.esp32c6: SPI Speed : 80MHz
[16:56:51]I (29) boot.esp32c6: SPI Mode : DIO
[16:56:51]I (34) boot.esp32c6: SPI Flash Size : 4MB
[16:56:51]I (39) boot: Enabling RNG early entropy source...
[16:56:51]I (45) boot: Partition Table:
[16:56:51]I (48) boot: ## Label Usage Type ST Offset Length
[16:56:51]I (55) boot: 0 otadata OTA data 01 00 00009000 00002000
[16:56:51]I (63) boot: 1 phy_init RF data 01 01 0000b000 00001000
[16:56:51]I (70) boot: 2 app0 OTA app 00 10 00010000 001b0000
[16:56:51]I (78) boot: 3 app1 OTA app 00 11 001c0000 001b0000
[16:56:51]I (85) boot: 4 nvs WiFi data 01 02 00370000 0006d000
[16:56:51]I (92) boot: 5 zb_storage Unknown data 01 81 003dd000 00004000
[16:56:51]I (100) boot: 6 zb_fct Unknown data 01 81 003e1000 00000400
[16:56:51]I (108) boot: End of partition table
[16:56:51]I (112) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=114a8h ( 70824) map
[16:56:51]I (148) esp_image: segment 1: paddr=000214d0 vaddr=40800000 size=0ca18h ( 51736) load
[16:56:51]I (173) esp_image: segment 2: paddr=0002def0 vaddr=4080ca20 size=01fe0h ( 8160) load
[16:56:51]I (179) esp_image: segment 3: paddr=0002fed8 vaddr=00000000 size=00140h ( 320)
[16:56:51]I (181) esp_image: segment 4: paddr=00030020 vaddr=42000020 size=72288h (467592) map
[16:56:51]I (374) boot: Loaded app from partition at offset 0x10000
[16:56:51]I (375) boot: Disabling RNG early entropy source...
[16:56:51]I (386) cpu_start: Unicore app
[16:56:51]I (387) cpu_start: Pro cpu up.
[16:56:51]W (396) clk: esp_perip_clk_init() has not been implemented yet
[16:56:51]I (403) cpu_start: Pro cpu start user code
[16:56:51]I (403) cpu_start: cpu freq: 160000000 Hz
[16:56:51]I (404) cpu_start: Application information:
[16:56:51]I (406) cpu_start: Project name: maingaragetest
[16:56:51]I (412) cpu_start: App version: 2024.12.2
[16:56:51]I (417) cpu_start: Compile time: Dec 29 2024 16:53:18
[16:56:51]I (423) cpu_start: ELF file SHA256: a5191f47...
[16:56:51]I (428) cpu_start: ESP-IDF: 5.1.5
[16:56:51]I (433) cpu_start: Min chip rev: v0.0
[16:56:51]I (438) cpu_start: Max chip rev: v0.99
[16:56:51]I (442) cpu_start: Chip rev: v0.0
[16:56:51]I (447) heap_init: Initializing. RAM available for dynamic allocation:
[16:56:51]I (454) heap_init: At 408132B0 len 00069360 (420 KiB): D/IRAM
[16:56:51]I (461) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
[16:56:51]I (468) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
[16:56:51]I (475) spi_flash: detected chip: generic
[16:56:51]I (479) spi_flash: flash io: dio
[16:56:51]I (483) sleep: Configure to isolate all GPIO pins in sleep state
[16:56:51]I (489) sleep: Enable automatic switching of GPIO sleep configuration
[16:56:51]I (496) coexist: coex firmware version: 27d8387
[16:56:51]I (502) coexist: coexist rom version 5b8dcfa
[16:56:51]I (507) app_start: Starting scheduler on CPU0
[16:56:51]I (512) main_task: Started on CPU0
[16:56:51]I (516) main_task: Calling app_main()
[16:56:52]Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled.
[16:56:52]
[16:56:52]Core 0 register dump:
[16:56:52]MEPC : 0x42044806 RA : 0x42050a1a SP : 0x40818d00 GP : 0x4080d220
WARNING Decoded 0x42044806: zb_zcl_get_attr_desc_manuf
WARNING Decoded 0x42044806: zb_zcl_get_attr_desc_manuf
[16:56:52]TP : 0x40808630 T0 : 0x5b6d3233 T1 : 0x0000000f T2 : 0x3b305b1b
[16:56:52]S0/FP : 0x42080000 S1 : 0x40818d50 A0 : 0x00000000 A1 : 0x00000000
[16:56:52]A2 : 0x0000ffff A3 : 0x00000000 A4 : 0x4081e4d8 A5 : 0x00000000
[16:56:52]A6 : 0x00000001 A7 : 0x00000001 S2 : 0x00000001 S3 : 0x42081000
[16:56:52]S4 : 0x42080000 S5 : 0x42080000 S6 : 0x42081000 S7 : 0x00000002
[16:56:52]S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
[16:56:52]T3 : 0x203a5d38 T4 : 0x34343a65 T5 : 0x65626769 T6 : 0x7a5b5d49
[16:56:52]MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000005 MTVAL : 0x00000005
[16:56:52]MHARTID : 0x00000000
[16:56:52]
[16:56:52]Stack memory:
[16:56:52]40818d00: 0x42081000 0x40819c7c 0x42080000 0x4201f8b6 0x00000010 0x40818d88 0x00000014 0x42002ab0
[16:56:52]40818d20: 0x00000000 0x00000000 0x00000001 0x00000010 0x00000002 0x00000000 0x00000006 0x00000bb8
[16:56:52]40818d40: 0x40819c44 0x40819c44 0x40819e3c 0x40819c2c 0x00100100 0x00000001 0x00000000 0x00000000
[16:56:52]40818d60: 0x00000000 0x00000000 0x0000000a 0x00000000 0x00000000 0x00000000 0x00000000 0x0000000a
[16:56:52]40818d80: 0x00000000 0xffff0104 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818da0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818dc0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818de0: 0x00000000 0x00000014 0x42081000 0x4081563c 0x40819b00 0x00000004 0x4080ea0c 0x42004f22
[16:56:52]40818e00: 0x00000000 0x00000003 0x00000003 0x4081563c 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818e20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4200040a
[16:56:52]40818e40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818e60: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000154
[16:56:52]40818e80: 0x40818b70 0x000000ec 0x4080ec5c 0x4080ec5c 0x40818e80 0x4080ec54 0x00000018 0x40819438
[16:56:52]40818ea0: 0x40819438 0x40818e80 0x00000000 0x00000001 0x40816e7c 0x706f6f6c 0x6b736154 0x00000000
[16:56:52]40818ec0: 0x00000000 0x00000000 0x40818e70 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818ee0: 0x40813c88 0x40813cf0 0x40813d58 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000
[16:56:52]40818f00: 0x00000000 0x4206f18a 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818f20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818f40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818f60: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818f80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818fa0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]40818fc0: 0x00000000 0x00000000 0x00000000 0x00000000 0x40000000 0x00000048 0x42080578 0x00000001
[16:56:52]40818fe0: 0x7fc00000 0x420804d0 0x0001c200 0x40819024 0x00000039 0x00000200 0x00000000 0x00000000
[16:56:52]40819000: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00006d00 0x40818e80
[16:56:52]40819020: 0x00000204 0x3b305b1b 0x5b6d3233 0x7a5b5d49 0x65626769 0x34343a65 0x203a5d38 0x20746573
[16:56:52]40819040: 0x6f706572 0x6e697472 0x6f662067 0x6c632072 0x65747375 0x31203a72 0x305b1b36 0x6874006d
[16:56:52]40819060: 0x6c6f7220 0x3a312065 0x50534520 0x5252455f 0x564e495f 0x44494c41 0x4752415f 0x6d305b1b
[16:56:52]40819080: 0x5b1b7200 0x1b0a6d30 0x006d305b 0x20746f6e 0x6e756f66 0x305b1b64 0x5b1b0a6d 0x00006d30
[16:56:52]408190a0: 0x305b1b20 0x5b1b0a6d 0xff006d30 0xffffffff 0x00000000 0x00000000 0x00000000 0x00000000
[16:56:52]408190c0: 0x40817d60 0x40819070 0x40819118 0x00033000 0xffffffff 0xffffffff 0xa5a5a5fe 0xa5a5a5a5
[16:56:52]408190e0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xffffffff
[16:56:52]
[16:56:52]
[16:56:52]
[16:56:52]ELF file SHA256: a5191f47
[16:56:52]
[16:56:52]Rebooting...
[16:56:52]ESP-ROM:esp32c6-20220919
[16:56:52]Build:Sep 19 2022
[16:56:52]rst:0xc (SW_CPU),boot:0x6e (SPI_FAST_FLASH_BOOT)
[16:56:52]Saved PC:0x4001975a
[16:56:52]SPIWP:0xee
[16:56:52]mode:DIO, clock div:2
[16:56:52]load:0x4086c410,len:0xd8c
[16:56:52]load:0x4086e610,len:0x2e1c

esphome:
name: maingaragetest

external_components:

  • source: github://luar123/zigbee_esphome
    components: [zigbee]

esp32:
board: sparkfun_qwiic_pocket_esp32c6
variant: esp32c6
flash_size: 4MB
partitions: partitions_zb.csv
framework:
type: esp-idf
version: recommended
sdkconfig_options:
CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y
CONFIG_OPENTHREAD_ENABLED: n
CONFIG_USE_MINIMAL_MDNS: y

Enable logging

logger:
level: DEBUG

zigbee:
id: "zb"
manufacturer: gfbgarage
endpoints:
- num: 1
device_type: ON_OFF_OUTPUT
clusters:
- id: BINARY_OUTPUT
attributes:
- attribute_id: 0
type: bool
report: true
value: false
device: door_closed_sensor

binary_sensor:

  • platform: gpio
    pin:
    number: 5
    mode:
    input: true
    pullup: true
    inverted: true
    id: door_closed_sensor
    name: "Gartentor geschlossen Sensor"
  • platform: gpio
    pin:
    number: 9
    mode:
    input: true
    pullup: true
    inverted: true
    id: button_1
    on_press:
    then:
    - zigbee.report: zb
    on_click:
    min_length: 5s
    max_length: 20s
    then:
    - zigbee.reset: zb

@luar123
Copy link
Owner

luar123 commented Dec 29, 2024

I don't think that is the same issue. Anyway, in your case you probably activated reporting for an attribute that is not reportable. Try to set reporting: false
Please read ZCL.
If I get your usecase right, a binary sensor, you should use binary input not output (you can use simple_sensor instead of on_off_output) and you need to set the correct attribute ID, I don't think it is 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information needed Logs, yaml, hardware setup, etc.
Projects
None yet
Development

No branches or pull requests

3 participants