GCC Optimizations result in application not running
Any time I set any optimization level for GCC my application will not longer start. I can set G++ optimization to anything and it still works fine as long as GCC optimization is set to -O0. This project uses TouchGFX and FreeRTOS.
While in debugger I can step through to where the osKernelStart() and then let it go and it runs fine. If just run out of the gate in the debugger the trace below show failure in touchgfx InitializeView, maybe I need some delay before starting TouchGFX?
Any suggestions as to what I should look at to resolve this?

