Skip to main content

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
1 vote
1 answer
52 views

error in stlink utility

I am having difficulty connecting the ST-LINK/V2 to my microcontroller. An error appears in the ST-LINK utility. I have already verified all the connections, including the decoupling capacitor, all ...
Nidhi Sayanja's user avatar
0 votes
0 answers
46 views

ARM SWD Programming Problems

I am trying to erase a NRF52840 and the erasing fails. This is the relevant schematics: Notice that SWDIO is tied to the unused P1.01 for ease of placement and routing. Similarly SWDCLK is tied to P1....
major4x's user avatar
  • 173
0 votes
1 answer
64 views

STM32 SWD Debug Hangs

I try to debug my PCB, which has STM32G030, with SWD in a 3kHz noisy environment. SWCLK and SWDIO traces have both 22 Ohms series and 10k Ohms pull-up resistors attached to them. As the noise source ...
Semih's user avatar
  • 67
1 vote
2 answers
138 views

How does STM32 know if I'm using SWD or JTAG

My curiosity got the best of me so I'm hoping someone here can help educate me. I'm using a STM32 (STM32F101C8Tx to be precise), which supports both JTAG and SWD. Within STM32CubeIDE I can switch ...
ITMan's user avatar
  • 13
0 votes
0 answers
30 views

Connecting SWD on a same pin as an I/O pin

I'm working on a PCB with a specific number of pins. There are 12 pins on the PCB, used by another device to transfer data and communicate with the chip. I have +3V3, GND, RST, pins for I/O, and an ...
Junior Delaure's user avatar
1 vote
1 answer
85 views

Controlling GPIO pins via SWD interface

I am working at test jig for low-volume production. The purpose is both flashing firmware and testing PCBA with STM32 MCU. I am considering few options for testing PCBA functionality: Testing on &...
plumbum_by's user avatar
0 votes
0 answers
53 views

What hardware/software do I need to connect to SWD on an NXP LPC820 ARM MCU?

I have a Li-po battery pack that I'd like to debug. The on-board BMS has an NXP LPC820 MCU and I've identified the SWD header. My reason for doing this is that one of the 5 cells went bad, which I've ...
scott_b_81's user avatar
0 votes
1 answer
121 views

How can I protect MCU SWD portf from ESD?

I have connected two TVS diodes close to header, and Resistor for limiting the current. Is it enough to protect the ports from ESD or i need to add anything else or correct this schematics?
Atrahasis's user avatar
  • 185
1 vote
0 answers
30 views

ERF32 programming with SWD

I need some help with programming board with EFR32FG22 (Datasheet). I've always used arduinos or esp32/8266, so I'm new to this type of MCU's. I know that I should use SWD pins (SWDIO and SWCLK) which ...
jasiekk's user avatar
  • 11
0 votes
2 answers
174 views

STM32H7 flashing problem

I have been having a problem with my STM32H725IGT custom PCB, because I can't flash it even though i tried almost everything. I have tried flashing from nucleo's programmer and from stlink-v2 clones ...
Synte's user avatar
  • 1
2 votes
1 answer
176 views

SWD Connection to MCU and Appropriate Configuration for Reset Pin

I aim to establish a connection between SWD header and an STM32 MCU on PCB, having identified the relevant pins on MCU (SWO, SWCLK, and SWDIO). I have two inquiries: Is it appropriate to connect ...
Atrahasis's user avatar
  • 185
0 votes
1 answer
104 views

STM32H755ZIT6 STLINK Debug

