>>I called the qspi.c & .h and added an MPU at the @0x90000000, added the BSP into QSPI_init()
Ok, but that is all C side implementation code.
The error looks to be linker, or downstream the code converting it to a .BIN file (objcopy). Uncheck "Make .BIN" or whatever the IDE option is there.
Perhaps you can avoid generating a .BIN as it will be huge, try creating a .HEX instead, as this can be sparse (holes between different memory regions)
>>I copy the code from a file that was generated by TouchGFX, when I build the other one it works but mine doesn’t work, this is weird!
Review the project meta-data, describing the link/build options, and how they differ. Find an example project using QSPI that works.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..