Serial Wire Debug (SWD) is a 2-pin electrical alternative JTAG interface that shares a common functional protocol with JTAG for processor debug.

learn more… | top users | synonyms

0
votes
0answers
84 views

STM32 prototype unable to connect to PC using ST-Link/V2 SWD

Circuit Diagram Background & What I have tried. I have wired wrapped this setup myself using a fresh STM32F411RC MCU from digikey (on a proto-advantage LQFP-64 to DIP-64 breakout board). I've ...
1
vote
2answers
50 views

Maximum length of SWD signal lines?

What is the maximum length of SWD signal lines / ribbon cables? Any idea what the physical layer of SWD is?
-2
votes
1answer
71 views

How to program an ARM microcontroller using JTAG? [duplicate]

The JTAG interface is pretty new to me. I know most of nowadays ARM mcu's are programmed via JTAG. However what programming cable is usually used? I found this one, and I've seen some people use it in ...
0
votes
0answers
75 views

Dump Flash and SRAM from STM32F103 RBT6 via J-Link Edu

I'm doing some analysis (trying to recover data) from a STM32F103 RBT6 chip I pulled off a personal device. I want to see what kind of residual data is on the chip. In doing this I am trying to dump ...
1
vote
1answer
56 views

Using ST-link for 1.8V target voltage

I'd like to program a LIS331EB which is an ST product with an integrated cortex-M0 core. ST says it can be programmed with ST-link even though it is neither an STM32 nor STM8. The lis331eb's core and ...
1
vote
1answer
125 views

ST-Link debugger/programmer failed to find STM32L152 MCU on designed PCB

I'm using STM32L152 MCU on my own project. The project was started on a STM32 Discrovery board. Now I would like to have my own board by designing a PCB with the MCU. An external ST-Linkv2 will be ...
2
votes
1answer
163 views

Hand-made interface to SWD to write flash of ARM chip

I'm interested in creating simple interface to SWD to be able to write flash memory of ARM chips. I.e. to create a make-shift programming device - more for sake of exercise. I started reading the ...
6
votes
2answers
2k views

How to use external ST-Link to debug/program STM32F103 MCU?

I'm using STM32F103 MCU for my own project and want to use the ST-Link of STM32F411 Nucleo board for external debugging / programming purposes. I've set the CN2 jumpers OFF and my actual question is ...
0
votes
4answers
136 views

JTAG connector - large pitch to smaller one

I have a Segger's Jlink EDU probe which I used for debugging and programming various ARM based MCU's. But now I have to work with this LPC4088 QS board which has a smaller pitch 20-pin JTAG connector ...
0
votes
1answer
68 views

Will I have better debugging performance by using an external debugger?

I am currently using a Tiva C Series LaunchPad evaluation kit (TM4C123G) and have started experimenting with Keil's RTX RTOS. I use the on-board Stellaris ICDI debugger for my debugging purposes but ...
1
vote
1answer
171 views

Sharing ARM SWD pins with normal pin function (on Atmel SAM D09 D10 D11)

The Atmel SAM D09 (an ARM Cortex M0+ MCU) can enable normal pin functions on the pins that are normally used for programming (SWD). But in doing so I presume that debugging will become impossible ...
0
votes
1answer
79 views

Using bi-directional logic level shifter for SWD.

I have a SWD emulator running on a cypress FX3 board where two of its gpio pins emulates SWDCLK and SWDIO pins. The board runs at 1.8V. These pins have to be connected to target - spansion FM4 which ...
0
votes
1answer
204 views

Resolve SWD Communication Failure

I have developed a board with stm32f373VB and I'm trying to test the PCB with ULINK/2 and uVision V4.70.0. I got a SWD Communication Failure, and I can't program the uC. And here is the layout: ...
2
votes
1answer
3k views

How to Use an External ST-Link/V2 with the STM32F4 Discovery Board

I have a STM32F4 Discovery board and a ST-Link/V2 programmer. I want to use my own ST-Link (not the embedded one) for programming and debugging the board. How should I connect the external ST-Link ...
1
vote
1answer
784 views

How do I get a chinese nRF51822 development kit running examples with an ST-link, Keil uVision?

I've been working at this for days with not much information out there to assist me in fixing my issues, so I figured I'd make a post here. I'm using a cheap chinese nRF51822 module and ...
1
vote
1answer
445 views

Multiple errors when writing image file with OpenOCD and Stlink v2 to NRF51822

I want to flash a firmware on my nrf51822 module I was trying an example from Nordic, I concatenated the bin file with the s110 file and it worked fine. Now, when I went ahead to flash the bin file, ...
2
votes
2answers
572 views

STM32 SWD Issue

Greeting, I'm facing an issue while trying to program STM32L151C6 using STM32F4 Discovery board as programmer. What I did are the following: I removed CN3 jumpers from STM32F4 Discovery board page ...
1
vote
2answers
611 views