I've just got new NUCLEO STM32H755ZIT6 board with STLinkV3 on it. I just want to debug simple empty STMCube project and after configuring board According it's Please look in the UM2408 User manual (...
Alatriste's user avatar
  • 160
1 vote
2 answers
316 views

Connecting to STM32 via SWD, Reverse Engineering

I have been reverse engineering my electric longboard remote for the past couple days and have been attempting to get a ST Link V2 connecting to it via some test pads on the PCB I found. I know the ...
Conner Replogle's user avatar
0 votes
0 answers
25 views

Powering NX3DV42 switch with 5 V?

I plan to use the NX3DV42 switch from NXP to switch between SWD and USB pins in a nRF53-based design. The goal is to provide USB in a default setting and SWD in an advanced setting by using a switch ...
Kampi's user avatar
  • 422
0 votes
1 answer
119 views

Ice40 SB_IO primitive input has glitches

I am trying to implement SWD protocol on ICE40 USB stick using Verilog. I have designed the SWDIO as inout in my program whose direction is controlled by a wire ...
Ravi's user avatar
  • 9
0 votes
0 answers
41 views

MAX32660 SWD: Meaning of CSYSPWRUPREQ not asserted?

In a working SWD sequence generated by pyocd, the MAX32660 target's DP4 (CTRL) register has the CSYSPWRUPREQ bit set, as follows (as reported by the probe's console): ...
personal_cloud's user avatar
0 votes
1 answer
32 views

MAX32660 SWD SELECT does not affect the next AP read

