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

Component Crashes #3

Open
barksten opened this issue Nov 26, 2024 · 1 comment
Open

Component Crashes #3

barksten opened this issue Nov 26, 2024 · 1 comment

Comments

@barksten
Copy link

Hi!
Tried your battery component on my dev board but it just crashes.

Board: SparkFun Thing Plus - ESP32-C6

My config:

i2c:
  sda: GPIO6
  scl: GPIO7

external_components:
  - source: github://Option-Zero/esphome-components
    components: [max17048]
sensor:
  - platform: max17048
    # address: 0x36
    battery_voltage:
      name: Battery voltage
      id: batt_v
    battery_level:
      name: Battery level
      id: batt_pct
    rate:
      name: Battery discharge rate
      id: batt_discharge_rate

Same result with the s2i adress uncommented.
Logs:

INFO Successfully uploaded program.
INFO Starting log output from /dev/cu.usbmodem1101 with baud rate 115200
[22:04:17]I (151) esp_image: segment 1: paddr=0003cbdc vaddr=40800000 size=0343ch ( 13372) load
[22:04:17]I (155) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=b836ch (754540) map
[22:04:17]I (312) esp_image: segment 3: paddr=000f8394 vaddr=4080343c size=1573ch ( 87868) load
[22:04:17]I (334) esp_image: segment 4: paddr=0010dad8 vaddr=40818b80 size=03b74h ( 15220) load
[22:04:17]I (344) boot: Loaded app from partition at offset 0x10000
[22:04:17]I (373) boot: Set actual ota_seq=1 in otadata[0]
[22:04:17]I (374) boot: Disabling RNG early entropy source...
[22:04:17]I (384) cpu_start: Unicore app
[22:04:17]I (393) cpu_start: Pro cpu start user code
[22:04:17]I (393) cpu_start: cpu freq: 160000000 Hz
[22:04:17]I (393) app_init: Application information:
[22:04:17]I (396) app_init: Project name: livingroom
[22:04:17]I (401) app_init: App version: 2024.11.1
[22:04:17]I (406) app_init: Compile time: Nov 26 2024 22:01:44
[22:04:17]I (412) app_init: ELF file SHA256: 27a37fcb0...
[22:04:17]I (417) app_init: ESP-IDF: 5.3.1
[22:04:17]I (422) efuse_init: Min chip rev: v0.0
[22:04:17]I (427) efuse_init: Max chip rev: v0.99
[22:04:17]I (432) efuse_init: Chip rev: v0.0
[22:04:18]I (437) heap_init: Initializing. RAM available for dynamic allocation:
[22:04:18]I (444) heap_init: At 40821F10 len 0005A700 (361 KiB): RAM
[22:04:18]I (450) heap_init: At 4087C610 len 00002F54 (11 KiB): RAM
[22:04:18]I (456) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
[22:04:18]I (463) spi_flash: detected chip: generic
[22:04:18]I (467) spi_flash: flash io: dio
[22:04:18]W (471) rmt(legacy): legacy driver is deprecated, please migrate to driver/rmt_tx.h and/or driver/rmt_rx.h
[22:04:18]W (482) i2c: This driver is an old driver, please migrate your application code to adapt driver/i2c_master.h
[22:04:18]I (492) sleep: Configure to isolate all GPIO pins in sleep state
[22:04:18]I (499) sleep: Enable automatic switching of GPIO sleep configuration
[22:04:18]I (506) coexist: coex firmware version: 4482466
[22:04:18]I (511) coexist: coexist rom version 5b8dcfa
[22:04:18]I (517) main_task: Started on CPU0
[22:04:18]I (520) main_task: Calling app_main()
[22:04:18]I (622) main_task: Returned from app_main()
[22:04:23]E (5627) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
[22:04:23]E (5627) task_wdt: - loopTask (CPU 0)
[22:04:23]E (5627) task_wdt: Tasks currently running:
[22:04:23]E (5627) task_wdt: CPU 0: loopTask
[22:04:23]E (5627) task_wdt: Aborting.
[22:04:23]
[22:04:23]
[22:04:23]Core 0 register dump:
[22:04:23]MEPC : 0x420288c4 RA : 0x420299d2 SP : 0x4082a3c0 GP : 0x40819384
WARNING Decoded 0x420288c4: i2c_ll_master_clr_bus at /Users/aon/.platformio/packages/framework-espidf/components/hal/esp32c6/include/hal/i2c_ll.h:767 (discriminator 1)
(inlined by) i2c_master_clear_bus at /Users/aon/.platformio/packages/framework-espidf/components/driver/i2c/i2c.c:687 (discriminator 1)
(inlined by) i2c_hw_fsm_reset at /Users/aon/.platformio/packages/framework-espidf/components/driver/i2c/i2c.c:719 (discriminator 1)
WARNING Decoded 0x420288c4: i2c_ll_master_clr_bus at /Users/aon/.platformio/packages/framework-espidf/components/hal/esp32c6/include/hal/i2c_ll.h:767 (discriminator 1)
(inlined by) i2c_master_clear_bus at /Users/aon/.platformio/packages/framework-espidf/components/driver/i2c/i2c.c:687 (discriminator 1)
(inlined by) i2c_hw_fsm_reset at /Users/aon/.platformio/packages/framework-espidf/components/driver/i2c/i2c.c:719 (discriminator 1)
[22:04:23]TP : 0x4082a4e0 T0 : 0x00000000 T1 : 0x400005b0 T2 : 0x3a6e4574
[22:04:23]S0/FP : 0x00000000 S1 : 0x40824248 A0 : 0x00000000 A1 : 0x4082c0a0
[22:04:23]A2 : 0x00000001 A3 : 0x00000800 A4 : 0x00000013 A5 : 0x60004000
[22:04:23]A6 : 0x00000004 A7 : 0x00000014 S2 : 0x00000000 S3 : 0x000000a2
[22:04:23]S4 : 0x00000014 S5 : 0x0000008e S6 : 0x000003e8 S7 : 0x00000002
[22:04:23]S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
[22:04:23]T3 : 0x40822000 T4 : 0x00000001 T5 : 0x40822000 T6 : 0x00000001
[22:04:23]MSTATUS : 0x00000000 MTVEC : 0x00000000 MCAUSE : 0x40824378 MTVAL : 0x00000001
[22:04:23]MHARTID : 0x420d8000
[22:04:23]
[22:04:23]Stack memory:
[22:04:23]4082a3c0: 0x00000000 0x00000000 0x40824378 0x00000001 0x420d8000 0x00000000 0x00000001 0x4082bb40
[22:04:23]4082a3e0: 0x00000000 0x00000000 0x40824378 0x4200a04a 0x00000000 0x00000001 0x00000006 0x00000078
[22:04:23]4082a400: 0x4082bb44 0x4082bb40 0x00000011 0x4200a1c6 0x00000001 0x40821bdc 0x40818c54 0x42118c92
[22:04:23]4082a420: 0x420d8000 0x00000008 0x420c3000 0x4082bb54 0x00000001 0x420c1000 0x4082bb40 0x4200a4ce
[22:04:23]4082a440: 0x4081c718 0x00000001 0x00000006 0x00000007 0x00000101 0x0000c350 0x00000000 0x00000000
[22:04:23]4082a460: 0x00000001 0x4082bafc 0x4081c718 0x4201c65c 0x00000000 0x00000008 0x00000008 0x4082c1b4
[22:04:23]4082a480: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a4a0: 0x00000000 0x00000000 0x00000000 0x420077ac 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a4c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
[22:04:23]4082a4e0: 0xa5a5a5a5 0x00000150 0x4082a340 0x000000a2 0x4081d184 0x4081d184 0x4082a4e8 0x4081d17c
[22:04:23]4082a500: 0x00000018 0x4082433c 0x4082433c 0x4082a4e8 0x00000000 0x00000001 0x408284e4 0x706f6f6c
[22:04:23]4082a520: 0x6b736154 0x00000000 0x00000000 0x4082a4e0 0x00000001 0x00000001 0x00000000 0x00000000
[22:04:23]4082a540: 0x00000000 0x40822a0c 0x40822a74 0x40822adc 0x00000000 0x00000000 0x00000001 0x00000000
[22:04:23]4082a560: 0x00000000 0x00000000 0x4205064c 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a580: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a5a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a5c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a5e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a600: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
[22:04:23]4082a620: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000010 0x00000000
[22:04:23]4082a640: 0x4082a4e8 0x00000000 0x00000000 0x00000020 0x6976696c 0x6f72676e 0x342d6d6f 0x39633264
[22:04:23]4082a660: 0x00000038 0x00000000 0x00000000 0x4082a648 0x00000048 0x420d7ab0 0x00000001 0x7fc00000
[22:04:23]4082a680: 0x420c1f4c 0x0001c200 0x4082a6c0 0x00000086 0x00000200 0x00000000 0x00000000 0x00000000
[22:04:23]4082a6a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4082a4e8 0x00000204
[22:04:23]4082a6c0: 0x3b305b1b 0x5b6d3633 0x655b5d44 0x692d7073 0x303a6664 0x3a5d3030 0x305b1b20 0x6d32333b
[22:04:23]4082a6e0: 0x36282049 0x20293635 0x6f697067 0x5047203a 0x365b4f49 0x49207c5d 0x7475706e 0x203a6e45
[22:04:23]4082a700: 0x4f207c31 0x75707475 0x3a6e4574 0x207c3120 0x6e65704f 0x69617244 0x31203a6e 0x7550207c
[22:04:23]4082a720: 0x70756c6c 0x7c31203a 0x6c755020 0x776f646c 0x30203a6e 0x6e49207c 0x303a7274 0x305b1b20
[22:04:23]4082a740: 0x5b1b0a6d 0xa5006d30 0xc267fbd3 0xf1677b7f 0xdd505be3 0x48c6ef62 0x7f02fd2c 0xbaf2cb39
[22:04:23]4082a760: 0xdb7f1ce7 0xd04adeed 0x8ee133b7 0xc49f726a 0x627bd0e0 0x732b8b80 0x0675c0b6 0x70381381
[22:04:23]4082a780: 0x873af681 0xeabe1fdd 0xc4580b1b 0x06a9c943 0xf2c591db 0x776b47c0 0x9b199f65 0xd01fe617
[22:04:23]4082a7a0: 0x4082a724 0x00000070 0x00000200 0x000000f8 0x00000008 0x40806f0c 0x40807264 0x40806bca
[22:04:23]
[22:04:23]
[22:04:23]
[22:04:23]ELF file SHA256: 27a37fcb0
[22:04:23]
[22:04:23]Rebooting...

@barksten
Copy link
Author

Looks like it´s the I²c component that crashes: esphome/issues#6365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant