Hello,
Is there a way to erase and not change the APP while debugging.
Not sure what you mean erase and not change APP. like erase only part of memory?
Or erase the whole chip via IDE? This can be achieved by programming blank binary.
Otherwise you will need to use different tools, like PEMirco IDE which offer possibility. Or different advanced debuggers which has it in IDE.
In S32DS you just cant, if the image is identical.
Best regards,
Peter