Hi,
Regarding the system reset during the ESD test, I suppose that the system reset can not been generated automatically, the system reset code must have been executed somewhere.
For example, the ESD triggers a hardfault interrupt, the core executes ISR of exception, the ISR includes the system reset code.
Pls check all the ISR
But this is my guess.
Hope it can provide a clue
BR
XiangJun Rong
__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void)
{
__DSB(); /* Ensure all outstanding memory accesses included
buffered write are completed before reset */
SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
(SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */
__DSB(); /* Ensure completion of memory access */
for(;;) /* wait until reset */
{
__NOP();
}
}
Hope it can help you
BR
XiangJun Rong