Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Cannot read out TRACESWO on Arduino Due (SAM3X8E)ย #1315

@RavuAlHemio

Description

@RavuAlHemio

Greetings,

I am having trouble convincing the official hardware to read out TRACESWO from an Arduino Due (SAM3X8E).

I have recently extended the SerialWireOutput library for Arduino to include Arduino Due (Microchip/Atmel SAM3X8E, Cortex-M3 core) support; it previously only supported some STM32-based Arduino-like boards.

Initial attempts were promising: I was able to convince OpenOCD and my J-Link EDU (which only supports Async TRACESWO) to transmit to my PC. However, I never managed to get my BMP (official hardware V2.3b, first with the latest official firmware, then with some of the latest firmware revisions built by GitHub Actions) to work; I did reconfigure the project to use Manchester TRACESWO instead, since that's the only TRACESWO protocol supported by the official BMP hardware.

I'm running GNU gdb (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 8.0.50.20171128-git as it ships with the Arduino IDE on Windows; my startup commands are:

targ ext COM9
moni freq 100k
moni swdp_scan
attach 1
moni traceswo decode

Opening the other serial port provided by the probe, COM12 in my configuration, causes the terminal emulator to stop responding to user input and eventually give up with the error message The semaphore timeout period has expired. (apparently Windows error ERROR_SEM_TIMEOUT = 121 = 0x79).

Also, if I attempt a connection with COM12 or follow moni traceswo decode with cont in gdb, the probe stops blinking its LEDs (only the green LED remains lit) and it stops responding to gdb commands.

Interestingly enough, the target appears unperturbed -- to be fair, it's just running a variant on the Blink example with some SerialWireOutput strewn in, but it appears that the freezes reported on other hardware are not happening here.

Am I missing something obvious?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BMP FirmwareBlack Magic Probe Firmware (not PC hosted software)NativeHardwareOfficial Black Magic Debug Hardware

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions