In my case, I am working with i.MX RT1010, I build the custom board with same MCU and SPI Flash IC on the MIMXRT1010 EVK.
I was not able to write the code into Flash IC because of the QE bit, so I enabled it with your suggested code as below. I also have to run it from RAM by tick on "Link Application to Ram"


Now I can download the code into Flash with MCU Falsh tool. The code runs, (LED is blinking) but somehow I can get it run in debug mode. MCUXpresso shows msg:
Break at address "0x20ea90" with no debug information available, or outside of program code.
Do you have any idea? Feel free to help
Thank you.