Hello,
according to your description, your GUI application is running fine on the STM32F746 Discovery board - but results in some fatal errors when you run the same application on your custom specific hardware. Correct?
In most cases, these errors (and similar errors like a corrupted heap) are caused by some unreliable memory (SDRAM) content.
Let me recommend to use the SDRAM memory test and run this intensively on your hardware. Additionally, make some tests to read only the SDRAM after a couple of minutes, without doing a write operation - just to make sure that the refresh is working correctly.
Let me know the results...
Best regards,
Manfred.