Uwe Bonnes
d4ae308f9f
cmsis: implement srst_set_val()
2021-10-31 12:55:41 +01:00
Uwe Bonnes
c13778139f
adiv5/hosted: Export the BMP_TYPE in DP.
2021-10-31 12:55:41 +01:00
Uwe Bonnes
397fbd5749
cmsis: Only cmsis internal use must differentiate between HID and Bulk access
...
Missing DAP_SWD_SEQUENCE may eventually need a distinction visible from
outside later.
2021-10-31 12:55:41 +01:00
Uwe Bonnes
cfdf55855e
ftdi_bmp: Export and use reset functions.
2021-08-15 16:43:29 +02:00
Vegard Storheil Eriksen
4f52a7b235
hosted/cmsis_dap: Add discovery by interface string and prepare for v2 support.
2021-04-26 21:56:24 +02:00
Uwe Bonnes
f9414d5826
cmsis-dap: Handle ADI DP22 devices on probes not multidrop capable.
2021-04-26 18:18:18 +02:00
Uwe Bonnes
04d1c9805b
swd: Remove swd_proc and swdptap.h.
2021-04-21 21:50:04 +02:00
Uwe Bonnes
d6ade4d94e
cmsis-dap: Use SWD_SEQUENCE if available.
2021-04-21 21:50:04 +02:00
Uwe Bonnes
c776e7a9a6
swd_scan: Add '-m' as targetid argument to swd_scan to prepare multi-drop.
...
In a real multi-drop setup, the device to use must be specified.
2021-02-15 17:47:29 +01:00
Uwe Bonnes
09c000eca8
hosted: Really handle setting tpwr on remote on the command line #817
...
Expect the command to fail, due to old firmware or remote not implementing
the power switch.
2020-12-19 16:36:09 +01:00
Uwe Bonnes
6dbb5ff7ee
Frequency: Implementing for jlink.
...
SWD frequency is fixed for jlink according to the docs from 2010.
2020-12-12 18:33:09 +01:00
Uwe Bonnes
fdc654cfb3
stlink: Implementation of frequency setting.
2020-12-12 18:33:09 +01:00
Uwe Bonnes
de26ba6f73
hosted: Add is_jtag to the info structure
...
Needed for different frequency setting procedures on some platforms.
2020-12-12 18:33:09 +01:00
Uwe Bonnes
28a966a3e6
frequency: Implement for ftdi.
...
For all 2232H types, use undivided 60 Mhz.
FIXME: Check FT2322C/D for unsymetric clock at 6 MHz!
2020-12-12 18:33:09 +01:00
Uwe Bonnes
13e8a262e4
SWJ Frequency: Implement for cmsis-dap
2020-12-12 18:33:09 +01:00
Uwe Bonnes
1ca9f234f7
Infrastructure for setting maximum SWJ frequency.
...
Implement for BMP/firmware on STM32.
2020-12-12 18:33:09 +01:00
Uwe Bonnes
0f1fe9e438
hosted/linux: Find BMP devices without libusb.
2020-12-11 18:36:09 +01:00
Uwe Bonnes
bd5f4c6ed5
hosted: Consolidate ident output.
2020-12-11 17:55:31 +01:00
Uwe Bonnes
0870b778c0
hosted: Allow to build without libusb, libftdi and hidapi with HOSTED_BMP_ONLY=1
2020-12-11 17:50:16 +01:00
Uwe Bonnes
32db38ecf2
hosted/libusb: Move platform.c libusb related functions to own file.
2020-12-11 17:35:43 +01:00
Uwe Bonnes
e1329499de
platform_adiv5_swdp_scan: Do not double free with early errors.
...
adiv5_dp_init() clean up itself if errors happen
2020-11-29 15:48:50 +01:00
Uwe Bonnes
e6823f39de
Hosted: Print version with "-h" and "-t" option.
2020-11-27 22:26:48 +01:00
Uwe Bonnes
cda83d3084
Fix memleaks.
...
Happened e.g. when Stlink could not enter debug or when cortexm_prepare timed out.
2020-11-27 22:26:48 +01:00
Uwe Bonnes
824a1d8abc
hosted/find_debuggers: Do not check hubs. Print class of devices unable to open.
2020-11-27 22:26:48 +01:00
Uwe Bonnes
80154c5c7a
adiv5_swdp: Fix more memory leak.
2020-11-27 22:26:48 +01:00
Uwe Bonnes
18673d9a56
adiv5: Rework DP/AP refcounting.
...
ASAN non longer reports leaks with the STM32H745.
2020-10-23 09:40:15 +02:00
Uwe Bonnes
8b929c12c9
hosted/jtag: Transfer jtag_devs to firmware.
2020-10-16 20:03:03 +02:00
Uwe Bonnes
ceaee2a11e
hosted: Hint about BMPs in bootloader mode.
2020-10-07 17:12:22 +02:00
Uwe Bonnes
4d18496a6f
hosted: Allow to disable high level commands for BMP.
...
Useful for tracking low level problems on native with hosted.
2020-10-01 15:49:21 +02:00
Uwe Bonnes
d73a6a3d29
platform/ftdi: Do not double initialize.
2020-09-04 11:49:13 +02:00
Uwe Bonnes
f4eed249eb
hosted/ftdi: Allow to list supported cables.
2020-09-04 11:49:13 +02:00
Uwe Bonnes
7b497302c0
hosted/ftdi: Autodetect ftdi cables with distinguishing feature.
2020-09-04 11:49:13 +02:00
Uwe Bonnes
e75eb19d78
cmsis_dap: Detect CMSIS-DAP before STLINK
...
Debugger may be realized with the ST USB Vendor ID.
2020-08-16 15:20:58 +02:00
Uwe Bonnes
c97c4a0960
hosted: Better decoding for ap_decode_access().
2020-08-16 15:20:58 +02:00
Uwe Bonnes
fca8593d92
serial_win: Find BMP comport by serial number.
2020-08-03 18:59:50 +02:00
Uwe Bonnes
a4cdd6b310
hosted: Report missing USB access rights only if no debugger found.
2020-06-07 16:29:19 +02:00
Uwe Bonnes
425002a38f
hosted: Add -l argument to list only available debuggers and exit.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
dc3fd2eb06
Classify debug messages
...
Firmware BMP with ENABLE_DEBUG=1 will print WARN and INFO as before.
PC-Hosted BMPwill alway print to stderr. Warn is printed unconditional,
INFO, GDB, TARGET, DONGLE and WIRE will print if their appropriate bit in
cl_debuglevel is set via the -v verbose command line argument.
INFO will go to stdout with -t or -l.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
64f3dff8a8
PC-Hosted: Better debug output.
2020-06-05 14:59:30 +02:00
Valmantas Paliksa
b06c0ba8d5
bmp_remote: Use high level functions.
...
Based on #570 (OpenOCD HLA interface driver for Blackmagic), but now
usefull for bmp-remote.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
ef558eebb8
CMSIS-DAP support.
...
Thanks to edbg, pyocd and openocd for code and ideas.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
4ba6afed28
Add jlink pc-hosted platform.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
ef816e3183
hosted: add libftdi implementation, remove old implementation.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
ab7991c3a6
hosted: Add bmp_remote, remove old pc-hosted platform.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
13c3c934d2
Hosted: Add Stlink, remove old pc-stlinkv2 platform
2020-06-05 14:59:30 +02:00
Uwe Bonnes
8fea3f6baa
pc/serial_xx: Change arguments for the open call.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
386a4bfce7
hosted: Device detection and selection.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
3290def5f8
Add empty compilable project.
2020-06-05 14:59:30 +02:00