I have made a custom board for a TouchGFX application. I made an external loader, but the QSPI flash memory is not working properly. Initially I did a test on QSPI flash and I could write and read data from it. I can read and erase the Qspi with CubeProgrammer. I modified the Linker script to add QSPI and specify memory region for ExtFlashSection, TextFlashSection, FontFlashSection in CubeIDE, but I get a hardfualt error.
Initialization
During the debugging I figured hard fault error happens when I get to "tick();" inside "virtual void backPorchExited()". This error does not happen when I do not modify the linker script file for adding external qspi flash. I am still codeing in the super loop mode and am not using Free RTOS yet. Does anyone know what could be the issue?