34a13723d8
Rationale: In USB device mode, the f103 chip provides 512 bytes of memory for USB traffic. In the 'master' branch of the blackmagic probe, the control endpoint pipe size is set to 64 bytes, effectively consuming a quarter (1 'in' endpoint, 1 'out' endpoint == 2 endpoints, 2 /* endpoints */ x 64 /* bytes per endpoint */ == 128 bytes out of 512 /* bytes of precious usb packet memory */). The USB standard, for full speed devices, does allow a control endpoint size of 8 bytes. I am not too aware of all the details of the USB standard, but the USB standard seems to allow fragmented transactions on the control USB pipe (endpoint 0), which libopencm3 apparently supports: libopencm3/lib/usb/usb_control.c:usb_control_send_chunk() I am using this change (from 64, to 8 bytes) on a windows 10 machine, on an stlink hardware ('PROBE_HOST=stlink'). It works on my machine. This change can potentially provide other USB endpoints in the blackmagic firmware with more memory |
||
---|---|---|
driver | ||
libopencm3@89074d6a13 | ||
scripts | ||
src | ||
upgrade | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
COPYING | ||
HACKING | ||
Makefile | ||
README.md | ||
UsingSWO |
README.md
Black Magic Probe
Firmware for the Black Magic Debug Probe.
The Black Magic Probe is a modern, in-application debugging tool for embedded microprocessors. It allows you see what is going on 'inside' an application running on an embedded microprocessor while it executes. It is able to control and examine the state of the target microprocessor using a JTAG or Serial Wire Debugging (SWD) port and on-chip debug logic provided by the microprocessor. The probe connects to a host computer using a standard USB interface. The user is able to control exactly what happens using the GNU source level debugging software, GDB. Serial Wire Output (SWO) allows the target to write tracing and logging to the host without using usb or serial port. Decoding SWO in the probe itself makes SWO viewing as simple as connecting to a serial port.
See online documentation at https://github.com/blacksphere/blackmagic/wiki
Binaries from the latest automated build are at http://builds.blacksphere.co.nz/blackmagic