Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [swd]

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

0
votes
1answer
26 views

Interchangeability of SWD programmers

I am a newbie when it comes to Cypress cortex M0 and ARM chips in general. The chip I am using supports SWD. I only know the basic of SWD like IO pins required for it. Does ARM support ...
1
vote
1answer
22 views

Segger J-Link Supply Adapter

I have a microcontroller powered at 1.8V and I break out V_target, SWD, SWCLK, ...
0
votes
0answers
34 views

OpenOCD FT2232H as SWD debugger with STM32L0 mcu

I would like to debug my MCU with OpenOCD. I run this command: openocd -f interface/ftdi/minimodule-swd.cfg -f target/stm32l0.cfg and then I get this prints from ...
0
votes
1answer
34 views

SWD vs ST-LINK on STM32F4 Discovery board

Why do we have 2 connectors namely CN2 (SWD) and CN3 (ST-LINK) on STM32F407 Discovery board? Are not they the same thing?
1
vote
0answers
28 views

nRF52 Bootloader over ESP12E

I'm using nRF52 DK with 14.2.0 SDK. I created a LED blink project for testing and extract its HEX file. I uploaded the program to the nRF52 over USB (J-Link-Keil IDE) and the HEX file over ESP12E (SWD)...
7
votes
0answers
107 views

Switch from JTAG to SWD with bitbang sequence on STM32F103VB

I am trying to switch from JTAG to SWD without any external devices. Why? Because I would like to use the SWO pin to send a stream of logging information to another device. To do accomplish this, ...
0
votes
1answer
18 views

Failing to program a third party NRF52832 board with nrf52DK through SWD connector after first time

I'm trying to flash a simple blincky solution into my 3rd party board through a standard SWD programming header from the debug out port of my PCA10040 NRF52832 DK with my Segger embedded studio IDE. ...
1
vote
2answers
88 views

JTAG, SWD, EDBG, ICSP, ISP terms

JTAG, SWD, EDBG, ICSP, ISP . Can someone simply explain their differences. For example if EDBG debugger can ALSO program flash, why Arduino boards have both ISP and EDBG ? http://www.armlearning....
1
vote
1answer
135 views

Stm32f103 blue pill and stlink power

When two or more of these modules have their 5v pins hooked up to a common 5v rail (power off) and I connect an 4-pin SWD st-link to the programming pins of one, I'm finding that all modules (and ...
1
vote
1answer
46 views

SAMD09 Debug port connection issue

I have recently built a board using an ATSAMD09D14A-MUT, today it came the time to test it, however problems arose in a strangely annoying manner, when trying to connect to the device i get error 4109 ...
0
votes
1answer
131 views

STM32F0 - interrupt/breakpoint not working on certain hardware

OK I realise this sounds like a dumb/noob question but please do read it through before calling me an idiot - at this stage I'll gladly take it if you can spot where I've gone wrong! The scenario: ...
2
votes
2answers
302 views

SWDAP vs CMSIS-DAP vs DAPLink

EDIT : I got the basic questions (for example, what is CMSIS-DAP?) answered by user @Nipo. Based on that, I restructured my post in a more logical way. Hopefully ...
0
votes
1answer
40 views

Could STM32 Discovery boards debug STM8 chip?

I know that STM32 discovery boards could debug another STM32 chip. But could it debug STM8 chip too? Is STM8's debugging interface compatible with SWD?
1
vote
1answer
80 views

SWD AHB-AP access gives ACK_FAULT

When attempting to debug a STM32L471RGT6 chip over SWD, I encounter an ACK_FAULT whenever sending an AP request to halt the core. I've implemented the following sequences which all work correctly, ...
2
votes
1answer
86 views

Segger ATSAME54N20 SWD error

INTRODUCTION I'm trying to program a custom board I designed, featuring a SAME54N20 MCU. My programming probe is a J-Link EDU (version 10.1), connected to my board using a Olimex adapter with a 10 ...
0
votes
0answers
116 views

STM32F723 custom board debugging/programming issue

I am working on custom board design for STM32F723ZET6 MCU. Here is part of schematic. All the VDD/VDDA/VBAT pins are connected to 100nF bypass capacitors and few 4.7uF capacitors between VDD and GND....
1
vote
1answer
255 views

ST-Link V2 Programming STG-850 PLC — STM32

I'm trying to connect to a Barth STG-850 PLC for the first time and am using the ST-Link V2 programmer (not the ISOL version) and have been unsuccessful so far. The crux of my problem likely stems ...
0
votes
0answers
127 views

STM32F0 SWD not working VDD >2.9V

I made a board with a STM32F031 and connected it to the ST-Link integrated into a STM32F4-DISCOVERY. To this point I was able to figure out, that the SWD connection works, if I supply a voltage of <...
7
votes
2answers
1k views

STM32L MCU - SWD pin on board not matching processor pinout

I was doing my hardware hack project on an air quality monitoring device which uses STM32L476 processor. My only experiences with hardware hacking are IPcams or ...
1
vote
1answer
298 views

Is my SAMD21 bricked due to a wrong clock configuration from software?

I use a SAMD21 without an external crystal, by using its internal 32kHz oscillator and transform it with DFLL to 48 MHz. The processor wakes up normally with GCLK0 on 1 MHz, so I first activate GCLK1 ...
2
votes
1answer
284 views

SWD optoisolation problem

I have designed the following optoisolator for SWD interfacing with an STM32 device and J-LINK programmer: This is the generic schematic: And this is a single optoisolator schematic: I am not able ...
0
votes
1answer
613 views

Is it possible to have 5V power and VTREF in SWD programmer for ARM?

