cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault Error relating to TouchGFX text rendering.

RobNewbury
Associate III

I am using STM32F469I-DISCO interfaced to a custom display operating in DSI-Video Burst mode.

I'm using TouchGFX, all compiles ok, however I am getting a HardFault_Handler error relating to TouchGFX::TextProvider as follows.

 

RobNewbury_2-1761598393827.png

The memory is organised as follows.

RobNewbury_0-1761598271886.png

I think the fault may relate to text object(s) with related wildcards that have been deleted from within TouchGFX designer.

 

I am using TOUCHGFX V4.26.0 but had the same problem with V4.25.0

 

1 ACCEPTED SOLUTION

Accepted Solutions
RobNewbury
Associate III

It turns out that rendering any text results in a Hard Fault.

I'm using QSPI as external flash, I hadn't included an external loader in the debugger. I am using the STM32F469I-DISCO so I added MT25QL128A_STM32F469I-DK.stdlr to the external loaders section of the project debug configuration. This solved the problem.

RobNewbury_0-1761773543606.png

@mathiasmarkussen Thanks for your input on this.

View solution in original post

7 REPLIES 7
mathiasmarkussen
ST Employee

Hello,

Do you currently show any text on the screen? Do they use wildcards?

Do you have any texts that are not in use in the Texts tab in TouchGFX Designer?

Hi @mathiasmarkussen ,

Do you currently show any text on the screen? Do they use wildcards? - Yes & No.

Do you have any texts that are not in use in the Texts tab in TouchGFX Designer? - Yes

I guess I should delete the unused texts?

 

Yes, delete the unused texts and see if that fixes your issue.

@mathiasmarkussen Ok, I've deleted the unused texts, but get the same error. The break address in the HardFault_Handler has changed from 0x8e1397fc to 0x8fa51e18. 
May be this is a clue as there is no memory at that address?

RobNewbury_0-1761648276207.png

 

 

mathiasmarkussen
ST Employee

You could check that in you .map file - also check where Texts.o ends up being linked.

@mathiasmarkussen 

I'm not overly familiar with reading .map files, but it looks like Texts.o is linked to 0x0802e90c

RobNewbury_1-1761662355513.png

 

There is no reference in the .map file to any addresses in the region of 0x8fa51e18

RobNewbury
Associate III

It turns out that rendering any text results in a Hard Fault.

I'm using QSPI as external flash, I hadn't included an external loader in the debugger. I am using the STM32F469I-DISCO so I added MT25QL128A_STM32F469I-DK.stdlr to the external loaders section of the project debug configuration. This solved the problem.

RobNewbury_0-1761773543606.png

@mathiasmarkussen Thanks for your input on this.