ARM Cortex reset button and debug interface (SWD)

I am designing a circuit using the EFM32ZG222 MCU (an ARM Cortex M0+) and I need to use the SWD interface (with a 10-pin Cortex Debug Connector) along with a reset button. I found a schematic that ...
2
votes
1answer
766 views

Unable to program Freescale Kinetis KL26 microcontroller over SWD

I just assembled a board that I have created that basically acts as a breakout board for a MKL26Z32VFM4. Today, I am trying to get it to communicate over SWD so I can program the initial bootloader. ...
2
votes
1answer
247 views

How can I design my PCB in a way I can debug the Atmel microcontroller on board?

We are designing a board around Atmel SAM4E microcontroller, and use Atmel-ICE for debugging/programming. To save space, we would like to avoid including the whole ICE connector. Which are the minimum ...
6
votes
1answer
3k views

How do I print debug messages to gdb console with STM32 discovery board using GDB, OpenOCD and arm-none-eabi-gcc?

I'm programming an STM32 Cortex M0 discovery board (32F0308DISCOVERY) using OpenOCD, arm-none-eabi-gcc, and gdb. I was wondering if there is any straightforward way to log debug messages over SWD. ...
1
vote
3answers
345 views

Can you safely “short circuit” 2 signals when they compete for the same pin to avoid having to use a multiplexer?

I'm developing for a very limited, 8 pin LPC810 microcontroller and have to connect multiple signals on a single pin. Obviously, if there's only 1 output signal on a bus, that should be OK, but what ...
2
votes
1answer
395 views

SWD and i2C hardware layer differences

Both I2C and SWD are two-wire protocols. I wonder what are the main differences of the hardware layer of these protocols and what are the pros/cons of each one? It's also interesting that the maximum ...
1
vote
0answers
1k views

STM32 - two errors in turns during programming

I'm trying to program STM32F107VCT6 via SWD and I'm constantly getting two errors in turns (literally): Error: Connect failed, check config and cable connection ...
1
vote
1answer
976 views

How to daisy chain SWD Debug port

I have multiple mcu's that are configured to communicate with bus topology. I have 10 pins (4 of them is occupied by now) I need to debug (update firmware online, etc) all of these mcu's. I read this ...
1
vote
1answer
284 views

JTAG/SWD Data Logging

I would like to automatically poll and log certain memory locations on the STM32 I'm working with through the j-link debugger I am using to debug the system. Is this possible through the JTAG or SWD ...
3
votes
1answer
434 views

OpenOCD w/ ARM-USB-OCD-H+ARM_JTAG_SWD

Has anyone been able to debug/program using SWD over a Olimex USB-JTAG programmer and the ARM-JTAG-SWD adapter? If so, please share how you did it :) Specifically, I'm looking for what the OpenOCD ...
2
votes
0answers
584 views

Relationship between reset pins and SWD functions (ARM Cortex M0)

On many microcontrollers or other devices without JTAG/SWD functionality, there is a reset pin which when low unconditionally and asynchronously forces everything into a known state. On devices with ...
2
votes
3answers
6k views

Laying out a 10-pin JTAG/SWD connector on a final design

I'm designing a board with an ARM microcontroller on it (LPC1347FBD48) and I want to include a 10 pin jtag/swd connector, as is standard, for in-circuit debugging of my final design. Here is the ...
1
vote
0answers
356 views

JLNINK(SWD)+IAR can not debug stm32: communication error

guys. I am using J-link with SWD interface to debug my STM32F103VCT6 in IAR. I can enter download and debug mode but I can not use "step over" or "stop" function. Once I use one of them I will get ...
8
votes
2answers
10k views

JTAG vs SWD debugging

Skimming through this article I'm just wondering, what are the benefits of SWD debugging over JTAG debugging? I understand SWD uses less wires/pins, takes up less space etc. But how does it play out ...
3
votes
2answers
578 views

Finding an affordable integrated USB MCU [closed]

I'm in the early stages of designing a development board around Cypress Semiconductor's PSoC 3 and 5 range of chips. Much like the Arduino, I'd like the programming experience to be very easy, and ...
2
votes
3answers
855 views

SWD debugging solution

I'm planning to start a project based around a Freescale Cortex-M0+ chip. Apparently the M0+ is SWD only and does not support JTAG. I've been looking around, but I can't find much in the way of SWD ...
1
vote
1answer
316 views

generating a custom half duplex 1 wire serial protocal

I want to use a microcontroller from NXP to generate a SWD (Serial wire debug) serial signal. A SWD signal is a clock and a host to target header, a single cycle wait period, followed by either a host ...
2
votes
2answers
237 views

Debugging STM32LF1xx low-power behavior

Is there any practical way to use a SWD-based debugger such as those made by Segger to debug a program for the STM32LF1xx which uses low-power modes and sets the clock speed very slow? The debugger ...