Hi @ALXY_WANG
once HSE firmware is installed, it's necessary to change programming algorithm for Pemicro debugger.See please attached screenshot. The reason is that HSE FW allocates part of flash which can be accessed exclusively by HSE only. See tables 180, 181 and 182 in the S32K3 reference manual for details. If standard programming algorithm is used, it tries to erase those areas which is not possible after HSE FW installation.
Regards,
Lukas