This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can a code error prevent connection via SWD?

Is it possible that a crash in code can prevent connection by SWD to an nRF51822?

As I had an instance this morning, where after uploading, some code to a smart watch, I could no longer connect via SWD, and had to disconnect and reconnect the power in order to reset the nRF51822 (the smart watch doesn't have an easily accessible reset connection)

I had tried disconnecting the SWD pins and reconnecting, and also unplugging the USB to the JLink, but neither of these actions seemed to allow connection.

Perhaps I should have tried pulling up the SWDIO pin a few times.

Related