Skip to main content
PCu1
Senior
Mar 2, 2020 1:17 PM UTC
Question

STM32H7BI-DK hardfault with bigger screen size

Hello I'm working with the STM32H7B3I-DK. So far so good.

But for two days I try to increase the size of the screen (to test a bigger display in a second time).

The problem is that I get hardfault when FreeRTOS starts.

New config is as follow (only what is different from the original display):

LTDC

RGB565

480x800 for parameters and layer.

TouchGFX

RGB565

480x800

one layer

Buffer Location by Allocation

Of course I re-generate the code in TouchGFX Designer, before building project.

If I change in the configuration above the 800 by the original 272 pixels it works fine.

Under 272 I don't get crash, above even a few pixels I get crash.

0690X00000DYRcWQAX.png

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
Mar 2, 2020 2:16 PM UTC

Get a proper Hard Fault Handler, see where it is actually faulting. Usually faults because you touch memory that exceeds the physical limits of the chose buffer.

Suggest you initialize / use the SDRAM on the board.

Check that the malloc() for the buffer actually succeeds.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
PCu1
PCu1Author
Senior
Mar 2, 2020 3:04 PM UTC

Thank you Clive. I had a proper hardfault handler but the PC was also corrupted. It was not possible to get any information...

I removed the touchscreen init and managment and it works.

Now I can work on next step: connect my own screen

berendi
Principal
Mar 3, 2020 9:35 AM UTC

Is there anything like stack pointer, heap, RTOS related something in the RAMFB area, possibly overlapping the frame buffer?