Questions tagged [swd]

SWD (Serial Wire Debug) is a lightweight alternative to JTAG debug port.

Serial Wire Debug (SWD) is an alternative 2-pin electrical interface that uses the same protocol. It uses the existing GND connection. SWD uses an CPU standard bi-directional wire protocol, defined in the ARM Debug Interface v5. This enables the debugger to become another bus master for access to system memory and peripheral or debug registers. Data rate is up to 4 Mbytes/sec at 50 MHz. SWD also has built-in error detection. On JTAG devices with SWD capability, the TMS and TCK are used as SWDIO and SWCLK signals, providing for dual-mode programmers.

37 questions
1
vote
1 answer

STM32 SWD protocol - port number

I start using SWD feature in my STM32 discovery board. I redirecting openocd trace output to text file (because I don't find any good SWD monitor for Linux). I don't know why i get two character when I send only one. In my output file, every…
JhnW
  • 120
  • 1
  • 8
1
vote
1 answer

SWD interface SAM device

im trying to design custom board for microcontroller im trying with SAM series (SAMD21G18) from microchip they recommended…
Hasan alattar
  • 347
  • 3
  • 19
1
vote
1 answer

Platform.io upload to Teensy 3.6 via SWD (J-LINK)

I am using the excellent http://platformio.org/ together with Visual Studio Code to develop for Teensy 3.6 (an Arduino compatible board). This works great. But I wanted to do better debugging via SWD (serial wire debug). So I disconnected the…
user643011
  • 2,163
  • 3
  • 21
  • 38
1
vote
1 answer

Atmel-ICE programming atsam4sd32c

I am having problems with the programming of a custom pcb which is using the 32-bit atsam4sd32c ARM Cortex M4. I am unable to program the microcontroller trough the JTAG/SWD interface using the ATMEL-ICE debugger. However I am able to get the device…
1
vote
1 answer

Debugging LPC812 Cortex m0 MCUs

Is this possible to debug applications on this MCU? Does anyone have experience with this? As datasheet says it is possible to debug in SWD mode but with JLINK /Keil & LPCLINK/LPCEXPRESSO we had no success. Schematic is a simple breakout board. I…
Dzzz
  • 21
  • 1
  • 6
1
vote
4 answers

No SWV or ITM with st-link v2 emulator programmer and stm32f103c8t6

I bought a cheap "st-link v2 emulator programmer" and an STM32f013C8T6 of Ebay. Using Atollic on Windows 8 and the SWD interface of the MCU, I am able to upload and run code, set breakpoints and watch variables but I can´t use printf over ITM or SWV…
0
votes
0 answers

cortex-m7 cant use swd r/w core register

I try to use software to simulate swd on a cortex-m7 development board, and burn the bootloader file of another cortex-m7 development board. Most of the time it works, but occasionally it goes wrong, which I suspect has something to do with my not…
panzeV
  • 1
0
votes
0 answers

Using Openocd on raspberrypi for ARM CC3200 debug

I am trying to use raspberry pi with openocd as a debug probe for TI ARM CC3200 via jtag port on the TI ARM CC3200 board. I got it up and running but I can't get jtag or swd to work. I am new to openocd and hardware hacking in general and feel a…
Aco
  • 13
  • 2
0
votes
1 answer

stm32 through swd printf doesn't work properly

I modified _write function. When I use, printf("Hello \n"); in debug mode SWV Console, I get random 1 character like @. I tried combinations of SWV frequency in debug configuration section.
0ndu
  • 1
0
votes
0 answers

STM32 through SWD gives error with increasing HCLK (Break at address)

I have custom board which I program through SWD pins. When I debug with 16Mhz(default clock), my blink code works. When I increase it with PLLCLK, it gives an error such as "Break at address "0x2b003300" with no debug information available, or…
0ndu
  • 1
0
votes
0 answers

How to disable SWD and JTAG on LPC55S69JBD64

Is there a way to disable the SWD and JTAG interfaces (or pins) through code without having to use an authentication mecanism on LPC55S69JBD64?
0
votes
1 answer

How to log a particular address from an STM32 NUCLEO-F334R8 with an inbuilt ST-LINK in real time using SWD & openOCD without halting the processor?

I am trying to learn how to debug an MCU non-intrusively using SWD & openOCD. while (1) { my_count++; HAL_GPIO_TogglePin(LD2_GPIO_Port,LD2_Pin); HAL_Delay(750); } The code running on my MCU has a free running counter…
0
votes
1 answer

Pyocd and Picoprobe unable to flash nRF51822

PyOCD and Picoprobe will not flash an NRF51822, exiting with the error cannot read register r0 because core #0 is not halted. Setup: Windows 11 Python 3.9.6 PyOCD 0.33.1 Output from pyocd load firmware.hex --target nrf51822: 0001527 I Loading…
Python380
  • 11
  • 3
0
votes
1 answer

Can you move an ARM Core M4 into SLEEP mode through the Serial Wire (DAP)?

I have been working on a project where I move an ARM Core M4 into SLEEP mode through executing a WFI instruction in C firmware. I want to also be able to move the ARM Core M4 into SLEEP mode through the Serial Wire pins. Are there registers in the…
Andrew
  • 1
  • 1
0
votes
2 answers

How to connect to stm32f205 via jtag or swd for read/write?

Good day everyone. There is a need to connect via jtag / swd to stm32f205. There is a chip soldered by all pins. There is a Chinese st-link v2 I guess I need rst, swclk, swdio 3.3vdd in datasheet it is 7, 49, 46, 48 pins I'm not sure if I…
Dmitriy Skogorev
  • 139
  • 2
  • 3
  • 11