Hi @Lukaz
Regarding, Is there a way to maybe set everything back to a factory setting (I guess that would be the boot loader), or any other suggestion that might help?
Currently I am thinking on a mass erase. Did you burned any fuse?
To troubleshoot:
Where you running a SRAM flashloader, in order to let the RT1064 communicate using BLHOST commands? Since the serial downloader of the MCU can only process sdphost commands.
If the above is correct, this would mean that you are able to load applications that execute in SRAM. Anyway, could you confirm that you can run SRAM applications? It seems you are having a problem write flash images in your FlexSPI NOR memory.
Following the above idea, to narrow down the issue:
What if you try program an SRAM application that reads the FlexSPI memory from application? This could be easy if you can test the default FlexSPI nor examples from the SDK ( without adapt them to work with your NOR flash LUT for example ) and completely link them to execute from SRAM.
Else, can you tell me more about you NOR flash HW settings, and fuse settings (if any)?
Best regards,
Diego