Hi @yalin
Thanks a lot for being so patient. I regret for not being able to answer you before.
Regarding the octal flash you want to program ( S28HS512T ), my teammate from China is still working on that one, and he will add S28H support in the below github link once he get samples from CYPRESS FAE.
https://github.com/JayHeng/RT-MFB
In the meantime, you could try to base on these examples for different tests from different flash memories, as Winbond/MXIC/GigaDevice/ISSI/Micron/Adesto, where you can find all tested parts in:
https://github.com/JayHeng/RT-MFB/blob/main/boards/mimxrt/mfb_fw/src/mfb_nor_flash.h
Now, it supports RT500/1010/1060/1170/1180.
Hope that helps, and please let me know if you need something additional.
Best Regards.
Pablo Avalos.