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

Repeatedly Crashing #10

Open
BouncyBonBon opened this issue Feb 22, 2025 · 10 comments
Open

Repeatedly Crashing #10

BouncyBonBon opened this issue Feb 22, 2025 · 10 comments
Labels
bug Something isn't working

Comments

@BouncyBonBon
Copy link

The Macropad keeps randomly rebooting itself after some inputs. I followed the instrucctions for setup, though was unable to connect bluetooth due to not having compatibility on my PC.

Pressing any button seems to have a ~10% chance of just crashing the pad and rebooting from the intro. This seems to be more likely when pressing buttons quickly like when navigating the settings menu or setting up your loadout.

@BouncyBonBon BouncyBonBon added the bug Something isn't working label Feb 22, 2025
@unic8s
Copy link
Owner

unic8s commented Feb 22, 2025

Hi @BouncyBonBon,

so I'm sorry to hear that you have issues with connecting via Bluetooth. The device itself can for now only work with a stable and good Bluetooth connection.

What kind of issues do you have with the compatibility? Is the device showing up in the list for "new devices"?

If there is no Bluetooth module in you PC you can also get a Bluetooth USB stick for 5-10$.

@BouncyBonBon
Copy link
Author

The issue isn't related to connection, it's just my PC doesn't have any Bluetooth implementation haha. I'm getting a Bluetooth adapter, but the issue itself that I'm talking about is that the macropad just sometimes reboots when pressing a button, even though it has sufficient power through the cable.

@unic8s
Copy link
Owner

unic8s commented Feb 23, 2025

Okay, happy you will have then a working Bluetooth setup.

Restart typically happen from the underlying OS of the software. When something is either unexpectedly happens (bug) or something is blocking the processor.

Can you please provide more details? It's not that these things are necessary - it's more about the parameters we're facing:

  • On which screen does the issue occur? E.g. Device config, Stratagem selection, Game mode?
  • On which buttons do you press when the issue happens? E.g. Stratagems, naviation?
  • Do you have the sound option on the macropad actived or deactived?
  • Do you have a SD card inserted into the macropad?
  • Does the SD card contain the assets from the corresponding release?

@BouncyBonBon
Copy link
Author

  1. The config and stratagems screen most often, but can happen on any screen
  2. Any button but it happens more frequently with those that change what the screen is displaying (the tabs in stratagems/config, the buttons that switch between the stages of setup)
  3. Deactivated
  4. Not that I'm aware of
  5. N/A

@unic8s
Copy link
Owner

unic8s commented Feb 23, 2025

I did a video about how it should behave and probably you can tell me if what you can see in the video would already result in your issue... (sorry about the shaky and improvised video)

https://youtu.be/xzf31BxGU8A

Did you try to reflash the firmware?

@ClausiusMaximus
Copy link

ClausiusMaximus commented Feb 28, 2025

Hi,

  1. Thanks for the Projekt. ^^
    I have the same Issue, sometimes on the mainscreen when I choose the stratagems but want to erase and set new stratagems the Macropad reboots randomly.

tried to upload and debug it in Visual Studio Code maybe it could help.

