The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
0answers
378 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 ...
2
votes
0answers
75 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 ...
1
vote
0answers
48 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 ...
1
vote
0answers
153 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 ...
1
vote
0answers
52 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)...
1
vote
1answer
327 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: ...
1
vote
0answers
2k views

STM32 - two errors in turns during programming

I'm trying to program STM32F107VCT6 via SWD and I'm constantly getting two errors in turns (literally): Error: Connect failed, check config and cable connection <...
1
vote
0answers
540 views

JLNINK(SWD)+IAR can not debug stm32: communication error

guys. I am using J-link with SWD interface to debug my STM32F103VCT6 in IAR. I can enter download and debug mode but I can not use "step over" or "stop" function. Once I use one of them I will get ...
1
vote
1answer
3k views

STM32 prototype unable to connect to PC using ST-Link/V2 SWD

Circuit Diagram Background & What I have tried. I have wired wrapped this setup myself using a fresh STM32F411RC MCU from digikey (on a proto-advantage LQFP-64 to DIP-64 breakout board). I've ...
0
votes
0answers
33 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: ...
0
votes
0answers
60 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 ...
0
votes
0answers
40 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 ...
0
votes
1answer
71 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 ...
0
votes
1answer
38 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. ...
0
votes
0answers
182 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 <...