zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.7k stars 6.54k forks source link

Tests: lib: gui: lvgl: test causes a Kernel Panic on stm32h747i_disco_m7 #67685

Closed ajarmouni-st closed 6 months ago

ajarmouni-st commented 9 months ago

Describe the bug Tests/lib/gui/lvgl test does not run on stm32h747i_disco_m7, & possibly other platforms as well, & causes a kernel panic. LittleFS appears to be the cause (as seen in the console output below).

To Reproduce Steps to reproduce the behavior:

  1. cd ~/zephyrproject/zephyr
  2. west build -p always -b stm32h747i_disco_m7 tests/lib/gui/lvgl -DSHIELD="st_b_lcd40_dsi1_mb1166"
  3. west flash

Expected behavior Random noise on the screen

Impact Cannot run test

Logs and console output

I: Reading SFDP
I: qspi-nor-flash-1@0: SFDP v 1.6 AP ff with 2 PH
I: PH0: ff00 rev 1.6: 16 DW @ 30
I: Reading SFDP
I: qspi-nor-flash-1@0: 64 MiBy flash
I: Flash - address mode: 4B
I: Quad read mode 4 instr [0x6b] supported
I: Quad read mode 7 instr [0xeb] supported
I: Quad read mode 7 instr [0xeb] will be used
I: QE requirement mode: 0
I: Quad mode enabled
I: PH1: ff84 rev 1.0: 2 DW @ 80
*** Booting Zephyr OS build zephyr-v3.5.0-4181-g4204ca9bcb3f ***
Running TESTSUITE lvgl_fs
===================================================================
I: LittleFS version 2.5, disk version 2.0
I: FS at flash-controller@52002000:0xff800 is 0 0x20000-byte blocks with 512 cycle
I: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
ASSERTION FAIL [block_count != 0] @ WEST_TOPDIR/zephyr/subsys/fs/littlefs_fs.c:813
E: r0/a1:  0x00000004  r1/a2:  0x0000032d  r2/a3:  0x40011000
E: r3/a4:  0x08037ec9 r12/ip:  0x00000000 r14/lr:  0x0800276f
E:  xpsr:  0x61000000
E: Faulting instruction address (r15/pc): 0x080270e4
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x24004670 (main)
E: Halting system

Environment:

Additional context None for now

github-actions[bot] commented 9 months ago

Hi @ajarmouni-st! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

de-nordic commented 9 months ago

By:

I: FS at flash-controller@52002000:0xff800 is 0 0x20000-byte blocks with 512 cycle

it seems that there are 0 blocks of 128k. Is the partition properly configured?

github-actions[bot] commented 7 months ago

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.