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 Stack Overflow on stm32f746g_disco #67686

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 stm32f746g_disco, & possibly other platforms as well, & causes a Stack Overflow.

To Reproduce Steps to reproduce the behavior:

  1. cd ~/zephyrproject/zephyr
  2. west build -p always -b stm32f746g_disco tests/lib/gui/lvgl
  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@0: SFDP v 1.5 AP ff with 2 PH
I: PH0: ff00 rev 1.5: 16 DW @ 30
I: Reading SFDP
I: qspi-nor-flash@0: 16 MiBy flash
I: PH1: ff03 rev 1.0: 2 DW @ 100
* 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 qspi-nor-flash@0:0xa0000 is 3840 0x1000-byte blocks with 512 cycle
I: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
E: * MPU FAULT *
E:   Stacking error (context area might be not valid)
E:   Data Access Violation
E:   MMFAR Address: 0x2001da38
E: r0/a1:  0x00000002  r1/a2:  0x2001da5c  r2/a3:  0x2001da5c
E: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x2001da70
E:  xpsr:  0x00000000
E: Faulting instruction address (r15/pc): 0x2001da70
E: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
E: Current thread: 0x200146f0 (main)
E: Halting system

Environment:

Additional context None for now

simontheu commented 9 months ago

Do you have enough stack size? I had this on my Sam_e70 derived project, I put "CONFIG_MAIN_STACK_SIZE=8192" in the prj.conf to solve.

ajarmouni-st commented 9 months ago

Do you have enough stack size? I had this on my Sam_e70 derived project, I put "CONFIG_MAIN_STACK_SIZE=8192" in the prj.conf to solve.

@simontheu No it does not solve the problem.

de-nordic commented 9 months ago

Check stacks. Maybe ISR stack. This ain't LittleFS. Play with all available stack settings and then narrow down.

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.