Koen De Vleeschauwer
0a0f5a9dd7
rtt
2022-05-31 21:15:41 -04:00
Piotr Esden-Tempski
5e3cadec20
Updated Copyright and Vendor strings to Black Magic Debug.
...
The project is not part of Black Sphere Technologies any more. It was
renamed to Black Magic Debug instead.
2022-05-30 15:09:55 -07:00
Thiadmer Riemersma
64f756d627
Test voltage on VREF before enabling target power (mon tpwr), to avoid potential power conflict.
2021-09-22 20:45:18 +02:00
Uwe Bonnes
88cce08ce4
hosted: Fix "monitor version"
2021-09-22 15:16:20 +02:00
Uwe Bonnes
8e438b9e5f
Add missing headers and remove double typedef.
2021-05-14 19:58:16 +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
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
1ca9f234f7
Infrastructure for setting maximum SWJ frequency.
...
Implement for BMP/firmware on STM32.
2020-12-12 18:33:09 +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
5c7e0eedb0
command.c: Consolidate "mon version" output
2020-12-06 15:18:08 +01:00
Stoyan Shopov
e318f884bf
Change the type of 'cortexm_wait_timeout' to unsigned.
...
It makes sense that the timeout value is unsigned, it also
resolves build errors on some platforms.
2020-12-04 11:44:50 +01:00
Uwe Bonnes
73e6b540b2
command: When debug channel is available, print morse messages readable.
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
77231e8972
serial_no: Fix error with "mon trace" #732
...
launchpad-icdi: Allow to set a serial number with make
2020-09-20 13:23:52 +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
9a46c6fd25
Allow BOARD_IDENT as function
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
f3790b90e5
command.c: Simplify usage of serial_no serial number string.
2020-06-05 14:59:30 +02:00
Uwe Bonnes
05adcd9bf5
remote.c: Compile only relevant functions.
...
Do no compile firmware functions when compiling pc-hosted.
2020-06-05 14:59:30 +02:00
Koen De Vleeschauwer
541861e978
traceswo decoding
2020-05-16 15:04:35 +02:00
Koen De Vleeschauwer
9f8c7be360
semihosting
2020-05-02 12:55:29 +02:00
Thiadmer Riemersma
1924aa4999
Make baudrate parameter of traceswo command mandatory for stlink/swlink, and superfluous on other platforms; change help message accordingly.
2019-11-19 20:20:13 +01:00
Roland Ruckerbauer
58febdff79
Fixed tokenization of gdb monitor commands.
2019-10-19 13:25:26 +02:00
Uwe Bonnes
1cf0b8ac13
Make all arguments for all commands (struct *t, int argc, const char **argv).
...
-Wall on gcc8 otherwise warns without -Wno-cast-function-type but older
GCCs/CLang choke on that argument:
error: unknown warning option '-Wno-cast-function-type'; did you mean
'-Wno-bad-function-cast'? [-Werror,-Wunknown-warning-option]
This adds 24 byte to the binary, as some functions are now called with
additional dummy arguments:
"Pushing and popping garbage to keep the system happy"
2019-09-29 12:44:55 +02:00
UweBonnes
00937348b3
Fixes to compile "make ENABLE_DEBUG=1 all_platforms" ( #515 )
2019-09-04 13:09:43 +02:00
Uwe Bonnes
5fbb3a44fd
PC-STLINKV2/Libftdi: Better version string.
2019-08-27 15:13:26 +02:00
Uwe Bonnes
fa27649f87
Remove debug_bmp command on PC hosted platforms.
2019-08-27 15:13:26 +02:00
Uwe Bonnes
9e898cc4b8
adiv5: Add more coresight part numbers found on STM32MP157c-DK2 ( #492 ).
...
Only print corename if not NULL.
2019-07-18 17:39:48 +02:00
Uwe Bonnes
dd3cb193f3
Indicate the Core in the Target list.
2019-07-17 17:38:21 +02:00
Jeremy Elson
3235fa2005
Improve parsing of commands that require enable or disable arguments:
...
* Accept prefixes of the words 'enable' and 'disable'
* Prevent silent failures on parse errors
* Print status after flag changes
* Fix missing includes
2019-03-19 12:56:44 -07:00
Uwe Bonnes
6df793dbf0
Revert "Allow to specificy if SRST is asserted and when it is released."
...
This reverts commit 44fc24e0e7
.
2019-01-07 13:22:01 +13:00
Uwe Bonnes
17b817f37b
cortexm: Allow to set timeout to wait for halt.
...
This allows to gain access to devices spending long time in WFI without
the need for a reset, at the expense of possible long waiting times.
Using Reset means loosing the device runtime context.
2018-06-13 14:03:50 +02:00
Uwe Bonnes
44fc24e0e7
Allow to specificy if SRST is asserted and when it is released.
...
E.g. for STM32L0 and F7, IDCODE register can not be read while device is
under Reset.
2018-06-13 13:46:07 +02:00
Uwe Bonnes
93bc3a155a
traceswo: Provide command option for async swo.
2018-03-27 13:40:49 +02:00
Gareth McMullin
40f960db4d
Restore LED behaviour.
2016-09-28 22:15:15 -07:00
Gareth McMullin
5c5f76d60e
target: Remove last accesses to private structure from outside.
...
Only include target_internal.h from inside target files.
2016-07-13 08:31:09 +12:00
Gareth McMullin
07f27d1b70
Hide target list internals form command.c
...
Remove unused support for extended target structure size.
2016-07-13 08:31:09 +12:00
Gareth McMullin
e28e158721
Move *scan prototypes to target.h.
2016-07-13 08:31:09 +12:00
Gareth McMullin
9c5ff37bf8
Add monitor command to force SRST
2016-06-28 14:35:43 +12:00
Piotr Esden-Tempski
20c994eece
Added black magic verbose/debug mode switch.
2016-06-22 17:28:26 -07:00
Gareth McMullin
cd1d72257f
Cleanup of SRST handling.
...
- Remove connect_assert_srst global.
- Attach functions always release reset.
- Platforms provide a method to poll the reset pin.
- Reset on scan is all internal to command.c
- Reset is released on a failed scan. Fixes #111
2016-04-19 13:12:16 -07:00
Piotr Esden-Tempski
b7e5005679
[native] Check for hardware version by pull-up and -down. Print HW Version in mon command.
...
Until now the native hardware was pulling PB5-7 down and checking if
they were asserted high. BMPMV2b is pulling the pins down instead of
high. The hardware version routine now determines the hardware version
based on the fact if a pin is asserted at all. This means that if a pin
is left floating, the version number bit will be 0, and if the pin is
asserted either high or low the bit will be set to 1. While we were
already at it the "monitor version" command in GDB will now also print
the hardware version number.
2016-02-14 22:49:29 -08:00
Gareth McMullin
482070c91b
Merge branch 'v1.6-branch'
...
Conflicts:
src/Makefile
src/platforms/stlink/platform.h
src/platforms/swlink/platform.h
2015-04-03 21:02:01 -07:00
Gareth McMullin
97824b7f02
Use git describe for version in generated header file.
2015-04-03 20:21:33 -07:00
Gareth McMullin
d0a03f55a6
Handle timeout exceptions during scans and report to the user.
2015-03-22 12:26:45 -07:00
Gareth McMullin
4d4813de87
Clean up includes everywhere.
...
All source files include general.h first and before anything else.
This inlcludes platform.h and platform_support.h
No header file needs to include to include any of these, but should include
any others needed for it's own declarations.
2015-03-01 22:16:04 -08:00
Gareth McMullin
75001a4421
Factor Morse code functions out of platform code.
2015-02-28 22:05:10 -08:00
Gareth McMullin
5d136398e1
Use sensible return convention for platform_target_get_power()
2015-02-28 21:23:24 -08:00
Gareth McMullin
8a32b46f65
Fix build for non-native targets.
2014-08-08 20:22:33 +12:00