cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7BI-DK hardfault with bigger screen size

PCu1
Senior

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

3 REPLIES 3

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 Up vote any posts that you find helpful, it shows what's working..
PCu1
Senior

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

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