I'm trying to use the Segger JLINK edu mini( https://www.segger.com/products/debug-probes/j-link/models/j-link-edu-mini/ ) to program a board that is also powered by USB. It has a pin out shown on the ...
0
votes
1answer
176 views

Serial Wire Debug (SWD) Enumeration

When debugging or accessing hardware firmware, JTAG and SWD can be really helpful to the developer, engineer or reverse engineer. When looking at an unknown board/device tools such as JTAGEnum or ...
0
votes
3answers
1k views

keil v5 STM32F4 - Cannot access memory

I am using an STM32F407VGT board with an STLINK V2 programmer in keil IDE. I have downloaded to the board a very simple code: ...
1
vote
2answers
1k views

Is SWD with an FTDI chip a universal programmer solution?

I have searched high and low (in fact I have spent the recent months on and off trying to find an answer). Maybe I'm not asking the right questions, or am staring the answer in the face, I'm not sure. ...
2
votes
1answer
1k views

Programming a new STM32 chip

I am new to STM32 and recently trying to make a custom board with STM32F103RB. But I am a bit confused by the available methods to program the chip. Let's say I use ST-Link via SWD, does it mean that ...
1
vote
2answers
4k views

STM32 & ST-LINK - SWD connector not working

I am using an ST-LINK/V2 debugger (Firmware version V2.J27.S6, up-to-date) to program my STM32F407G discovery board. So far, I have been using USB to flash the MCU, using the STM32 ST-LINK Utility v4....
2
votes
1answer
935 views

Can i connect something else to programming pins in STM32 (SWD)?

As in the topic: Can i connect something else to programming pins in STM32 (SWD)? For example a single LED with current limiting resistor connected to SWDIO and SWCLK pins. Will this load affect ...
2
votes
1answer
896 views

New debug connectors for ARM

There is a big confusion in my head about debug connectors for ARM microprocessors. If I just take a look at this documentation there are a couple of JTAG connectors mentioned: Cortex 10-pin JTAG/...
0
votes
0answers
530 views

Problems connecting ST-Link V2 and STM32L4 discovery board

I'm unable to connect to my STM32L4 Discovery board using an ST-Link. I've removed jumpers from CN3, connected the cables correctly but the utility tool won't detect anything... PIN1 -> 3V3 ...
2
votes
3answers
479 views

Unable to program ATSAML21 PCB via SWD - Problem with connection?

Well, I'm officially stumped (and so are several other engineers)... I have a custom PCB running an Atmel ATSAML21E18B microcontroller, which I'm trying to program through an Atmel ICE debugger / ...
0
votes
1answer
1k views

PCB target voltage reading too low on Atmel ICE Programmer

I've just had my first batch of PCB prototypes delivered from the manufacturer, and when I went to program them, the target voltage is reading too low. The device is based around an Atmel SAM L21 MCU, ...
2
votes
2answers
5k views

Programming STM32: JTAG/SWD vs bootloader

I'm making a PCB for a personal project using the STM32L031K6T7 microcontroller. It looks like this uC has a bootloader that can be used to reprogram the flash program mem through UART or SPI. It also ...
3
votes
3answers
2k views

STM32F303K8T6 custom board

I try to make a custom board for the STM32F303K8T6 and I am not sure if I do it right. Actually the design is oriented on the STM32F3Discovery. I will not run time critical applications so that I don'...
8
votes
1answer
1k views

Cannot Program a Custom STM32 Board

I've designed a simple STM32 board. Below are the schematic and pcb layout pictures: Schematic: PCB layout: PCB layout with VDD hightlighted: PCB layout with GND highlighted: Only the parts of ...
-2
votes
2answers
518 views

4-Pin programming interface

Could anybody give me a hint on how to wire a proprietary device, that uses a Nordic NRF51822 chip and only provides the following pins: {3.3V, GND, RST, CLK} to a programmer. I am pretty sure it is ...
1
vote
0answers
158 views

Flashing Atmel SAMD20G18 with OpenOCD and Segger J-Link Lite only succeeds every second try

I'm using the following commands to flash an Atmel SAMD20G18 using OpenOCD (0.9.0-00073-gdd34716) and a Segger J-Link Lite using SWD: ...
-1
votes
1answer
254 views

Parallel programming with SWD pinouts [closed]

I need to program 8 boards with SWD interface device but I have one programmer with 4 channels. Is it sufficient if I connect SWD lines in parallel permanently to all 8 boards and just toggle the ...
8
votes
3answers
5k views

Can I use ST-Link programmer for non-ST chips?

Can I program all kinds of SWD-programmable chips (ARM-MCUs) with ST-Link?
0
votes
1answer
403 views

SWD Signals multiplexing

I design a pcb with STM's STM32F4 microcontroller and i'm going to use the SWD interface for programming. My Question is: Could those pins to shared (after programming) with other signals on pcb? ...
1
vote
1answer
367 views

AT89S8253 and Keil ULINK2 debugger connection?

I'm trying to connect AT89S8253 with Keil ULINK2. But the documentation is nil about 8051 controllers. As per the web, the pin connection is this. ref: http://www2.keil.com/coresight/coresight-...
0
votes
1answer
321 views

Atmel SWD. Enabling normal GPIO function on the SWO pin

I'm trying to make a project using the ATSAM4LS2A microcontroller (Cortex M4), and i'm using the AtmelICE debugger. The thing is the pinout for the SWD mode also has, beside the SWCLK and SWDIO pins, ...
1
vote
1answer
3k 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 ...
2
votes
2answers
776 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?
-1
votes
1answer
1k 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 ...
2
votes
1answer
1k 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
528 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
697 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 ...
14
votes
2answers
41k 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
2k 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 ...