Hello,
When HSE_ERR_GENERAL is set, it means that HSE was reset and is kept in reset. This is why HSE_STATUS_INIT_OK = 0.
If SYS-IMG in RAM and NVM are identical and the one in RAM is verified successfully, I suspect the problem may be related to data alignment in Flash.
- make sure SYS-IMG is aligned to the sector size in Flash (0x1000)
Please do not post security questions in public community.
For such purpose we have support tickets at NXP.com
Best regards,
Peter