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
  • I have one question regarding this topic.

    is it possible to use the SWDIO and SWDCLK pins for programming just after power upin the first second for excample? After that the debug interface cant be started anymore. I dont want to use them as gpios or anything else. I just don't want the debug interface or reset to be started if there are some voltage levels at those pins...

    do you know what I mean? Thanks in advance!

  • There is no support for this functionality in the nRF5 devices. There was a issue on the nRF51 where noise on the SWD interface could inadvertently trigger debug mode if you had long PCB traces and no or weak pull resistor. This is not a problem on the nRF52 though, and I have not seen any reports of accidentally activating the debug interface on a nRF52 series devices.

  • Thanks for your quick answer! 

    SWDIO and SWDCLK are connted with other gpios which are used for some bus communication. There is a 0 Ohm resistor in between which I remove if i want to debug. But later on they will stay so that I'm able to reprogramm the device with the help of those two pins. Because of that I need the SWDIO and SWDCLK functionallity disabled by software and enabled after power up - this won't be possible?

  • ok, thats too bad! 

    thanks for your help!

  • Hi Einar,
    one more question: Do you know the switching voltage threshold for SWDIO and SWDCLK? So that there is a little bit voltage at those pins but it does not make any reset or start the debug mode?

    Thanks in advantage!  

Reply Children
Related