65 Commits

Author SHA1 Message Date
Jason Kotzin
fdce017311 Merge commit 'f89542c79f6edb0d64e7dfa483501718113f45b5' into sam-update 2022-08-02 09:28:24 -07:00
Jason Kotzin
96a980b682 Merge commit '286b987822a685f6ff86f6522da3733a0c9d7757' into sam-update
# Conflicts:
#	src/command.c
2022-08-02 09:28:14 -07:00
Jason Kotzin
b6896898c2 Merge commit '82be49f05212d36733ab99c6f83ef93a7ff444d1' into sam-update 2022-08-02 01:31:04 -07:00
Jason Kotzin
539fba02ac Merge commit '9e898cc4b8f3e1a5844a3693412a9977a65a0a63' into sam-update 2022-08-01 20:30:35 -07:00
Jason Kotzin
4a2a121e89 Merge commit 'dd3cb193f3a83e99b5a915e9942c295b9d9715d7' into sam-update 2022-08-01 20:30:04 -07:00
Jason Kotzin
a6f8944afe Merge commit '88ec55768389c6c4de69ecd6e101f6b136c25a8f' into sam-update 2022-08-01 20:10:32 -07:00
Jason Kotzin
4b4d0fcfcf Merge commit 'a65ce77466077b4259d99232d6f3c168b476ce79' into sam-update 2022-08-01 20:05:36 -07:00
Jason Kotzin
1ba83f3283 Merge commit '17b817f37bca85c9b469470742ecdeedf02f7b3e' into sam-update 2022-08-01 19:21:27 -07:00
Jason Kotzin
81fafae68d Merge commit '44fc24e0e747293fa05b62ed7439501553829b0b' into sam-update 2022-08-01 19:20:52 -07:00
Jason Kotzin
da701aff6d Merge commit '455e0a74d2a77f2ae1f0acf53b778e41b890523e' into sam-update 2022-08-01 18:56:50 -07: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
Ryan
cd325dfe52 samd: convert_tdio requires enable/disable 2019-05-16 13:18:05 -07:00
Jason Kotzin
94238fd95b samd: ability to printout entire serial number 2019-03-29 16:34:12 -07: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
Ryan
100fc2e7d4 samd: added command to toggle srst pin when not used 2019-02-11 16:15:03 -08:00
Uwe Bonnes
6df793dbf0 Revert "Allow to specificy if SRST is asserted and when it is released."
This reverts commit 44fc24e0e747293fa05b62ed7439501553829b0b.
2019-01-07 13:22:01 +13:00
Ryan
84b6818982 samd: convert_tdio command cleaned up 2018-09-28 14:54:31 -07:00
Ryan
4aee9fe2a3 samd: enter_bootldr command, bootldr button 2018-09-28 14:37:33 -07:00
Ryan
a599b989cf samd: TDI/O conversion, usart line coding 2018-09-05 12:10:43 -07:00
Ryan
50658a5c0a samd: small fixes to uart 2018-08-27 16:22:48 -07:00
Ryan
f828fc1ac1 samd voltage detection and line coding 2018-08-07 14:32:00 -07: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
Richard Eoin Meadows
c9089f5851 Added monitor option to toggle target power 2014-05-28 12:25:48 +01:00
Gareth McMullin
8c877d6dfa Fix trailing whitespace everywhere. 2013-06-17 15:53:32 +12:00
Paul Fertser
e0fc21a2a7 adiv5_swdp: allow to connect to a sleeping target by pulling SRST
This patch introduces a new command, "connect_srst [enable|disable]"
which allows to enable special mode in which SRST would be pulled low
before the SWD scan till attaching to a target.

Since on Cortex-Mx the SRST signal doesn't gate JTAG and SWD, it's
possible to connect to a target while holding reset, ask it to stop at
reset vector and only then deassert reset, thus allowing to attach to
the kind of firmware that goes immediately to sleep or disables
debugging by other means early on start.

Tested on an STM32VLDiscovery board with STM32F100 configured to go to
STOP mode and executing WFI in the very beginning of main().

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2013-05-14 12:32:44 +12:00
Gareth McMullin
89b908337d Add missing #includes 2013-04-16 12:36:19 -07:00