A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

Design a debug interface for Arduino MKR WIFI 1010

I'm a TA at university, and for the next years students in microcontroller, I will design a debug interface for the Arduino MKR WIFI 1010. The 6 pads on the back is the debug interface as shown in ...
0
votes
0answers
27 views

Why should one ever have to perform Connect Under Reset on STM32?

As in the title - why does it happen and why does it seem pretty random that sometimes the debugger losts the connection to MCU and a CUR must be performed? Is it because SWD pins get blocked somehow ...
0
votes
0answers
21 views

Unable to program and debug ST BlueNRG-M2SA Bluetooth module

I would like to ask you for help with programming and debugging the BlueNRG-M2SA module. I am just not able to get started and successfully connect to the module using ST-Link v2 over SWD. Neither ...
0
votes
0answers
28 views

How to configure an STM32 development board (MB1355C) to program external devices?

I have an STM32WB55 nucleo pack comprising a main board (MB1355C) and a USB dongle (MB1293C). I am able to program the main ...
0
votes
1answer
102 views

SWD on self-made STM32L433 board - “Error: No STM32 target found!”

I made my first PCB with an STM32L433 and I have it working via dfu-util to program it. But now I want to debug the code I write for it so I was looking into SWD, ...
0
votes
1answer
29 views

Flash programming for a custom design with SAME70

How can I add flash programming capabilities to a custom-design board witg the SAME70 or SAMV71? For example, with the UC3-A3 (AVR32), I just expose TDI, TDO, TCK, TMS, RESET, GND/VDD, and voila: I ...
1
vote
1answer
66 views

Can't get Flyswatter2 probe to work with OpenOCD

I've got a Flyswatter2 flash/debug probe from the company Tin Can Tools (see https://www.tincantools.com/product/flyswatter2). Unfortunately, I can't get it to work with OpenOCD. Below is a detailed ...
0
votes
0answers
70 views

Slow Adapter Speed on SAMD chips with FT2232H and FT232H

I have been using a FT223H breakout board from Adafruit along with openocd as a cheap SWD programmer for my ATSAMD21 projects both on breadboard as well as final products. It had an odd issue where ...
0
votes
2answers
183 views

DAPLink firmware doesn't operate with OpenOCD

  Why this is not a duplicate Some people seem to think this question is a duplicate, but there is an important difference: The How to update the SWDAP firmware? question is all about how to ...
0
votes
1answer
74 views

Mystery bug while programming Atmel micro

I'm programming an ATSAME51J20 micro on a custom board with a J-link Plus compact programmer using the SWD protocol. It is successful for small programs, but fails more frequently for larger programs. ...
0
votes
2answers
304 views

Where does the SWD header in this schematic connect to the microcontroller?

Edit: better quality schematic I'm designing a PCB that includes the STM32f103C8T6 and I want to program it via SWD (with the ST-Link v2 USB connector). I'm using the Blue Pill dev board schematic (...
1
vote
2answers
70 views

How can I run an STM32L with an unpowered ST-Link connected?

I have an STM32L476RG on a custom board that I have to leave connected to an external ST-Link/V2 so that I can reprogram it without accessing the hardware. I'm also forced to do this via a USB hub due ...
0
votes
0answers
84 views

Openocd FTDI “Error: DP initialisation failed”, …missing some finetuning?

I am trying to connect CEC1702 (ARM Cortex M4F) to SWD port of FT2232H. My adapter script: ...
1
vote
1answer
146 views

Correct wiring of Cortex-M 10-pin Debug Connector

The ARM Cortex-M 10-pin debug connector has five interesting signals, in the original PDF they're named: SWDIO / TMS SWDCLK / TCK SWO / TDO NC / TDI nRESET For MCUs which only support SWD and which ...
0
votes
1answer
38 views

Do I have to do anything special if I want to connect to a chip with SWD and SWDIO and nRESET are on the same pin? [duplicate]

I want to wire a MDBT40-256RV3 to a SWD programmer and on the programmer nRESET and SWDIO are on separate pins but on this chip they share the same pin, so how should I wire that?
0
votes
1answer
60 views

Is it possible to implement a serial console via GDB?

Is it possible to send debugging messages from MCU to PC over SWD via GDB without interrupting the running code (ie. without using breakpoints), like we could do via UART of MCU by sacrificing 2 UART ...
0
votes
0answers
65 views

Cortex SWD pins disabled

I am trying to flash an Ambiq Apollo via SWD. The problem is that my debugger is unable to connect to the board. Initially, i though that the SWD pins would simply be remapped by software on the MCU....
0
votes
0answers
29 views

Program execution in debug mode

I am interfacing an analog front end through SPI with an ARM microcontroller. When the software is running in debug mode (Keil v5), proper acquisition is made from a generated sin wave. Out of debug ...
1
vote
1answer
425 views

BOOT0 vs BOOT1 circuit design in STM32f103 (ST-LINK)

I have a question about designing st-link v2. According to the schematics provided by st.com Please help me in analyzing this schematic. Why boot0 was pulldown with a 100k resistor but connected boot1 ...
1
vote
2answers
431 views

SAMD21 - How do I write to NVM fuses?

I'm trying to program the ATSAMD21G18 on Adafruit Feather M0 and over SWD Using a Segger J-Link EDU Nano. When I try to download the program to the chip through Atmel Studio it fails verification at ...
1
vote
0answers
53 views

OpenOCD flash writing failure with STM32L071C8 MCU

I have designed custom-made PCB with STM32L071C8 MCU. I'm using OpenOCD 'master' branch and SWD interface via FT2232H to debug the MCU. I successfully did some RAM reading and Flash writing, erasing ...
0
votes
1answer
232 views

When using SWD interface, is the reset pin necessary? [duplicate]

When using the SWD interface, is the reset pin is necessary? In JTAG, there are 5 pins TCK, TMS, TDO, TDI and RST but usually SWD is a 2 wire interface. So I am confused about this.
0
votes
0answers
44 views

Change SWD pin Back to SWD mode at run time in STM32F030F4

Im using PA_14 (SWCLK) as Output mode in stm32f030f4 microcontroller. I change state of this pin to output mode for a buzzer that is not in service at all time. At the end of the buzzer function I ...
2
votes
1answer
190 views

Can I leave SWO/TDO and TDI of J-Link floating?

I'm designing a board with cortex-m4f having only SWDIO and SWCLK. I'm drawing schematics for J-Link's 9-pin JTAG/SWD connector, and I wonder if I can leave the SWO/TDO and TDI pins floating. J-Link'...
2
votes
0answers
83 views

Weird SWD debug port behaviour

Today I have started to encounter strange problems with SWD debugging. The debug only works if I keep my finger on the SWD pins. To be more interesting I have the same problem with the boards I was ...
0
votes
1answer
99 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
50 views

Segger J-Link Supply Adapter

I have a microcontroller powered at 1.8V and I break out V_target, SWD, SWCLK, ...
1
vote
0answers
183 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
534 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
57 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)...
12
votes
0answers
456 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 accomplish this ...
0
votes
1answer
51 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
569 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
273 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
63 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 ...
1
vote
1answer
380 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: ...
5
votes
2answers
1k 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
65 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
155 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
165 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 ...
1
vote
1answer
972 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
197 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
2k 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
605 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
674 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
2k 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
238 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
2k 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
2k 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. ...
3
votes
1answer
2k 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 ...