STM32WL55 Hard Fault (NOCP) when using TouchGFX scrollable container
- April 22, 2021
- 1 reply
- 1608 views
Hi,
My TouchGFX project causes a hard fault. When the container is scrolled and released slowly everything is fine. However if the container is released so that it springs back into place, a hard fault is generated. I have tried using a Scroll Wheel and a Scroll List and they exhibit the same bug. I believe that this is due to the easing out logic. The fault always happens at the same location on the same instruction. If I change to a scroll wheel and select a different easing animation, the fault will happen on the same assembly instruction in the alternative easing function. This led me to believe this is a hardware / library issue.
I am using an M4 with no FPU and I have linked against the ":libtouchgfx.a" library located in "Middlewares/ST/touchgfx/lib/core/cortex_m4f/gcc". It seems odd that this library is in a M4F directory. However since there is a "libtouchgfx-float-abi-hard.a" library I assume that ":libtouchgfx.a" is compiled to use floating point implemented in software.
Hardware Configuration
- NUCLEO-WL55JC1 development board
- 320 x 240 SPI Display (ILI9431)
- FT6206 Touch Screen (I2C)
Software Configuration
- TouchGFX V4.16.1
- STM32CubeIDE V1.6.1