fabalthazar
59282b6f66
Fixed typography
2021-10-09 21:18:52 +02:00
fabalthazar
7274f55ff4
Fixed return value of hosted blackmagic in erase mode
2021-10-09 21:17:58 +02:00
Uwe Bonnes
554e34517e
Better reporting when monitor command fails.
2021-09-22 21:41:43 +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
3df692ecb2
adiv5_swdp_scan: If SWD scan fails, try a JTAG scan.
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
fabalthazar
ea4b232996
Fix de83dbb: duplicate BMP_MODE_FLASH_VERIFY -> BMP_MODE_FLASH_WRITE_VERIFY
2021-06-07 17:29:41 +02:00
Uwe Bonnes
de83dbb7e2
cl-utils: Fix bug introduced with 5288eef6171b9cff194fbeb087bc942bad08d9db
...
Always use the file size for write and verify.
2021-06-01 16:23:19 +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
637d76b585
cl_utils.c: Try jtag scan if swd scan did not give results.
2021-04-21 21:22:59 +02:00
Uwe Bonnes
5288eef617
cl_utils: With no size given, read the size of the lowest block.
2021-04-20 18:48:27 +02:00
fabalthazar
739941dc5f
Verify right after programming
2021-03-31 13:06:52 +02:00
fabalthazar
2982888b66
BMP_MODE_FLASH_WRITE_VERIFY combined operation
2021-03-31 12:07:53 +02:00
fabalthazar
f85c54be97
Prepared -w option
2021-03-31 12:07:53 +02:00
Uwe Bonnes
43770736f1
cl_utils: Rework Flash/Ram printout
2021-03-05 16:49:19 +01: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
8e2f6937d5
hosted: Run target specific monitor commands with -M "command" .
...
Lists available commands: "blackmagic -M help"
Quote multi argument monitor commands, e.g. STM32F1: blackmagic -M "option help"
2021-02-15 17:47:29 +01:00
Uwe Bonnes
165560edd8
cl_utils: target selection '-n' argument needs optarg.
...
foreach now returns the number of targets.
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
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
7365a44989
hosted: Implement SWJ test mode (-T).
...
Continious read/write-back some core register as NOP operation to allow scope
measurement of SWJ timing.
2020-12-12 18:33:09 +01:00
Stoyan Shopov
b5172cf6df
Implement the 'find_debuggers()' function for hosted BMP on windows.
2020-12-11 18:36:48 +01:00
Uwe Bonnes
bd5f4c6ed5
hosted: Consolidate ident output.
2020-12-11 17:55:31 +01:00
Uwe Bonnes
9d55128ab8
cl_utils: Get voltage only once.
2020-11-27 22:26:48 +01:00
Uwe Bonnes
e6823f39de
Hosted: Print version with "-h" and "-t" option.
2020-11-27 22:26:48 +01:00
Uwe Bonnes
e68dd25813
cl_utils: Clarify -d option is BMP/firmware only and deprecate -d.
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
f15b1d7763
cl_utils: Clip opt_flash_start only when not set.
2020-10-23 09:40:15 +02:00
Uwe Bonnes
44bfb62715
Adiv5: Print Designer/Partno when device is not recognized
...
t->idcode is now 16 bit.
2020-10-07 20:12:35 +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
f4eed249eb
hosted/ftdi: Allow to list supported cables.
2020-09-04 11:49:13 +02:00
Uwe Bonnes
aff624b6e0
libftfdi: Allow to specify external resistor SWD connection.
...
More explanations in src/platforms/hosted/Readme.md
2020-09-04 11:49:13 +02:00
Uwe Bonnes
aabd07738e
cl_utils: Use start of flash in memory map as default flash start.
2020-06-05 14:59:30 +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
ef558eebb8
CMSIS-DAP support.
...
Thanks to edbg, pyocd and openocd for code and ideas.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
da45281696
GetTargetVoltage: Print info about voltage only when info is relevant.
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
1e10b96b03
Allow multiple scan routines.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
7956fbc361
cl-utils: Print memory map when test is specified.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
b5182e09d0
cl_utils: When reading from flash to file, truncate the file.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
8db979798c
cl_utils.c: Report read/write speed.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
c5d0902d4c
cl_utils: Fix memory leak.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
815e09bb1b
cl-utils: Add more arguments
2020-06-05 14:59:30 +02:00
Uwe Bonnes
58a8571d5b
stlink: Print Target voltage
...
This adds about 600 bytes.
2020-04-03 16:19:20 +02:00
Uwe Bonnes
b4ab9f328e
pc-hosted: Put serial handling in own files for unix and implement for windows.
...
- If host provided /dev/serial/by-id, device must not be given and
multiple devices may be selected with -s <(partial) serial number>
- On windows, device must by specifies with -d
2020-03-31 17:02:56 +02:00
Uwe Bonnes
18ae2bb50d
cl_utils.c: Include <windows.h> for windows builds that work on files.
2020-03-31 17:02:56 +02:00
Uwe Bonnes
2e185ba578
BMP/PC: Allow to compile with mingw64 ( #615 )
...
__USE_MINGW_ANSI_STDIO 1 must be set befor any windows specific included.
2020-03-24 17:59:13 +01:00