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
0 answers
20 views

Cortex-M33 does not continue after data watchpoint

I'm debugging one (Cortex-M33) core of a multi-core ARM SoC using SWD. (Each CPU core uses a separate "memory access point".) I have the following behavior: Code breakpoints work as expected ...
user avatar
0 votes
0 answers
35 views

Enter Bootloader Mode from Software

Hello I have a gigadevice microcontroller from this family: GD32F10x I would like to select the boot source as Main Flash Memory or Boot loader. So I can programm it with SWD and also with USART. On ...
user avatar
1 vote
0 answers
32 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 ...
user avatar
0 votes
1 answer
17 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. ...
user avatar
0 votes
0 answers
53 views

MAX 32660 Schematic Questions

I do have some questions regarding the MAX32660 MCU from MAXIM. See the documentation: User Guide Datasheet 1. RTC-Pins: For routing purposes I would like to connect the 32KIN/OUT ports to GND. I do ...
user avatar
1 vote
1 answer
34 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 ...
user avatar
1 vote
0 answers
58 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)....
user avatar
  • 193
1 vote
1 answer
441 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"...
user avatar
3 votes
3 answers
604 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 ...
user avatar
0 votes
1 answer
46 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 ...
user avatar
3 votes
1 answer
284 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 ...
user avatar
0 votes
2 answers
85 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: ...
user avatar
0 votes
0 answers
243 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 ...
user avatar
  • 1
1 vote
1 answer
135 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-...
user avatar
  • 73
2 votes
1 answer
287 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 ...
user avatar
0 votes
0 answers
85 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 ...
user avatar
  • 101
0 votes
1 answer
121 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 ...
user avatar
  • 191
0 votes
1 answer
93 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 ...
user avatar
0 votes
1 answer
720 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 ...
user avatar
  • 3,318
0 votes
0 answers
37 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 ...
user avatar
0 votes
0 answers
68 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 ...
user avatar
0 votes
3 answers
223 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 ...
user avatar
0 votes
1 answer
2k 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)...
user avatar
  • 3
0 votes
0 answers
70 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 ...
user avatar
  • 106
0 votes
0 answers
55 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 ...
user avatar
0 votes
2 answers
306 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....
user avatar
  • 39
0 votes
0 answers
176 views

Could a china ST-Link have bricked my STM32F4?

I have built several boards with STM32F405 on them and I have been flashing them with a cheap china ST-Link knock-off from eBay which worked perfectly for many months now. However, I now noticed, that ...
user avatar
0 votes
0 answers
60 views

How to connect J-link OB to an RF transceiver module?

I'm looking to program the RFM380F32 RF transceiver module which includes an ARM Cortex-M0+ processor: http://www.hoperf.cn/modules/soc/RFM380F32.html The documentation suggests programming in Keil ...
user avatar
0 votes
0 answers
227 views

ST link not working when PCB is powered with a 3v3 smps

I am programming a stm32 (2 wire SWD: SWDIO and SWCLK) series MCU with a st-link V2 i cut off a nucleo board. I usually just connect the 3V3 supply off of my arduino, but atm i am trying to make a box ...
user avatar
  • 432
1 vote
2 answers
837 views

Programming a Microcontroller - JTAG and SWD

I have this Microcontroller - S32K118 64 pins. I want to load my software datafile into the microcontroller using the debugger mentioned below. I am using this J-LINK Segger BASE debugger model to ...
user avatar
  • 2,424
0 votes
2 answers
101 views

Why would an STM32 flight controller need programming interfaces other than USB? [closed]

I am new to STM32 chips. I am currently working on a self driving airplane and I have realized that the processing power of an Arduino is not enough so I decided to try to create a custom PCB as a ...
user avatar
1 vote
3 answers
199 views

Unbrick MAX32660 that is programmed to drive SWD pin?

I thought I was being clever by remapping my UART output to the SWD output pin. I'm not a fan of debuggers (they don't scale). I assumed I could just reprogram my MAX32660 by holding it in reset, such ...
user avatar
1 vote
1 answer
796 views

How can I flash the STM32F0 flash over SWD?

I am trying to program an STM32F0 from a linux based processor. I have connections to the SWRST, SWDIO and SWCLK pins. I have most of it working well, but when I go to write to the flash memory ...
user avatar
3 votes
1 answer
2k views

USB-C Debug Accessory Mode and USB 2.0

I want to build an embedded device which is using a USB-C for debugging purposes and USB 2 functionality. Now I am not sure whether or not I understood the USB-C Standard correctly. Is it correct, ...
user avatar
  • 33
1 vote
1 answer
362 views

Can anyone help explain this schematic?

I'm having a hard time understanding if I will need both swd and st link or just one of them My understanding is that the level shifter is there for the inputs given by the user which is the STLINK, ...
user avatar
1 vote
0 answers
185 views

Only SWDIO, SWCLK, GND three pins, how to debug

I am new to microcontroller, I have a board just offer SWDIO, SWCLK, GND three pin.how to debug this board with iar through SWD
user avatar
  • 83
0 votes
1 answer
50 views

ARM SWD Response On SAM D09

I am trying to learn some low level implementation so I have been trying to interface to a SAM D09 micro-controller via the SWD interface. I have the chip on a board and I am driving GPIO. I have ...
user avatar
  • 111
0 votes
1 answer
44 views

Tools and libraries to use with J-Link OB and CoreSight

I have a system with including a Beagle Bone Green board, a J-Link OB module and a Cortex-M4 microcontroller (see figure). I would like to use the DWT and ITM features but don't quite understand how ...
user avatar
0 votes
1 answer
154 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 ...
user avatar
1 vote
0 answers
608 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 ...
user avatar
  • 111
0 votes
1 answer
276 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 ...
user avatar
  • 1,876
1 vote
1 answer
653 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 ...
user avatar
  • 2,247
1 vote
2 answers
1k 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 ...
user avatar
  • 2,247
0 votes
1 answer
92 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. ...
user avatar
0 votes
2 answers
6k 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 (...
user avatar
1 vote
2 answers
519 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 ...
user avatar
  • 23
2 votes
1 answer
775 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 ...
user avatar
0 votes
1 answer
50 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?
user avatar
0 votes
1 answer
125 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 ...
user avatar
  • 1,224
0 votes
0 answers
147 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....
user avatar