This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Swdio/swclk shared with normal GPIO

Hei there! First of all thanks for all the great work here!

My question is:

In my application, the final device will have 4 pogo pins. Two of them are for power, the other two for signal. These signal pins coul be connected at the same time to swdio/swclk for programming and to two normal gpio used later for I2C?

Thanks to everybody

Parents
  • Has anyone tried doing this on a nRF52 832?

    From what i can see the SWD interface is only activated based on its state at a reset event.  So if the MCU starts normally (without SWD activated) it should ignore any signals on the SWD pins?

    Conversely GPIO is tri-state at reset so that should not effect programming using SWD?

Reply
  • Has anyone tried doing this on a nRF52 832?

    From what i can see the SWD interface is only activated based on its state at a reset event.  So if the MCU starts normally (without SWD activated) it should ignore any signals on the SWD pins?

    Conversely GPIO is tri-state at reset so that should not effect programming using SWD?

Children
  • Where do you see that? The SWD interface can be enabled at any point, also without resetting the device ("attach to running target"). In other words, you risk activating the debug interface if the SWD interface and GPIO's are connected and there is activity on the GPIO pins.

Related