2024-04-03 11:22 AM
Hi
I am integrating TouchGFX into own RTOS.
I use a TouchGFX/CubeMX generated project for STM32L4R9-DISCO board.
I have moved initialization code into a driver for my RTOS - it seems to complete without errors.
On touchgfx_init I get a bus fault from this code:
As I cannot find anywhere in ARM documentation that 0xe000'2000 should be a valid address, it looks like the code is causing a bus fault deliberately.
The exact same code gets executed in the ToughGFX/CubeMX generated project.
Our RTOS is - of cause - set up to catch bus faults, but bus fault is not triggered/caught in the generated project.
What is going on here - and how can I fix this?
Rgds Tage
Solved! Go to Solution.
2024-04-04 11:14 PM
Update: Moving the code to execute in handler mode (SVC context) in the driver made the bus fault go away.
2024-04-04 07:01 AM
Hello tkorsdal
Your post was escalated to ST Online Support Team for additional assistance.
Kind Regards
Joe WILLIAMS
STMicro Support
2024-04-04 11:14 PM
Update: Moving the code to execute in handler mode (SVC context) in the driver made the bus fault go away.