Andy Makovec
01583560cd
hosted: Update Readme.md to use HOSTED_BMP_ONLY
2021-09-16 11:02:31 +02:00
Uwe Bonnes
ff79108f66
cl_utils: Increase worksize for increased speed.
...
H743 reads 2 MB in ~23 vs 27 seconds
2021-09-07 10:57:17 +02:00
Uwe Bonnes
a76a559656
pc/platform_delay: Wait ms and not us!
2021-09-07 10:57:17 +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
3df692ecb2
adiv5_swdp_scan: If SWD scan fails, try a JTAG scan.
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
8084a75634
cl_utils: Allow Hardware reset from the command line
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
aam335
5eb43a1ddb
platforms: stm32f4x1 blackpillv2 as variant of f4discovery
...
Compile as make PROBE_HOST=f4discovery BLACKPILL=1
2021-08-13 16:18:05 +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
b887a8d355
stm32: Portability changes
...
Allow to compile on STM32F0 platform too.
2021-07-15 15:06:54 +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
UweBonnes
a0dbb2a787
Merge pull request #896 from RadinnAB/for-upstream
...
Add nRF51 erase UICR command and fix some warnings
2021-06-07 17:43:56 +02:00
fabalthazar
ea4b232996
Fix de83dbb: duplicate BMP_MODE_FLASH_VERIFY -> BMP_MODE_FLASH_WRITE_VERIFY
2021-06-07 17:29:41 +02:00
Björn Mellström
711a87f7ba
Fix some warnings when compiling with -Wshadow
...
There are still a few more places that would need to be corrected
before -Wshadow could be added by default.
2021-06-03 12:55:28 +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
de83dbb7e2
cl-utils: Fix bug introduced with 5288eef617
...
Always use the file size for write and verify.
2021-06-01 16:23:19 +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
7f1a560288
stm32/usbuart: Clear USART_ICR if provided.
...
Otherwise endless interrupts happened.
2021-05-20 12:06:56 +02:00
Uwe Bonnes
90534b3cf6
stm32: portability enhancements
...
Needed for e.g. stlinkv3
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
f0dd8c9517
cl_utils: List -l option in the help.
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
Uwe Bonnes
cfbe9f1c94
pc/gdb_if.c: More verbosity for Error messages #873
...
Thanks to "pshri" for dissecting and adding messages, as problems with
Hpyer-V and port permissions happened on Win10
2021-05-09 11:49:32 +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
Uwe Bonnes
923edc7f7e
cmsis-dap: Fix wrong handling when reading data not word-aligned
2021-04-26 15:08:09 +02:00
Uwe Bonnes
877a6e694c
Revert "cmsis_dap: Always write full reportsize + 1 buffers"
...
This reverts commit 61e237ec87
.
This makes a CMSIS-DAP probe with version < 1.2 work again on DP V1 devices.
Status of other combination unknown:
DP V1 V2 V2/Multidrop
Probe
< 1.2 ok ok --
>= 1.2 ? ? ?
2021-04-25 22:53:40 +02:00
Uwe Bonnes
f98b7274b4
hosted/stlinkv3: Detect STlinkV3 in bootloader mode.
2021-04-25 16:02:20 +02:00
Uwe Bonnes
a83700d1cf
stm32/usbuart: DMA stream handling is not STM32F4 specific
2021-04-25 16:02:20 +02:00
Uwe Bonnes
1330288271
firmware: Unify serial number handling
...
Use one file in dfu and server
For STM32, provide 3 ways to handle
- BMP way (8 bytes)
- DFU way (12 Bytes)
- Full unique id (24 Bytes), as with STLINK(V3) Bootloader
2021-04-25 16:02:20 +02:00
Uwe Bonnes
ea92c8b8c8
cmsis-dap: Allow to use adiv5_swdp_scan.
2021-04-21 21:50:38 +02:00
Uwe Bonnes
04d1c9805b
swd: Remove swd_proc and swdptap.h.
2021-04-21 21:50:04 +02:00
Uwe Bonnes
61e237ec87
cmsis_dap: Always write full reportsize + 1 buffers
...
Expect short reads and other errors else
2021-04-21 21:50:04 +02:00