aboutsummaryrefslogtreecommitdiff
path: root/src/adiv5_swdp.c
AgeCommit message (Collapse)Author
2015-03-22Use controlled timeout on SW/JTAG DP transactions.Gareth McMullin
2015-03-22Raise timeout exception when target is in WFI.Gareth McMullin
Ignore the exception when polling for halt, and report the exception to the user if halting the target fails. Remove old allow_timeout flag in DP struct that's no longer needed.
2015-03-22Add exception handling mechanism and raise exception on low-level comms failure.Gareth McMullin
2015-03-15Remove abstraction of adiv5_dp_write. Both implementations were identical.Gareth McMullin
2015-03-14adiv5: Encode APnDP into register definition.Gareth McMullin
Clean up magic numbers in adiv5 calls. Removed old adiv5_dp_write_ap and adiv5_dp_read_ap.
2015-03-01Clean up includes everywhere.Gareth McMullin
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-02-28Factor Morse code functions out of platform code.Gareth McMullin
2013-06-19Handle SW-DP fault on WDATAERR.Gareth McMullin
2013-06-19Disable ADIv5 timeout while target is running.Gareth McMullin
2013-06-19adiv5_swdp: avoid dead-loop with a sleeping targetPaul Fertser
A sleeping target continues to communicate over SWD properly but consistently returns SWDP_ACK_WAIT. It might be nice to be able to wait for the target to wake up on its own but if it's not going to wake up, BMP becomes absolutely unresponsive. Probably the timeout should be made configurable or some other workaround invented. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2013-06-17Fix trailing whitespace everywhere.Gareth McMullin
2013-05-14adiv5_swdp: allow to connect to a sleeping target by pulling SRSTPaul Fertser
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>
2012-07-05ADIv5 AP and DP are now allocated on the heap and reference counted.Gareth McMullin
They are unref'd and free'd automatically when the target list is destroyed.
2012-06-24Added target.c for common target routines.Gareth McMullin
2011-03-08Further cleanup of adiv5*Gareth McMullin
2011-03-07Removed useless abstraction of low-level AP access functions.Gareth McMullin
2011-03-05Cleaned up some magic numbers in adiv5*Gareth McMullin
2011-02-18Added git info to version output.Gareth McMullin
Fixed memory leak in SWD mode.
2011-02-07Replaced some binary constants with hex.Gareth McMullin
2011-02-07Restored old Linux platform and added untested SWDP support.Gareth McMullin
2011-02-04Import of working source tree.Gareth McMullin