Cannot read out TRACESWO on Arduino Due (SAM3X8E) #1315
Labels
BMP Firmware
Black Magic Probe Firmware (not PC hosted software)
NativeHardware
Official Black Magic Debug Hardware
Milestone
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: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 errorERROR_SEM_TIMEOUT
= 121 = 0x79).Also, if I attempt a connection with COM12 or follow
moni traceswo decode
withcont
in gdb, the probe stops blinking its LEDs (only the green LED remains lit) and it stops responding togdb
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!
The text was updated successfully, but these errors were encountered: