Hello, @NancyW
Thanks for the reply.
As what I have mentioned, there is no on-chip flash on the S32G, the BootROM will fetch applications from external NVM and load it to the SRAM to run, it can not directly program Qflash, so the App data can not be moved to Qflash directly. it is part reason that there are no debug_flash examples.
Theoretically, the debug_flash may be implemented by enabling XIP and some more modification on the existing code, but there are not examples nor document related to XIP on S32G, I suggest running/debugging the applications in SRAM.
Apologize for your inconvenience.
BR
Chenyin