cancel
Showing results for 
Search instead for 
Did you mean: 

CRC_Lock in touchgfx core lib triggers a bus fault

tkorsdal
Associate II

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:

tkorsdal_0-1712168296524.png

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

1 ACCEPTED SOLUTION

Accepted Solutions
tkorsdal
Associate II

Update: Moving the code to execute in handler mode (SVC context) in the driver made the bus fault go away.

View solution in original post

2 REPLIES 2
Joe WILLIAMS
ST Employee

Hello tkorsdal

 

Your post was escalated to ST Online Support Team for additional assistance.

 

Kind Regards

Joe WILLIAMS

STMicro Support

tkorsdal
Associate II

Update: Moving the code to execute in handler mode (SVC context) in the driver made the bus fault go away.