``E (91682) I2S Audio Player: (S:assets/sound/_swp.wav) FS open failed.
Touchpad pressed: x=128, y=150
[Info] (89.500, +85) indev_proc_press: pressed at x:128 y:150 (in lv_indev.c line #818)
Touchpad pressed: x=65, y=171
[Info] (89.590, +90) indev_proc_press: pressed at x:65 y:171 (in lv_indev.c line #818)
Touchpad pressed: x=161, y=184
[Info] (89.675, +85) indev_proc_press: pressed at x:161 y:184 (in lv_indev.c line #818)
Touchpad pressed: x=478, y=151
[Info] (89.770, +95) indev_proc_press: pressed at x:478 y:151 (in lv_indev.c line #818)
[Info] (89.870, +100) indev_proc_release: released (in lv_indev.c line #966)
Touchpad pressed: x=126, y=145
[Info] (89.955, +85) indev_proc_press: pressed at x:126 y:145 (in lv_indev.c line #818)
Touchpad pressed: x=48, y=167
[Info] (90.040, +85) indev_proc_press: pressed at x:48 y:167 (in lv_indev.c line #818)
Touchpad pressed: x=267, y=141
[Info] (90.135, +95) indev_proc_press: pressed at x:267 y:141 (in lv_indev.c line #818)
Touchpad pressed: x=478, y=117
[Info] (90.235, +100) indev_proc_press: pressed at x:478 y:117 (in lv_indev.c line #818)
[Info] (90.265, +30) indev_proc_release: released (in lv_indev.c line #966)
Touchpad pressed: x=307, y=93
[Info] (90.370, +105) indev_proc_press: pressed at x:307 y:93 (in lv_indev.c line #818)
Touchpad pressed: x=79, y=144
[Info] (90.455, +85) indev_proc_press: pressed at x:79 y:144 (in lv_indev.c line #818)
Touchpad pressed: x=44, y=152
[Info] (90.540, +85) indev_proc_press: pressed at x:44 y:152 (in lv_indev.c line #818)
Touchpad pressed: x=322, y=122
[Info] (90.625, +85) indev_proc_press: pressed at x:322 y:122 (in lv_indev.c line #818)
Touchpad pressed: x=480, y=109
[Warn] (90.710, +85) indev_pointer_proc: X is 480 which is greater than hor. res (in lv_indev.c line #361)
[Info] (90.710, +0) indev_proc_press: pressed at x:480 y:109 (in lv_indev.c line #818)
[Warn] (90.795, +85) indev_pointer_proc: X is 480 which is greater than hor. res (in lv_indev.c line #361)
[Info] (90.795, +0) indev_proc_release: released (in lv_indev.c line #966)
E (93032) I2S Audio Player: (S:assets/sound/_swp.wav) FS open failed.
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x42022778 PS : 0x00060a30 A0 : 0x82039a5c A1 : 0x3fcb9d50
A2 : 0x3fcb9d70 A3 : 0x3c0e4fdc A4 : 0x3c0e4ff0 A5 : 0x00016b68
A6 : 0x3c0e4fdc A7 : 0x3fcb9d70 A8 : 0x80388e6c A9 : 0x3fcb9cf0
A10 : 0x00060623 A11 : 0x3c0e4fdc A12 : 0x3c0e4ff0 A13 : 0x3fcb9d50
A14 : 0x3fcb9d30 A15 : 0x0000000c SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0x0006062f LBEG : 0x400556d5 LEND : 0x400556e5 LCOUNT : 0xfffffff9

Backtrace: 0x42022775:0x3fcb9d50 0x42039a59:0x3fcb9d70 0x42004602:0x3fcb9db0 0x40383001:0x3fcb9dd0
#0 0x42022775 in lv_fs_close at libraries/lvgl/src/misc/lv_fs.c:107
#1 0x42039a59 in play_wav at libraries/audio_player/i2s_player.c:48
#2 0x42004602 in hid_input_task at src/main.c:165
#3 0x40383001 in vPortTaskWrapper at C:\Users\Hase.platformio\packages\framework-espidf\components\freertos\FreeRTOS-Kernel\portable\xtensa/port.c:134

ELF file SHA256: 677d1e71acb4dccc

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x28 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40377f1c
#0 0x40377f1c in esp_restart_noos at C:\Users\Hase.platformio\packages\framework-espidf\components\esp_system\port\soc\esp32s3/system_internal.c:158

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x2334
load:0x403c8700,len:0x4
load:0x403c8704,len:0x1054
load:0x403cb700,len:0x32dc
entry 0x403c8980
I (26) boot: ESP-IDF 5.3.1 2nd stage bootloader
I (26) boot: compile time Feb 28 2025 15:23:00
I (26) boot: Multicore bootloader
D (29) bootloader_flash: non-XMC chip detected by SFDP Read (85), skip.
D (36) bootloader_flash: mmu set block paddr=0x00000000 (was 0xffffffff)
I (43) boot: chip revision: v0.2
D (47) qio_mode: Probing for QIO mode enable...
D (51) qio_mode: Raw SPI flash chip id 0x852018
D (56) qio_mode: Manufacturer ID 0x85 chip ID 0x2018
I (61) qio_mode: Enabling default flash chip QIO
D (66) qio_mode: Initial flash chip status 0x2
D (71) qio_mode: QIO mode already enabled in flash
D (75) qio_mode: Enabling QIO mode...
D (79) boot.esp32s3: magic e9
D (82) boot.esp32s3: segments 04
D (85) boot.esp32s3: spi_mode 02
D (89) boot.esp32s3: spi_speed 0f
D (92) boot.esp32s3: spi_size 04
I (95) boot.esp32s3: Boot SPI Speed : 80MHz
I (100) boot.esp32s3: SPI Mode : QIO
I (105) boot.esp32s3: SPI Flash Size : 16MB
D (110) boot: Enabling RTCWDT(9000 ms)
I (114) boot: Enabling RNG early entropy source...
D (119) bootloader_flash: rodata starts from paddr=0x00008000, size=0xc00, will be mapped to vaddr=0x3c000000
V (129) bootloader_flash: after mapping, starting from paddr=0x00000000 and vaddr=0x3c000000, 0x10000 bytes are mapped
D (140) boot: mapped partition table 0x8000 at 0x3c008000
D (146) flash_parts: partition table verified, 7 entries
I (151) boot: Partition Table:
I (155) boot: ## Label Usage Type ST Offset Length
D (162) boot: load partition table entry 0x3c008000
D (167) boot: type=1 subtype=2
I (170) boot: 0 nvs WiFi data 01 02 00009000 00005000
D (178) boot: load partition table entry 0x3c008020
D (183) boot: type=1 subtype=0
I (186) boot: 1 otadata OTA data 01 00 0000e000 00002000
D (193) boot: load partition table entry 0x3c008040
D (198) boot: type=0 subtype=10
I (201) boot: 2 app0 OTA app 00 10 00010000 00640000
D (209) boot: load partition table entry 0x3c008060
D (214) boot: type=0 subtype=11
I (217) boot: 3 app1 OTA app 00 11 00650000 00640000
D (225) boot: load partition table entry 0x3c008080
D (230) boot: type=1 subtype=82
I (233) boot: 4 spiffs Unknown data 01 82 00c90000 00360000
D (240) boot: load partition table entry 0x3c0080a0
D (245) boot: type=1 subtype=3
I (248) boot: 5 coredump Unknown data 01 03 00ff0000 00010000
I (256) boot: End of partition table
D (260) boot: OTA data offset 0xe000
D (264) bootloader_flash: rodata starts from paddr=0x0000e000, size=0x2000, will be mapped to vaddr=0x3c000000
V (274) bootloader_flash: after mapping, starting from paddr=0x00000000 and vaddr=0x3c000000, 0x10000 bytes are mapped
D (285) boot: otadata[0]: sequence values 0x00000001
D (290) boot: otadata[1]: sequence values 0xffffffff
D (295) boot_comm: Only otadata[0] is valid
D (299) boot: Active otadata[0]
D (302) boot: Mapping seq 0 -> OTA slot 0
D (306) boot: Trying partition index 0 offs 0x10000 size 0x640000
D (312) esp_image: reading image header @ 0x10000
D (317) bootloader_flash: mmu set block paddr=0x00010000 (was 0xffffffff)
D (324) esp_image: image header: 0xe9 0x05 0x02 0x04 40377538
V (330) esp_image: loading segment header 0 at offset 0x10018
V (336) esp_image: segment data length 0x3386a4 data starts 0x10020
V (342) esp_image: segment 0 map_segment 1 segment_data_offs 0x10020 load_addr 0x3c0e0020
I (350) esp_image: segment 0: paddr=00010020 vaddr=3c0e0020 size=3386a4h (3376804) map
D (359) esp_image: free data page_count 0x00000200
D (364) bootloader_flash: rodata starts from paddr=0x00010020, size=0x3386a4, will be mapped to vaddr=0x3c000000
V (374) bootloader_flash: after mapping, starting from paddr=0x00010000 and vaddr=0x3c000000, 0x340000 bytes are mapped
V (896) esp_image: loading segment header 1 at offset 0x3486c4
D (896) bootloader_flash: mmu set block paddr=0x00340000 (was 0xffffffff)
V (898) esp_image: segment data length 0x4cdc data starts 0x3486cc
V (904) esp_image: segment 1 map_segment 0 segment_data_offs 0x3486cc load_addr 0x3fc9b500
I (912) esp_image: segment 1: paddr=003486cc vaddr=3fc9b500 size=04cdch ( 19676) load
D (921) esp_image: free data page_count 0x00000200
D (926) bootloader_flash: rodata starts from paddr=0x003486cc, size=0x4cdc, will be mapped to vaddr=0x3c000000
V (936) bootloader_flash: after mapping, starting from paddr=0x00340000 and vaddr=0x3c000000, 0x10000 bytes are mapped
V (950) esp_image: loading segment header 2 at offset 0x34d3a8
D (952) bootloader_flash: mmu set block paddr=0x00340000 (was 0xffffffff)
V (959) esp_image: segment data length 0x2c68 data starts 0x34d3b0
V (965) esp_image: segment 2 map_segment 0 segment_data_offs 0x34d3b0 load_addr 0x40374000
I (974) esp_image: segment 2: paddr=0034d3b0 vaddr=40374000 size=02c68h ( 11368) load
D (982) esp_image: free data page_count 0x00000200
D (987) bootloader_flash: rodata starts from paddr=0x0034d3b0, size=0x2c68, will be mapped to vaddr=0x3c000000
V (997) bootloader_flash: after mapping, starting from paddr=0x00340000 and vaddr=0x3c000000, 0x20000 bytes are mapped
V (1010) esp_image: loading segment header 3 at offset 0x350018
D (1014) bootloader_flash: mmu set block paddr=0x00350000 (was 0xffffffff)
V (1021) esp_image: segment data length 0xd5434 data starts 0x350020
V (1027) esp_image: segment 3 map_segment 1 segment_data_offs 0x350020 load_addr 0x42000020
I (1036) esp_image: segment 3: paddr=00350020 vaddr=42000020 size=d5434h (873524) map
D (1044) esp_image: free data page_count 0x00000200
D (1049) bootloader_flash: rodata starts from paddr=0x00350020, size=0xd5434, will be mapped to vaddr=0x3c000000
V (1059) bootloader_flash: after mapping, starting from paddr=0x00350000 and vaddr=0x3c000000, 0xe0000 bytes are mapped
V (1203) esp_image: loading segment header 4 at offset 0x425454
D (1203) bootloader_flash: mmu set block paddr=0x00420000 (was 0xffffffff)
V (1204) esp_image: segment data length 0x147c4 data starts 0x42545c
V (1211) esp_image: segment 4 map_segment 0 segment_data_offs 0x42545c load_addr 0x40376c68
I (1219) esp_image: segment 4: paddr=0042545c vaddr=40376c68 size=147c4h ( 83908) load
D (1228) esp_image: free data page_count 0x00000200
D (1233) bootloader_flash: rodata starts from paddr=0x0042545c, size=0x147c4, will be mapped to vaddr=0x3c000000
V (1243) bootloader_flash: after mapping, starting from paddr=0x00420000 and vaddr=0x3c000000, 0x20000 bytes are mapped
V (1270) esp_image: image start 0x00010000 end of last section 0x00439c20
D (1271) bootloader_flash: mmu set block paddr=0x00430000 (was 0xffffffff)
I (1282) boot: Loaded app from partition at offset 0x10000
I (1283) boot: Disabling RNG early entropy source...
D (1285) boot: Mapping segment 0 as DROM
D (1289) boot: Mapping segment 3 as IROM
D (1293) boot: calling set_cache_and_start_app
D (1297) boot: configure drom and irom and start
V (1302) boot: rodata starts from paddr=0x00010020, vaddr=0x3c0e0020, size=0x3386a4
V (1310) boot: after mapping rodata, starting from paddr=0x00010000 and vaddr=0x3c0e0000, 0x340000 bytes are mapped
V (1320) boot: mapped one page of the rodata, from paddr=0x00010000 and vaddr=0x3c0e0000, 0x10000 bytes are mapped
V (1330) boot: text starts from paddr=0x00350020, vaddr=0x42000020, size=0xd5434
V (1338) boot: after mapping text, starting from paddr=0x00350000 and vaddr=0x42000000, 0xe0000 bytes are mapped
D (1348) boot: start: 0x40377538
I (1363) octal_psram: ECC is enabled
I (1363) octal_psram: vendor id : 0x0d (AP)
I (1364) octal_psram: dev id : 0x02 (generation 3)
I (1367) octal_psram: density : 0x03 (64 Mbit)
I (1373) octal_psram: good-die : 0x01 (Pass)
I (1378) octal_psram: Latency : 0x01 (Fixed)
I (1383) octal_psram: VCC : 0x01 (3V)
I (1389) octal_psram: SRF : 0x01 (Fast Refresh)
I (1395) octal_psram: BurstType : 0x00 ( Wrap)
I (1400) octal_psram: BurstLen : 0x03 (1024 Byte)
I (1406) octal_psram: Readlatency : 0x02 (10 cycles@Fixed)
I (1412) octal_psram: DriveStrength: 0x00 (1/1)
I (1418) MSPI Timing: PSRAM timing tuning index: 5
I (1423) esp_psram: Found 8MB PSRAM device
I (1427) esp_psram: Speed: 80MHz
I (1431) cpu_start: Multicore app
I (1905) esp_psram: SPI SRAM memory test OK
I (1914) cpu_start: Pro cpu start user code
I (1914) cpu_start: cpu freq: 160000000 Hz
I (1914) app_init: Application information:
I (1917) app_init: Project name: DEMO_LVGL
I (1922) app_init: App version: v1.1.7-dirty
I (1928) app_init: Compile time: Feb 28 2025 15:22:20
I (1934) app_init: ELF file SHA256: 677d1e71acb4dccc...
I (1940) app_init: ESP-IDF: 5.3.1
I (1945) efuse_init: Min chip rev: v0.0
I (1949) efuse_init: Max chip rev: v0.99
I (1954) efuse_init: Chip rev: v0.2
I (1959) heap_init: Initializing. RAM available for dynamic allocation:
I (1967) heap_init: At 3FCA4C90 len 00044A80 (274 KiB): RAM
I (1973) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (1979) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (1985) heap_init: At 600FE100 len 00001EE8 (7 KiB): RTCRAM
I (1992) esp_psram: Adding pool of 7680K of PSRAM memory to heap allocator
I (2000) spi_flash: detected chip: generic
I (2004) spi_flash: flash io: qio
W (2008) i2c: This driver is an old driver, please migrate your application code to adapt driver/i2c_master.h
I (2019) sleep: Configure to isolate all GPIO pins in sleep state
I (2026) sleep: Enable automatic switching of GPIO sleep configuration
I (2033) coexist: coex firmware version: 4482466
I (2038) coexist: coexist rom version e7ae62f
I (2043) main_task: Started on CPU0
I (2047) main_task: Calling app_main()
I (2059) SDCARD: Initializing SD card
I (2059) SDCARD: Mounting filesystem
I (2060) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2069) gpio: GPIO[11]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2078) gpio: GPIO[13]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
E (2116) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (2116) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
E (2118) SDCARD: Failed to initialize the card (ESP_ERR_TIMEOUT). Make sure SD card lines have pull-up resistors in place.
I (2130) BLE_INIT: BT controller compile version [aa16a46]
I (2136) BLE_INIT: Bluetooth MAC: e8:06:90:9b:16:22
I (2142) phy_init: phy_version 680,a6008b2,Jun 4 2024,16:41:10
W (2203) BT_BTM: BTM_BleWriteAdvData, Partial data write into ADV
I (2205) HID_LE_PRF: esp_hidd_prf_cb_hdl(), start added the hid service to the stack database. incl_handle = 40
I (2213) HID_LE_PRF: hid svc handle = 2d
rotation = 3
I (2218) HD2 Macropad:

************* Initialize panel device **************

[Info] (0.000, +0) lv_init: begin (in lv_obj.c line #106)
I (2228) LVGL: Starting LVGL task
I (2232) example: Initialize SPI bus
I (2237) example: Install panel IO
I (2241) example: Install LCD driver of axs15231b
I (2246) lcd_panel.axs15231b: LCD panel create success, version: 1.0.0
I (2597) lcd_panel.axs15231b: send init commands success
I (2597) gpio: GPIO[38]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2
[Info] (0.375, +375) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.375, +0) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.380, +5) lv_obj_create: begin (in lv_obj.c line #215)
I (2619) example: Setting LCD backlight: 0%
[Info] (0.395, +15) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.400, +5) lv_img_create: begin (in lv_img.c line #60)
[Info] (0.405, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.410, +5) lv_tabview_create: begin (in lv_tabview.c line #58)
[Info] (0.415, +5) lv_btnmatrix_create: begin (in lv_btnmatrix.c line #83)
[Info] (0.425, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.430, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.435, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (0.440, +5) flex_update: update 0x3fcccc30 container (in lv_flex.c line #208)
[Info] (0.450, +10) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (0.455, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (0.465, +10) flex_update: update 0x3fcccc30 container (in lv_flex.c line #208)
[Info] (0.475, +10) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (0.480, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (0.490, +10) flex_update: update 0x3fcccc30 container (in lv_flex.c line #208)
[Info] (0.495, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (0.505, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.510, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.515, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.520, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.525, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.535, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.540, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.545, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.550, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.555, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.560, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.565, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.570, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.580, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.585, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.590, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.595, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.600, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.605, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.610, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.620, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.625, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.630, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.635, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.640, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.645, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.650, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.655, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.665, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.670, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.675, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.680, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.685, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.690, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.695, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.705, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.710, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.715, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.720, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.725, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.730, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.735, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.740, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.750, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.755, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.760, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.765, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.770, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.775, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.780, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.790, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.795, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.800, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.805, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.810, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.815, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.820, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.830, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.835, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.840, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.845, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.850, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.855, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.860, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.865, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.875, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.880, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.885, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.890, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.895, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.900, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.905, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.910, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.920, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.925, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.930, +5) lv_bar_create: begin (in lv_bar.c line #80)
[Info] (0.935, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (0.940, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.950, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.950, +0) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (0.960, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.965, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.970, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.975, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.985, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.985, +0) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (0.990, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.000, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.005, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.010, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.015, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.020, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.025, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.030, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.040, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.045, +5) lv_tabview_create: begin (in lv_tabview.c line #58)
[Info] (1.050, +5) lv_btnmatrix_create: begin (in lv_btnmatrix.c line #83)
[Info] (1.055, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.065, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.070, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.075, +5) flex_update: update 0x3fcd5424 container (in lv_flex.c line #208)
[Info] (1.085, +10) flex_update: update 0x3fcd5284 container (in lv_flex.c line #208)
[Info] (1.090, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.100, +10) flex_update: update 0x3fcd5424 container (in lv_flex.c line #208)
[Info] (1.105, +5) flex_update: update 0x3fcd5284 container (in lv_flex.c line #208)
[Info] (1.115, +10) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.120, +5) flex_update: update 0x3fcd5424 container (in lv_flex.c line #208)
[Info] (1.130, +10) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.135, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.145, +10) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.150, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.155, +5) lv_slider_create: begin (in lv_slider.c line #62)
[Info] (1.165, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.165, +0) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.175, +10) lv_switch_create: begin (in lv_switch.c line #75)
[Info] (1.180, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.185, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.190, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.195, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.205, +10) lv_switch_create: begin (in lv_switch.c line #75)
[Info] (1.210, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.215, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.220, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.225, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.235, +10) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.240, +5) lv_slider_create: begin (in lv_slider.c line #62)
[Info] (1.250, +10) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.250, +0) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.255, +5) lv_dropdown_create: begin (in lv_dropdown.c line #92)
[Info] (1.265, +10) lv_dropdown_list_create: begin (in lv_dropdown.c line #578)
[Info] (1.270, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.275, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.280, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.290, +10) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.295, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.300, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.305, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.310, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.315, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.320, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.330, +10) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.335, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.340, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.345, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.350, +5) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.360, +10) lv_label_create: begin (in lv_label.c line #75)
[Info] (1.365, +5) lv_img_create: begin (in lv_img.c line #60)
[Info] (1.370, +5) lv_btn_create: begin (in lv_btn.c line #51)
[Info] (1.375, +5) lv_obj_create: begin (in lv_obj.c line #215)
[Info] (1.380, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.390, +10) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.395, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.405, +10) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
I (3844) example: Setting LCD backlight: 100%
delay = 50
rotation = 3
brightness = 100
I (3847) example: Setting LCD backlight: 100%
The value is not initialized yet!
keymap = 1
[Info] (1.620, +215) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.630, +10) flex_update: update 0x3fcd5724 container (in lv_flex.c line #208)
E (3867) I2S Audio Player: (S:assets/sound/_swt.wav) FS open failed.
[Info] (1.645, +15) flex_update: update 0x3fcd5c60 container (in lv_flex.c line #208)
[Info] (1.650, +5) flex_update: update 0x3fcd5614 container (in lv_flex.c line #208)
[Info] (1.660, +10) flex_update: update 0x3fcd6258 container (in lv_flex.c line #208)
[Info] (1.665, +5) flex_update: update 0x3fcd6188 container (in lv_flex.c line #208)
[Info] (1.675, +10) flex_update: update 0x3fcd6860 container (in lv_flex.c line #208)
[Info] (1.790, +115) flex_update: update 0x3fcd6d98 container (in lv_flex.c line #208)
[Info] (1.795, +5) flex_update: update 0x3fcd71bc container (in lv_flex.c line #208)
[Info] (1.795, +0) flex_update: update 0x3fcd679c container (in lv_flex.c line #208)
[Info] (1.935, +140) flex_update: update 0x3fcd5424 container (in lv_flex.c line #208)
[Info] (1.935, +0) flex_update: update 0x3fcd7608 container (in lv_flex.c line #208)
[Info] (1.935, +0) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (1.945, +10) flex_update: update 0x3fcd5724 container (in lv_flex.c line #208)
[Info] (2.460, +515) flex_update: update 0x3fcd5c60 container (in lv_flex.c line #208)
[Info] (2.460, +0) flex_update: update 0x3fcd5614 container (in lv_flex.c line #208)
[Info] (2.465, +5) flex_update: update 0x3fcd6258 container (in lv_flex.c line #208)
[Info] (2.475, +10) flex_update: update 0x3fcd6188 container (in lv_flex.c line #208)
[Info] (2.480, +5) flex_update: update 0x3fcd6860 container (in lv_flex.c line #208)
[Info] (2.490, +10) flex_update: update 0x3fcd6d98 container (in lv_flex.c line #208)
[Info] (2.500, +10) flex_update: update 0x3fcd71bc container (in lv_flex.c line #208)
[Info] (2.505, +5) flex_update: update 0x3fcd679c container (in lv_flex.c line #208)
[Info] (2.510, +5) flex_update: update 0x3fcd7608 container (in lv_flex.c line #208)
[Info] (2.520, +10) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (2.530, +10) flex_update: update 0x3fcd5724 container (in lv_flex.c line #208)
[Info] (2.535, +5) flex_update: update 0x3fcd5c60 container (in lv_flex.c line #208)
[Info] (2.540, +5) flex_update: update 0x3fcd5614 container (in lv_flex.c line #208)
[Info] (2.550, +10) flex_update: update 0x3fcd6258 container (in lv_flex.c line #208)
[Info] (2.555, +5) flex_update: update 0x3fcd6188 container (in lv_flex.c line #208)
[Info] (2.565, +10) flex_update: update 0x3fcd6860 container (in lv_flex.c line #208)
[Info] (2.575, +10) flex_update: update 0x3fcd6d98 container (in lv_flex.c line #208)
[Info] (2.580, +5) flex_update: update 0x3fcd71bc container (in lv_flex.c line #208)
[Info] (2.585, +5) flex_update: update 0x3fcd679c container (in lv_flex.c line #208)
[Info] (2.595, +10) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (2.605, +10) flex_update: update 0x3fcd5724 container (in lv_flex.c line #208)
[Info] (2.610, +5) flex_update: update 0x3fcd5c60 container (in lv_flex.c line #208)
[Info] (2.620, +10) flex_update: update 0x3fcd6258 container (in lv_flex.c line #208)
[Info] (2.625, +5) flex_update: update 0x3fcd6188 container (in lv_flex.c line #208)
[Info] (2.635, +10) flex_update: update 0x3fcd6860 container (in lv_flex.c line #208)
[Info] (2.640, +5) flex_update: update 0x3fcd6d98 container (in lv_flex.c line #208)
[Info] (2.650, +10) flex_update: update 0x3fcd679c container (in lv_flex.c line #208)
[Info] (2.655, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (2.665, +10) flex_update: update 0x3fcd6258 container (in lv_flex.c line #208)
[Info] (2.670, +5) flex_update: update 0x3fcd6860 container (in lv_flex.c line #208)
[Info] (2.680, +10) flex_update: update 0x3fcd6d98 container (in lv_flex.c line #208)
I (4918) main_task: Returned from app_main()
E (4923) I2S Audio Player: (S:assets/sound/intro.wav) FS open failed.
[Info] (3.390, +710) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (3.395, +5) flex_update: update 0x3fcccfcc container (in lv_flex.c line #208)
[Info] (3.400, +5) flex_update: update 0x3fcce7fc container (in lv_flex.c line #208)
[Info] (3.410, +10) flex_update: update 0x3fccf944 container (in lv_flex.c line #208)
[Info] (3.415, +5) flex_update: update 0x3fcd0ee0 container (in lv_flex.c line #208)
[Info] (3.420, +5) flex_update: update 0x3fcd2094 container (in lv_flex.c line #208)
[Info] (3.425, +5) flex_update: update 0x3fcccc30 container (in lv_flex.c line #208)
[Info] (3.435, +10) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (3.445, +10) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (3.450, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (3.455, +5) flex_update: update 0x3fcccfcc container (in lv_flex.c line #208)
[Info] (3.465, +10) flex_update: update 0x3fcce7fc container (in lv_flex.c line #208)
[Info] (3.475, +10) flex_update: update 0x3fccf944 container (in lv_flex.c line #208)
[Info] (3.480, +5) flex_update: update 0x3fcd0ee0 container (in lv_flex.c line #208)
[Info] (3.490, +10) flex_update: update 0x3fcd2094 container (in lv_flex.c line #208)
[Info] (3.495, +5) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (3.500, +5) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (3.510, +10) flex_update: update 0x3fcce7fc container (in lv_flex.c line #208)
[Info] (3.520, +10) flex_update: update 0x3fccf944 container (in lv_flex.c line #208)
[Info] (3.525, +5) flex_update: update 0x3fcd0ee0 container (in lv_flex.c line #208)
[Info] (3.535, +10) flex_update: update 0x3fcd2094 container (in lv_flex.c line #208)
[Info] (3.630, +95) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (3.630, +0) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (3.635, +5) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (3.735, +100) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (3.735, +0) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (3.740, +5) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (3.845, +105) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (3.845, +0) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (3.850, +5) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (3.980, +130) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (3.980, +0) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (3.985, +5) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (4.105, +120) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (4.105, +0) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (4.110, +5) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (4.245, +135) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (4.250, +5) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (4.250, +0) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)
[Info] (4.400, +150) lv_obj_update_layout: Layout update begin (in lv_obj_pos.c line #314)
[Info] (4.400, +0) flex_update: update 0x3fccca90 container (in lv_flex.c line #208)
[Info] (4.405, +5) flex_update: update 0x3fcd2a78 container (in lv_flex.c line #208)´´

@ClausiusMaximus
Copy link

Tried to reproduce the issue. When the Display is inactive for about 3 min. (No touching but lightning) And I Touch after These 3 min. The Display will reboot.
For powering I use a Powerbank.

Maybe this helps for Bug fixing

@unic8s
Copy link
Owner

unic8s commented Mar 2, 2025

Thank you very much @ClausiusMaximus - this contained a lot of information!
This is why we didn't disable the debug logging and I was quickly able to identify an issue and I really hope the fix works for all of you.

There is already error handling for preventing sound streaming to the integrated audio chip if sound is turned on and a sd card is present. If the assets are missing the code will stop the execution and output an error log message.

But it seems that the underlying operating system is not happy to stop at a certain moment with fiddling of opening/closing access to non-existing files on the sd card.

I could reproduce this error on my device and I added an error state of the "sound player" in the code.
Now it won't retry to access the sd card if there was an error once the device is powered.

The new built is available with v1.1.8 and let me know if this worked out for you.

@ClausiusMaximus
Copy link

ClausiusMaximus commented Mar 2, 2025

Updated to v1.1.8. First tests worked great, no reboots (testet just the pad without gaming and BT connection).

:-) Thumbs Up

Edit: is it important that the SD card is inserted?

@unic8s
Copy link
Owner

unic8s commented Mar 2, 2025

Thanks for the quick feedback - keeping my fingers crossed.

The sd card in general is not necessary at all.

First interations of our software was heavily relying on loading all images from sd card. It would have been nice for the community to be able to modify assets to their wishes. The downside was a big drop in performance so we got rid of it.

For now only sound files will be loaded and streamed from the sd card. But if you don't need it - you can also remove the sd card.
The previous code was written to check file access before streaming sounds - everytime. This kind of handling is pretty normal but as it seems the included systems like FreeRTOS, LVGL and filesystem driver weren't happy with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants