Hi @nkarthik
Are you encountering this error only in your custom project? Please try creating a blank S32DS Application Project and check if the same error persists.
What is the current state of the MCU? After a power-on reset, is the previously programmed application still running on the MCU? Additionally, is there an SBC or another device on the board that could be resetting the MCU during programming?
Can you do an attach? By doing this, the debugger will attach to the microcontroller without loading the executable, allowing you to pause and inspect the memory address where the MCU is running.
From your log, I noticed that you selected the nxp_s32k322_1x32x500k_hse_disabled.arp algorithm file. One possibility is that the HSE firmware on your board has been enabled, which could prevent the debugger from erasing the flash area reserved for the HSE firmware. If HSE is enabled, you should select the nxp_s32k322_1x32x456k_hse_enabled.arp algorithm file.
BR, VaneB