2026-04-27 11:03 PM
Hi,
I am working with a custom board using an STM32N657X0H3Q and cannot for the life of me bring about a reset via the NRST pin.
I have tried applying the workarounds from errata sheet ES0620 - Rev 3, sections 2.2.19 and 2.2.23, but my device still just hangs when any reset is attempted and needs a power cycle to recover.
In our setup:
Since it runs from AXISRAM1 which is where the errata recommends to place the First power-on reset flag, I instead decided to set the CORE_RESET_TYPE bit in the SYSCFG_CM55RSTCR register before each reset (in addition to resetting the clock switch control bitfields to their defaults).
Does this type of setup have any implications regarding using the SYSRESETREQ bit to generate a software reset?
Thank you
/ Silvia
2026-04-28 5:49 AM
Hello @silvia_b
If you apply workaround 2.2.19 from ES0620 Rev. 3 and if yout want to change the CORE_RESET_TYPE bit in the SYSCFG_CM55RSTCR register, you must enable the SYSCFG clock. This is mandatory for the proposed workaround.
Bit 0 – SYSCFGEN: SYSCFG enable bit in the RCC_APB4HENR register first.
/* Enable SYSCFG Clock */
__HAL_RCC_SYSCFG_CLK_ENABLE()
Then apply the workaround.
if (*init_p != 0x11223344) // First power-on reset is detected
{
*init_p = 0x11223344; // Change init_p variable to a known value
SYSCFG->CM55RSTCR |= 1; // Set power-on reset from NRST pin
__ISB(); // Instruction Synchronization Barrier
__DSB(); // Data Synchronization Barrier
NVIC_SystemReset(); // Generate a system reset
}
Note: This will added in the next ES0620 revision.
Best regards,
Romain,
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-04-29 12:41 AM
Hello Romain,
Thank you for that info :)
Sadly, adding that call does not seem to help in my case. My device still just hangs.
Could my issue have something to do with this note from workaround 2.2.23?:
"To successfully switch from one clock signal to another, ensure that both clock signals are present at their clock
switch inputs before updating the control bitfield value to reflect the new clock switch state."
I wasn't quite sure how exactly to ensure this
/ Silvia
2026-04-29 1:21 AM
Hello @silvia_b
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.