SWD not working after using ONOFF button or setting SNVS->LPCR TOP on i.MXRT 1064

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

SWD not working after using ONOFF button or setting SNVS->LPCR TOP on i.MXRT 1064

1,283 Views
gabrielharrison
Contributor III

Hi,

We are testing, and would like to use, the PMIC in the i.MXRT 1064 using our own design PCB which has a coin cell battery powering the SNVS.

When we press the ONOFF button for 5 seconds the device turns off as expected however power cycling the main 3v3 supply or using SRC.POR_B reset does not get the device into a state where we can connection the SWD debugger. 

The debugger can see power is present but reports "JTAG test failed - the TDO/SWDIO pin held permanently high."

The only way to restore the MCU is be pressing the ONOFF again.

Is this expected behavior? 

Gabriel

Labels (1)
0 Kudos
6 Replies

1,230 Views
gabrielharrison
Contributor III

Can anyone confirm that,

1. POR_B will not restore the CPU to full power

2. It is correct that the SWD does not work when in SNVS shutdown?

If both these statements are true, what is the correct way regain debug access if the device has used the SNVS->LPCR TOP register to gracefully shutdown?

0 Kudos

1,213 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Gabriel,

It is expected behavior that SWD does not work when in SNVS mode. It is the same behavior as if you disconnect the board while debugging. You will need to restart debug session or attach to a running target after that.

Best regards,

Felipe

0 Kudos

1,170 Views
gabrielharrison
Contributor III

Thank you Felipe and apologies for not replying earlier. I write something which never got posted.

Could you confirm if doing a reset using POR_B from SNVS will return the device to SNVS or full power mode?

Regards,

Gabriel

 

0 Kudos

1,254 Views
gabrielharrison
Contributor III

Hi,

The power cycle was only the 3v3 so SNVS remains powered with the coin cell - thank you for clarifying that.

We would like to use the ONOFF pin full PMIC functionality, and have TEST_MODE tied low.

The reset I tested was using pin M7 POR_B, not the ONOFF pin. Should this bring the chip back to full power?

Thanks,

Gabriel

 

0 Kudos

1,249 Views
tomula
Contributor II

I don't know that for sure but that's something I would expect from battery backup that it will retain its state even after its main power cycles. And in that context I don't believe that POR reset should wake it up.

I would tie down TEST_MODE to ground through pull-down so I can connect it to high when programming and test it with ONOFF user reset.

 

0 Kudos

1,269 Views
tomula
Contributor II

By cycling power you mean SNVS power too? If not then thats why. If you want to do a user reset you have to set TEST_MODE pin high and then you can use ONOFF pin as classic reset pin.

0 Kudos