Skip to content

samples: subsys: input: draw_touch_events: BUS FAULT on STM32U5G9J-DK1 + st_lcd_dsi_mb1835 #98922

@CharlesDias

Description

@CharlesDias

Describe the bug

On the STM32U5G9J-DK1 with st_lcd_dsi_mb1835, the sample becomes stuck, and a "strange" image is displayed on the screen. No output log.

Image

The BUS FAULT message is printed out when the sample is rerun with the CONFIG_LOG_MODE_IMMEDIATE enabled.

!*** Booting Zephyr OS build v4.1.0-15211-g47a20f60d09a ***
[00:00:00.637,000] <inf> sample: Touch sample for touchscreen: st1633i@70, dc: display-controller@40016800
<err> os: ***** BUS FAULT *****
<err> os:   Precise data bus error
<err> os:   BFAR Address: 0x0
<err> os: r0/a1:  0x200e15b8  r1/a2:  0x00000000  r2/a3:  0x00000000
<err> os: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x08005e53
<err> os:  xpsr:  0x6100020f
<err> os: Faulting instruction address (r15/pc): 0x08005c96
<err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
<err> os: Fault during interrupt handling

<err> os: Current thread: 0x200e1418 (unknown)
<err> os: Halting system

Additionally, if the SCREEN_WIDTH_TO_CROSS_DIM value is changed to 20, the FAUL does not occur; instead, it shows only a horizontal line, rather than a cross.

Image

Regression

  • This is a regression.

Steps to reproduce

  1. Apply the patch boards: shields: st: enable the touch input on st_lcd_dsi_mb1835 #98717
  2. Compile and flash the sample west build -p -b stm32u5g9j_dk1 --shield st_lcd_dsi_mb1835 samples/subsys/input/draw_touch_events

Relevant log output

!*** Booting Zephyr OS build v4.1.0-15211-g47a20f60d09a ***
[00:00:00.637,000] <inf> sample: Touch sample for touchscreen: st1633i@70, dc: display-controller@40016800
<err> os: ***** BUS FAULT *****
<err> os:   Precise data bus error
<err> os:   BFAR Address: 0x0
<err> os: r0/a1:  0x200e15b8  r1/a2:  0x00000000  r2/a3:  0x00000000
<err> os: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x08005e53
<err> os:  xpsr:  0x6100020f
<err> os: Faulting instruction address (r15/pc): 0x08005c96
<err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
<err> os: Fault during interrupt handling

<err> os: Current thread: 0x200e1418 (unknown)
<err> os: Halting system

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

area: InputInput Subsystem and Driversarea: LVGLLight and Versatile Graphics Library SupportbugThe issue is a bug, or the PR is fixing a bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions