Uwe Bonnes
166eb3ee3e
cmsis_dap: Always transfer 65 bytes with hid_read|write()
...
CMSIS-DAP Dragonprobe works on some devices. E.g. it does not work
on NUCLEO-F103
2021-10-31 12:55:41 +01:00
Uwe Bonnes
b343ebe06f
cmsis-dap/linux: Link against libhidapi-hidraw
...
libhidapi-libusb detaches a kernel module but does not reattach again.
This may wrack interaction with other programs using hidapi.
2021-10-31 12:55:41 +01:00
Uwe Bonnes
761e0230d4
cmsis-dap: Print messages when transfers fail.
...
Expect signal integrity errors when using jumper cables. Often probes switch
the SWJ GPIO with highest speed, resulting in possible reflections. Additional
ground wires may help. If there is isolation between probe and targets,
additional ground wires are a must or ground shift will wrack the transfer!
2021-10-31 12:55:41 +01:00
Uwe Bonnes
39fbffd3d2
stlinkv2: Fix low access to AP registers.
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
485105221e
dap: Always work on a copy of the buffer when calling dbg_dap_cmd() in a loop
...
A better solution would use seperate buffers for dbg_dap_cmd. But as WAIT is
already handled in DAP, cahnces are low that loop re-entry is needed.
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
7b1eb6e6e3
bmp_libusb: reset type on every device.
2021-10-31 12:53:47 +01:00
Uwe Bonnes
80064c18a9
bmp_libusb: Fix CMSIS-DAP related memory leak.
2021-10-31 11:13:34 +01:00
Uwe Bonnes
c4b6b42dcf
stlinkv2: Read targetid on DPv2 devices.
2021-10-31 11:13:34 +01:00
Uwe Bonnes
e7e1bfdb53
mpsse: Fix using 60 MHz clock on fast devices.
2021-10-30 13:55:57 +02:00
Uwe Bonnes
99a5fdb6f8
bmp_remote: Better error propagation.
...
Negative values from platform_buffer_read are errors too!
2021-10-30 13:55:57 +02:00
Uwe Bonnes
f28f05952f
stlink: Add another STLINK-V3 ID.
2021-10-30 13:55:57 +02:00
Uwe Bonnes
e1a928beb1
Fixes to compile with gcc11 #925
...
Target code changes are pure for formal correctness and not tested!
2021-10-10 15:59:57 +02:00
fabalthazar
e2d3161442
Removed -S message as debugger selection option since it is used for reading bytes
2021-10-09 21:38:48 +02:00
fabalthazar
59282b6f66
Fixed typography
2021-10-09 21:18:52 +02:00
fabalthazar
3f54fba986
HOSTED_BMP_ONLY=0 by default on Linux.
...
The user is warned about missing dependencies.
2021-10-09 21:14:52 +02:00
Vegard Storheil Eriksen
7ccbdd98c0
hosted/dap: Copy command buffer in wait/retry loop.
...
The same buffer is used for both command and response, causing part of
the command to be overwritten before it’s retried. Solve this by saving
and restoring a copy of the command before retrying.
2021-10-05 23:21:07 +02:00
Uwe Bonnes
356325f563
ftdi_bmp: Fix bit select.
2021-09-22 15:16:20 +02:00
Uwe Bonnes
79066c950f
bmp_libusb: Remove duplicated libusb_init.
...
Thanks to Red Liu for noticing
2021-09-22 15:16:20 +02:00
Uwe Bonnes
da15cc3cb7
remote_jtagtap: Fix memory corruption in jtagtap_tdi_tdo_seq
2021-09-22 15:16:20 +02:00
Uwe Bonnes
a93e57e112
ftdi: Fixed wrong direction report in DEBUG.
2021-09-22 15:16:20 +02:00
Andy Makovec
01583560cd
hosted: Update Readme.md to use HOSTED_BMP_ONLY
2021-09-16 11:02:31 +02:00
Uwe Bonnes
a297c8c8ad
hosted/Makefile.inc: Use gcc to build hosted, if not advised otherwise
2021-09-04 21:15:07 +02:00
Uwe Bonnes
698cfeb1f4
bmp_serial: Nag MACOS programmer to implement find_debuggers!
2021-09-04 21:15:07 +02:00
Uwe Bonnes
49122b50b6
hosted: Make HOSTED_BMP_ONLY the default.
...
Hopefully more people will use it when reporting errors!
2021-08-15 16:43:29 +02:00
Uwe Bonnes
2fcd4a878a
ftdi_bmp.h: Fix error when compiling with HOSTED_BMP_ONLY=1
2021-08-15 16:43:29 +02:00
Uwe Bonnes
6308506276
jtag: Make jtag_devs argument to jtag_handler.
2021-08-15 16:43:29 +02:00
Uwe Bonnes
f7670fcd44
ftdi_bmp: Add verbosity for libftdi_jtagtap_tdi_tdo_seq()
2021-08-15 16:43:29 +02:00
Uwe Bonnes
5c8e277663
hosted/dap: Fix tdi_tdo_seq.
2021-08-15 16:43:29 +02:00
Uwe Bonnes
2d4a503135
jtag_scan: Rework chain detection
...
Fixme: stlinkv2/hosted probably does only handle STM devices. Check if
jtag_devs.c really needed.
2021-08-15 16:43:29 +02:00
Uwe Bonnes
e1a1865de9
remote/jtagtap_tdi_tdo_seq: Split up large transactions.
...
FIXME: One remote transaction still can only do up to 64 ticks, leaving
room for speed enhancement with larger transactions.
Firmware assumes (1LL << 65) == 0LL !
2021-08-15 16:43:29 +02:00
Uwe Bonnes
36836d0746
ftdi_bmp: Fix setting bits and FTDIJTAG srst.
2021-08-15 16:43:29 +02:00
Uwe Bonnes
cfdf55855e
ftdi_bmp: Export and use reset functions.
2021-08-15 16:43:29 +02:00
Uwe Bonnes
6d6a67b44b
timeout: Make sure we wait at least the period requested ( #900 , #902 )
...
Fixes bug introduced with last commit( Recover from bad AP access)
Let STM32 timers run at 100 Hz against 10 Hz before.
Programming STM32F103 failed random (#900 ) with 20 ms timeout requested
against the 100 ms timeout granularity provided up to now.
STM32 Firmware only ticked at 10 hertz, so the sequence "low_access",
"set timeout", "send out 8 bit command", "read 3 bit result" when
reading "wait" and timer increment tick happening during that sequence
will already hits the timeout even so only mininal time has elapsed
and not the requested timeout.
2021-07-27 10:59:03 +02:00
Uwe Bonnes
3cfd8226ba
bmp_libusb: Check only for cmsis_dap if no cable has been found yet.
2021-06-18 11:44:50 +02:00
Uwe Bonnes
2a0d608b07
hosted: Fix last commit
...
-Wno-format-truncation may not be understood by all systems
2021-06-01 18:42:37 +02:00
Uwe Bonnes
1b49823f64
Fix hosted compile on MacOS. hidapi-libusb has a different name
2021-06-01 16:58:25 +02:00
Uwe Bonnes
c0437e7b25
bmp_serial: Autodetect more BMP string variants.
2021-06-01 16:23:19 +02:00
Uwe Bonnes
6454d0bc96
bmp_libusb: Invalidate manufacturer and product in case libusb_get_string_descriptor_ascii fails.
...
Prevent more false detections
2021-05-20 12:06:56 +02:00
Uwe Bonnes
cb4cff2c71
hosted/ftdi: Compare only for length of the string given in the header
...
Devices may have added version like "Tigard V1.1" vs "Tigard"
2021-05-18 12:24:00 +02:00
Uwe Bonnes
c3fd198f0d
bmp_libusb: Reject non-BMP devices with VID 1d50.
2021-05-18 12:24:00 +02:00
Uwe Bonnes
36ad6efc6f
cmsis_dap.h: Fix wrong leftover argument.
2021-05-16 17:17:33 +02:00
Uwe Bonnes
e4421799ba
More header cleanup
2021-05-15 12:54:51 +02:00
Uwe Bonnes
8e438b9e5f
Add missing headers and remove double typedef.
2021-05-14 19:58:16 +02:00
Vegard Storheil Eriksen
f121350fc9
hosted/cmsis_dap: Verify that a v2 interface has endpoints.
2021-04-27 11:39:43 +02:00
Vegard Storheil Eriksen
494524dd85
hosted/cmsis_dap: Add v2 support.
2021-04-27 10:26:06 +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
Vegard Storheil Eriksen
c4874fdf44
hosted/dap: Add parentheses around bitwise operator.
2021-04-26 21:54:38 +02:00
Uwe Bonnes
f9414d5826
cmsis-dap: Handle ADI DP22 devices on probes not multidrop capable.
2021-04-26 18:18:18 +02:00