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
1answer
70 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"...
3
votes
3answers
334 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 ...
0
votes
1answer
28 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 ...
3
votes
1answer
124 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 ...
0
votes
2answers
46 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: ...
0
votes
0answers
155 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 ...
1
vote
1answer
88 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-...
2
votes
1answer
156 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 ...
0
votes
0answers
74 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 ...
0
votes
1answer
85 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 ...
0
votes
1answer
73 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 ...
0
votes
1answer
412 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 ...
0
votes
0answers
32 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 ...
0
votes
0answers
50 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 ...
0
votes
3answers
154 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 ...
0
votes
1answer
1k 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)...
0
votes
0answers
53 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 ...
0
votes
0answers
51 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 ...
0
votes
2answers
192 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....
0
votes
0answers
143 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 ...
0
votes
0answers
58 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 ...
0
votes
0answers
198 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 ...
1
vote
2answers
664 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 ...
0
votes
2answers
84 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 ...
1
vote
2answers
136 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 ...
1
vote
1answer
608 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 ...
2
votes
1answer
1k 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, ...
1
vote
1answer
244 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, ...
1
vote
0answers
150 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
0
votes
1answer
36 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
124 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 ...
1
vote
0answers
544 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
1answer
241 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
538 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 ...
1
vote
2answers
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 ...
0
votes
1answer
90 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
5k 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
382 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 ...
2
votes
1answer
655 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
46 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
107 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
115 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....
2
votes
1answer
3k 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 ...
3
votes
2answers
3k 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 ...
2
votes
0answers
266 views

OpenOCD flash writing failure with STM32L071C8 MCU [closed]

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
1k 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.
2
votes
1answer
869 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
145 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
2answers
266 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 ...