I am trying to write my own PyOCD SWD probe module (because DAPLink is broken and nobody knows how to compile it, while the remaining 2 probes that PyOCD 0.26.1 supports, which we shall not name here, ...
personal_cloud's user avatar
0 votes
1 answer
57 views

MAX32660 SWD specifications?

Where can I find the SWD (Single Wire Debug) specifications for the MAX32660? I searched the user guide and data sheet, but could not find key SWD parameters such as signal timing, which features it ...
personal_cloud's user avatar
0 votes
0 answers
67 views

SWD Debug Using U-Link Pro for STM32 Device

I want to debug my stm32f429 device using U-Link Pro in Keil. I applied the required connections for that and when I try to SWD debug in Keil I receive below "Communication Failure" error. ...
Semih Urtekin's user avatar
0 votes
2 answers
428 views

STM32 SWD and I2C

Can I connect a I2C device to the SWDIO and SWCLK pins, and program the microcontroller using BOOT0 pin, and then use I2C on these pins? Will there be no interference from the I2C device when ...
kubajed's user avatar
  • 13
0 votes
1 answer
267 views

STM32 programmer pin configuration

I have a ST-LINK V2 programmer for STM8 and STM32 with this pin configuration: 1-RST 2-SWCLK 3-SWIM 4-SWDIO 5-GND 6-GND 7-3.3V 8-3.3V 9-5.0V 10-5.0V But on my custom board including ...
barej's user avatar
  • 163
0 votes
3 answers
245 views

Microchip WBZ451 / PIC32CX with PicKit4 resists programming with SWD

I have a WBX451, that's a BLE + blah module with a PIC32CX on it. I'm trying to program it with a PicKit4 using SWD. I have about 2 hour experience programming PIC controllers and 1.5 decade ...
Gambanishu Habbeba's user avatar
0 votes
2 answers
94 views

Lack of I2C peripheral in a module

I want to use 3 I2C peripherals connected to this WFI32E01PC. This part has 2 options. Either MCU or the 54-pin package WFI32 module. I plan to use the 54-pin module. But on page 3 of the datasheet, ...
Freshman's user avatar
0 votes
0 answers
34 views

STM32 USB Dongle ST-utility connection problem

I'm using a CANADUINO ST-Link V2 USB Dongle (SWD). I'm trying to connect to the chip but I keep getting this error: I do have the reset pin attached to the USB. Any help is appreciated.
Chris Walker's user avatar
0 votes
1 answer
96 views

STM32 development board design

I am making a board to learn STM32 with a future Li-Po battery powered project in mind. The aim of the project is to have a device that wakes up a couple of times a day on its own and can also be ...
shklj's user avatar
  • 27
1 vote
1 answer
487 views

SWD isolator solutions

I'm looking to implement an isolated (reinforced, >500V) isolation circuit on the PCBA side that would allow for SWD programming of MCU such as STM32 using JLINK / STLINK etc. The interface is ...
NoobPointerException's user avatar
2 votes
1 answer
90 views

Added value of debugging probes (ST-LINK, JLink, ...)

I've been working in embedded programming for a few years now, and there is something I still don't quite understand about debugging protocols and probes. So as I understand it, to program and debug ...
sydpy's user avatar
  • 21
1 vote
2 answers
293 views

Is it OK to route a signal trace under an STM32?

Is it okay to route an SWCLK signal (for programming the STM32 microcontroller) under the STM32? I will use it only to program it whenever I need it; it is not something that is always active. Please ...
Knowledge's user avatar
  • 441
0 votes
0 answers
35 views

ARM M4F Debug-Output

Currently I am working on a space/pin-constraint project. The software is run on a ARM M4F (MAX32660 MCU) Datasheet. I have connected the MCU to my Dev-Machine via a Segger J-Link J-Link Debug probe ...
ElectronicsStudent's user avatar
3 votes
3 answers
1k views

High-speed USB 2.0 data transfer

How can I send data from an MCU at rates as high as 30 Mb/s to a PC? I can't find a suitable SWD to USB 2.0 bridge IC, so I assume there must be a better way of sending a lot of data over USB. I know ...
Simon's user avatar
  • 51
1 vote
0 answers
176 views

Raspberry Pi 4 running OpenOCD can't flash ATSAMC21G18A that drives SWD pins

I'm attempting to flash a Duet 3 ToolBoard 1LC that drives some lights on the board using the SWD pins from a Raspberry Pi running OpenOCD 0.11.0. I'm using the following configuration: ...
Wulfsta's user avatar
  • 11
0 votes
1 answer
609 views

How to program STM32G071RB with UART?

I'm designing a custom board that contains an STM32G071RBT6. For the burning in the development process, there is an SWD interface connected and the burning will be done through it. For mass ...
Knowledge's user avatar
  • 441
0 votes
1 answer
928 views

STM32 + Black Magic Probe: Should I pull up SWDIO and SWO?

I'm designing an STM32F103 circuit and I plan to program and debug it with a Black Magic probe. I have connected SWDIO, SWCLK and SWO to a standard ARM 10-pin Cortex M Debug Connector. My ...
jemalloc's user avatar
  • 720
2 votes
2 answers
315 views

Communicating with STM32L010F4P6 over SWD

After reading the reference manual for the STM32L010F4P6 it seems all I need to talk with the STM32L010F4P6 over SWD is 3.3V on VDD (PIN 16) GND on VSS (PIN 15) GND on BOOT0 (PIN 1 - PB9) Connect ...
Dave Fol's user avatar
  • 159
1 vote
0 answers
181 views

Minimal/Reference DAPLink Integration

I'm in the process of developing a device driven by an STM32F030C8T6. I want this to be programmable over USB (similar to ST-Link) to make development easier. I'm led to believe that ARM DAPLink ...
ScottishTapWater's user avatar
0 votes
0 answers
145 views

Do you see an issue with this schematic for programming a STM32WB30CE on SWD?

My problem is that I have "no STM32 target found" message when I try to connect to a board by SWD through a ST-Link/v2 (no board identified). On an oscilloscope, when we look at the SWDIO ...
RcSns's user avatar
  • 1
1 vote
0 answers
138 views

What would connecting SWDIO and SWDCLK to a constant high or low externally do?

I'm trying to understand the effect of physically connecting the SWDIO and SWDCLK pins (for a chip that only has these) to a ground or VCC plane. Would driving them low have the chip understand it's ...
Julien BERNARD's user avatar
1 vote
2 answers
2k views

STM32 SWDIO SWDCLK pins alternative use after programming?

We have STM32G0 in one of our projects. We have limited pins on the PCB connector. We need to use 2 connector pins as I2C and SWD same time, to do that we think of connecting the one connector pin to ...
devscg's user avatar
  • 153
0 votes
0 answers
65 views

Gardena battery rain water tank pump 2000/2 – SWD Interface

I have a garden and would like to water it automatically with rain. For this I bought a «Gardena Battery Rain Water Tank Pump 2000/2» and would like to control via an ESP8266. After opening the ...
valeum's user avatar
  • 31
5 votes
2 answers
1k views

SWD over USB C connector

I'm working on a CAN bus controller with a STMF105 MCU. The controller is in a waterproof enclosure with a sealed USB-C connector. I want the option to properly debug with SWD and easy field update ...
mismoeigenheim's user avatar
1 vote
1 answer
125 views

Can I multiplex only VTREF for multiple SWD programmations?

We would like to program several (6) PCB successively, each one working with a Nordic nRF52 µC. The idea is to have only one J-Link with the SWD lines (SWDIO, SWCLK and VTREF) common to my six boards. ...
Nil Orbach's user avatar
1 vote
1 answer
304 views

Logic analyser/trace error in Keil uVision5 with Nucleo M4 Board

I am currently using a NUCLEO-WL55JC board. However, I could not initialize the logic analyzer because of the error "Trace: No Synchronization". I am programming it as single-core (Cortex M4 ...
Faruk UNAL's user avatar
1 vote
0 answers
517 views

Recovering read/write/debug access to SAMD21 board after accidentally overwritting SWDIO port config

I have a dev board for an ATSAMD21G18 (Seeed Studio Xiao) schematic here I just got an Atmel-ICE and started tinkering around with the SWD interface of the Xiao board (I'm new to embedded programming)....
topher217's user avatar
  • 223
1 vote
1 answer
4k views

STM32G030 BOOT0 pin - SWCLK

I designed a board with an STM32G030C8T6 MCU and some peripherals. The board is working just fine, regarding the functionalities, but I have some issues with flashing. So, the first "strange"...
Marcell Juhász's user avatar
4 votes
3 answers
2k views

Reassigning STM32 SWD pins to GPIO: is that cleared after a power cycle?

I am trying to connect some dots here and I am missing something (completely?). This is my understanding: An STM32 MCU boots from its bootloader after nRST is pulled low Also a power cycle will have ...
JeromeBu1982's user avatar
1 vote
1 answer
120 views

TLE9879 SoC debug interface only works when under-volted

I'm using a TLE9879 BLDC Shield as a development kit, that is, I'm programming the SoC itself rather than controlling it with an Arduino. The board has a Cortex 10 pin SWD interface, to which I ...
Dmitry Grigoryev's user avatar
4 votes
1 answer
1k views

Cannot connect to STM32 after programming without activating SWD pins

We were testing the STM32 on a custom board. We were able to program it through SWD pins and an external ST link. Unfortunately, we didn't activate the SWD pins in the .ioc file. Now we cannot connect ...
Shravya Boggarapu's user avatar
0 votes
2 answers
1k views

Is it necessary to include an external oscillator/clock for the STM32F030C8T6 board?

I am designing a PCB for a project. On the PCB, I plan on using the STM32F030C8T6 microcontroller. The resulting board does not need to do many tasks. I need the design to be able to do the following: ...
Marcelo Pestana's user avatar
0 votes
0 answers
875 views

How to flash a Zephyr RTOS sample project to the nrf52840 dongle using J-Link Base debugger and SWD

I'm a beginner at this, I'm a software developer so I've never worked with hardware but now I need to and I don't seem to be able to make it work. I would need help as to how can I flash a Zephyr RTOS ...
Jimmy's user avatar
  • 1
1 vote
1 answer
432 views

Flashing nRF9160 on a custom board with FTDI UART converter or nRF5340DK?

I'm working on a custom board with nRF9160, I want to flash it with the asset tracker sample, however, I do not own a J-link device. What I have is a FTDI USB-UART converter, a nRF5340DK board, a ST-...
PineLel's user avatar
  • 73