Regaining debug after reconfiguration of SWD pins

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

Regaining debug after reconfiguration of SWD pins

1,287 Views
AdrianR
NXP Employee
NXP Employee

I just want to share a possible solution in case you have "bricked” an S32KxxxEVB by running a code that reconfigures the debug pins (SWD_CLK, SWD_DIO) to other functions.

All you need is an external probe - P&E Multilink and the P&E Recover utility.

The procedure is the same as described for Kinetis devices in Erich Styger's blog:

https://mcuoneclipse.com/2013/06/16/bricking-and-recovering-frdm-kl25z-boards-reset-swd-clock-and-lo...

Thanks to a customer for pointing to that solution.

(I've not tried it yet, I'll update when checking it on my own board)

Tags (1)
0 Kudos
Reply
2 Replies

929 Views
sinu_isac
Contributor I

Hello,

I am facing the same issue and unfortunately there is no P&E Multilink with me. Is there a way to do the same with Lauterbach debugger? Please share the steps if this is tried out.

Thanks

Sinu

0 Kudos
Reply

929 Views
AdrianR
NXP Employee
NXP Employee

You can do it with other debugger too: Lauterbach, Segger Jlink.

If reset pin is also reconfigured, the point is to do repeated POR (eg. by using a jumper J107, J10), until the debuger gets to hold the core, before your code re-configures the pins.

Steps:

- set a debugger loop to reset and hold

- manually power on reset the board until the debugger gets to hold the core

0 Kudos
Reply