2020-03-02 05:17 AM
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.
2020-03-02 06:16 AM
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.
2020-03-02 07:04 AM
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
2020-03-03 01:35 AM
Is there anything like stack pointer, heap, RTOS related something in the RAMFB area, possibly overlapping the frame buffer?