Author Topic: How does a STLINK/V2 know when SWD or Jtag mode can be selected  (Read 1129 times)

0 Members and 1 Guest are viewing this topic.

Offline aa8pa222Topic starter

  • Newbie
  • Posts: 2
  • Country: us
How does a STLINK/V2 know when SWD or Jtag mode can be selected
« on: October 22, 2015, 08:28:57 pm »
I have an eval board that requires a jump to be installed before SWD will work.  I installed the jumper and now both Jtag and SWD work as they should. My question is once I installed the jumper how does the STlink/V2 know that the jumper was installed. The jumper is on the output of an and gate that that has 2 inputs USB_Jlink_TMS and Jlink_TMS, the jumper takes the output of the and gate and goes to Jlink_TMS.  It looks like the jumper goes back to the STlink/V2 connector.  Any ideas will help.
 

Offline stmdude

  • Frequent Contributor
  • **
  • Posts: 479
  • Country: se
Re: How does a STLINK/V2 know when SWD or Jtag mode can be selected
« Reply #1 on: October 23, 2015, 07:39:06 am »
Schematics would be helpful. Since it's an eval-board, they can probably be found online.

Edit: Though, in general, I haven't seen a STLink/V2 (or V1) being able to autodetect JTAG/SWD. I've always had to tell the software which interface I wanted to use.
« Last Edit: October 23, 2015, 07:41:19 am by stmdude »
 

Offline aa8pa222Topic starter

  • Newbie
  • Posts: 2
  • Country: us
Re: How does a STLINK/V2 know when SWD or Jtag mode can be selected
« Reply #2 on: October 23, 2015, 10:43:53 am »
Yes you do select which interface you want to use via the software.  Without the jumper you can only select Jtag. Swd is not available.  Once the jumper is in place both Jtag and swd are now available. Let me ask it a different way. What happens to a digital signal when you add it to itself,  this is what I see the jumper is doing. The output of a 2 input and gate has one of its inputs jlink_tms jumpered to the and gates output. Then this signal is sent to the mcu. I trying to understand what is taking place when and input is added to itself on the output of an and gate. I can see on a scope frequency changes and pulse duration when switching between Jtag and swd. I need to know why this happens when the jumper is installed 


Sent from my iPad using Tapatalk
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf