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
2 answers
39 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
22 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
  • 410
0 votes
1 answer
59 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
36 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
23 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
29 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
28 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
95 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
38 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
2 answers
125 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
82 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
  • 807
0 votes
0 answers
21 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
64 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
188 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
67 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
133 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
  • 391
0 votes
0 answers
29 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
629 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
136 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
203 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
  • 391
0 votes
1 answer
306 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
  • 571
2 votes
2 answers
177 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
  • 137
1 vote
0 answers
99 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
88 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
84 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
907 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
  • 108
0 votes
0 answers
50 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
2 votes
1 answer
682 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
90 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
219 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
403 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
  • 213
1 vote
1 answer
3k 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
3 votes
3 answers
1k 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
0 votes
1 answer
94 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
914 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
626 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
640 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
300 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
2 votes
1 answer
832 views

Can't connect to STM32 chip

I have soldered a STM32F103VF chip (LQFP100) on a breakout board, which I want to connect to via my ST-Link (clone). However, ST-Util (and STM32CubeProgrammer) cannot connect to the chip. MCU ...
Maximilian Gerhardt's user avatar
0 votes
0 answers
113 views

Is this port a Cortex Debug?

The following is a board with an STM32F103 MCU. Is it possible to tell if the marked port on the top left (JK1) is a Cortex Debug port that may be connectable with an ST-Link V2 or similar ? According ...
elig's user avatar
  • 101
0 votes
1 answer
219 views

STM32 STLINK debug port connection with Olimex

I'm currently designing the debug port for my STM32L4R5 microcontroller. I'm planning to use the STLINKV2 debugger but it's using a 20 pin JTAG connector which has a big footprint for my PCB. I saw ...
cy1125's user avatar
  • 201
0 votes
1 answer
197 views

How to flash a bootloader onto the STM32WLE

I am currently designing a custom PCB with this board: https://www.st.com/en/microcontrollers-microprocessors/stm32wle5jb.html I cannot find any mentioning that it comes with a factory installed ...
Marco Bobinger's user avatar
0 votes
1 answer
2k views

Program STM32 MCU with SWD by default as alternate function

I want to use my first STM32 MCU in the project. The project involves a few peripherals (UART/SPI/I2C) and has a bit of math to do here and there, mainly bit shifting and/or integer computations, so I ...
Ilya's user avatar
  • 3,478
0 votes
0 answers
58 views

download code via SWD ADuCM3029

I made my own PCB using ADUCM30299 as microcontroller; in this card I also have a power management, BLE, Flash memory,USB Type C when I tried to calculate the voltage in SWD_CLK, SWD_DATA, .... I find ...
Safwen 's user avatar
0 votes
0 answers
177 views

pyocd programming is slower than expected

I am using pyocd to program a MAX32660 using a MAX32660-EVSYS via SWD. pyocd is reporting a bit rate that is less than 1/5 of ...
personal_cloud's user avatar
0 votes
3 answers
557 views

STM32 runtime Variable value manipulation

So basically I am not an expert, altho I think I have a good basis of knowledge. I am using an STM32 Cortex 4 (discovery) for a hobby CNC machining application. So lets assume we have a SW under ...
aljazjelen's user avatar
0 votes
1 answer
4k views

ST-Link cannot software reset my STM32 MCUs over SWD

I've been working on a problem with two different boards (one using an STM32F7 and the other using STM32F3). When attempting to program the boards (using an ST-Link provided on Nucleo/Discovery boards)...
kavon7's user avatar
  • 3
0 votes
0 answers
146 views

Cannot launch GDB client

I am new to embedded coding outside of Arduino, so I need a lot of hand holding. I made a custom board with just a STM32 chip (STM32L082) and a LED. I am trying to debug it using GDB (I hear that's ...
lemonlime's user avatar
  • 106
0 votes
0 answers
91 views

error mcu not found

I made a PCB contains MCU of Analog device aducm3029, I want to program it via SWD ( An on-board serial wire download (SWD) interface, which is implemented with the Freescale's MК20DX128 ...
Safwen 's user avatar
2 votes
3 answers
867 views

STM32 minimum setup no crystal

I'm trying to run my first circuit with a STM32 microcontroller. For debug reasons I soldered a minimum setup. No external crystal Only capacitors I connect SWD Debug: NRST SWDIO SWCLK Power 3.3V ...
Yann's user avatar
  • 71