Difference Between Pin Reset and Software Reset | Post Pin Reset SMP Handler Doesn't Work

I have a custom SMP handler that uses an SPI transport. If I use the pin reset to reset the module after programming sometimes the module hangs when calling that handler. If I use the software reset via the nrf connect programming tool or `nrfjprog --reset` it works consistently. Any idea what could be causing this discrepancy?

zephyr: 2.7.0

nrf sdk: 2.7.0

Parents
  • Hi,

     

    Softreset vs. pulling the nRESET pin will have a difference in timing in how the system boots up.

    If you see issues with stability when using pinreset, it points to a firmware-wise timing issue when booting up. Have you tried to enter debug mode (attach to a running target) and checked where it is stuck? It could be a external factor, for instance a sensor, in which it has problems initialising in this corner.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Softreset vs. pulling the nRESET pin will have a difference in timing in how the system boots up.

    If you see issues with stability when using pinreset, it points to a firmware-wise timing issue when booting up. Have you tried to enter debug mode (attach to a running target) and checked where it is stuck? It could be a external factor, for instance a sensor, in which it has problems initialising in this corner.

     

    Kind regards,

    Håkon

Children
No Data
Related