summaryrefslogtreecommitdiff
path: root/src/transport/swd_core.c
Commit message (Collapse)AuthorAgeFilesLines
* EXPERIMENTAL! Introducing infrastructure for automatic retry/error handling ↵Tomek CEDRO2012-02-091-6/+35
| | | | by libswd internals. Will change and might not work as expected, feel free to test and feedback results :-) The goal is to have enqueued by openocd operations executed with no need for error handling (which is impossible on multiple operations enqueued and also not supported by openocd anyway) just as they were executed correctly for the first time. Error handling, retries, communication verification, etc should be done by underlying transport library (libswd in this case). swdctx->config.trunccmdqonerror=0 will result in untouched queue on error response from target (before the queue was truncated to make room for manual error handling). work in progres...
* EXPERIMENTAL - many read operations can be enqueued and flushed at once. ↵Tomek CEDRO2012-02-091-6/+6
| | | | Target read functions should now work with double pointers in order to return data on flush and not produce flush on read.
* Minor update of date in file header.Tomek CEDRO2012-02-091-1/+1
|
* transport/swd_core: Implemented oocd_swd_queue_ap_abort() that sets DAPABORT ↵Tomek CEDRO2011-11-151-4/+9
| | | | and all sticky error flags (do we need to clear them anyway even after ABORT?).
* transport/swd: Fixed critical bugs in AP/DP read code: 1. double pointer did ↵Tomek CEDRO2011-11-061-4/+6
| | | | not return data where is should, 2. calling reads with NULL pointer caused program crash.
* transport/swd: Read operation forces queue flush, as multiple operations ↵Tomek CEDRO2011-11-041-3/+3
| | | | cannot be queued up and fulshed at later time because OpenOCD use single pointers for data return from function and it is impossible to read out dynamically allocated memory this way in C.
* transport/swd: unused variables and headers build fixes for linux ubuntu ↵Tomek CEDRO2011-11-021-6/+4
| | | | 11.04. Thanks to Przemyslaw Wegrzyn for pointing this out :-)
* SWD: swd tcl commands are now available from CLI and initialized at program ↵Tomek CEDRO2011-10-131-1/+1
| | | | startup with other commands.
* transport/swd: Changes in logging mechanism: 1. LogLevel is inherited during ↵Tomek CEDRO2011-09-111-11/+6
| | | | transport initialization and only if context is created. 2. swd_log() use vprintf as using openocd logging mechanisms caused program crash by va recurrence. 3. Fixed tcl interface to use/update loglevel configuration parameter from swdctx stored within dap.
* transport/swd: SWD Context initialization is now made by transport_init(), ↵Tomek CEDRO2011-09-101-31/+33
| | | | after the DAP is created, DAP also holds the swdctx. transport_select() now only marks transport type and registers swd transport commands. Target system now consists of TAP (that is the test access port of the device), DAP (that is the debug access port of the arm system) and the TARGET+FLASH itself that allow to perform operations on the target architecture + memory. Interface and Transport connects to the TAP and allows operations on the TARGET using DAP.
* transport/swd: Introduced swd_tcl.c, a TCL interface for SWD. Commands are ↵Tomek CEDRO2011-09-091-0/+6
| | | | registered at transport select. Available commands are 'newdap' currently pointing to jtag_newtap, 'loglevel' that can show/set/inherit loglevel for easier log analysis during development.
* transport/swd: renamed swd.c into swd_core.c, Makefile.am update.Tomek CEDRO2011-09-091-0/+281