Why does ST-Link think the module is connected through SWD instead of JTAG?

Unsolved
josh's picture
josh
Junior(0)

I'm using the module (not the IoT starter kit) and I connected the JTAG ports to a ST-Link V2 debugger. However, the debugger thinks that it's using SWD interface instead of JTAG (see screenshots http://imgur.com/a/nRe57). And another way to prove it is that OpenOCD doesn't work with the stm32f4x.cfg under the OpenOCD folder, which only specifies JTAG. Instead, it works with the scripts/target/stm32f4x.cfg file which specifies both JTAG and SWD. How come?