S32K3 Low-Power debug (handshaking)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K3 Low-Power debug (handshaking)

485 Views
JakaJ
Contributor I

Hi, I would like to establish handshaking before the SoC goes to standby mode with our iSystem debug tool. I managed to put the chip into standby mode without handshaking and in that time the debug connection is lost, since the debug module goes to standby mode too, all that is expected.

But now I would like to do handshaking before Standby entry, but after setting the MDMAPWIREN[LWPWREN] bit to 1, something prevents chip to goes into standby mode, instead only goes to sleep (when the last step from standby entry is done - calling "wfi" instruction). I can confirm this with reading MODE_STAT[PREV_MODE] that stays at 0, but expecting 1, this would indicate standby mode.

The interrupt wakes the chip in both cases as it should and can then run/step the code normally.

Additional problem occur with the case where handshake is enabled (MDMAPWIREN[LWPWREN] == 1). In that case when doing reset (physically pull reset line to low or writing to MDMAPCTL for generating the reset) after the SoC get interrupt and is awaken from sleep, something pulls reset line to low and nothing can release it. 

Thanks and best regards,
Jaka

0 Kudos
Reply
0 Replies