summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wipHEADmasterTrygve Laugstøl2012-02-221-6/+15
|
* A working version for my EFM board.Trygve Laugstøl2012-02-226-25/+207
|
* Updated submodules/libswd to match current git head.Tomek CEDRO2012-02-091-0/+0
|
* 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
|
* submodules/libswd: updated to use latest libswd git head.Tomek CEDRO2012-01-021-0/+0
|
* interface: minor updates in debug messages.Tomek CEDRO2012-01-021-4/+4
|
* target/arm_adi: Cleaned up the mem_ap_read_buf_u32_swd(), found practical ↵Tomek CEDRO2011-12-101-88/+40
| | | | way to read from MEM-AP with SWD, slightly different than specified in ARM documentation.
* target/arm_adi: imagine that this mess worksgit add arm_adi_v5.c now we need ↵Tomek CEDRO2011-12-101-46/+132
| | | | to get some conclustions out of it because arm documentation again is a mess.
* 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?).
* Minor change in sticky bitnames of ABORT register.Tomek CEDRO2011-11-153-13/+13
|
* target/arm_adi_v5: Split mem_ap_read_buf_u32 into mem_ap_read_buf_u32_jtag() ↵Tomek CEDRO2011-11-151-32/+97
| | | | the old one and mem_ap_read_buf_u32_swd() for swd targets. This is sill dirty and unworking code.
* submodules/libswd: Updated submodules/libswd to use updated master.Tomek CEDRO2011-11-121-0/+0
|
* transport: Transport init now fills jtag_interface->transport value, so both ↵Tomek CEDRO2011-11-121-0/+6
| | | | SWD and JTAG work again.
* 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.
* target/arm_adi_v5: ahbap_debugport_init() returns error when both ↵Tomek CEDRO2011-11-061-3/+6
| | | | CDBGPWRUPACK|CSYSPWRUPACK flags are not set after read retries - this may indicate communication failure.
* submodule/libswd updated again.Tomek CEDRO2011-11-061-0/+0
|
* submodule/libswd: updated to use recent libswd git master.Tomek CEDRO2011-11-061-0/+0
|
* TODO scratchpad to remember what needs to be done.Tomek CEDRO2011-11-051-0/+6
|
* Merge branch 'master' of ssh://repo.or.cz/srv/git/openocd/libswdTomek CEDRO2011-11-042-5/+4
|\
| * transport/swd_drv: Fixed [-Werror=unused-but-set-variable] build error on ↵Tomek CEDRO2011-11-031-2/+1
| | | | | | | | ubuntu 11.10.
| * Merge branch 'master' of ssh://repo.or.cz/srv/git/openocd/libswdTomek CEDRO2011-11-034-9/+37
| |\
| * | target/arm_adi_v5.c: Fixed compiler warnings (-Werror=uninitialized) ↵Tomek CEDRO2011-11-031-3/+3
| | | | | | | | | | | | producing compilation errors on ubuntu linux 11.10.
* | | target/arm_adi_v5: Added SW-DP style sticky error flag hanfling in ↵Tomek CEDRO2011-11-041-3/+19
| | | | | | | | | | | | ahbap_debugport_init().
* | | transport/swd: Added SWD_LOGLEVEL_PAYLOAD to be inherited when Debug level ↵Tomek CEDRO2011-11-041-1/+1
| | | | | | | | | | | | is set in OpenOCD.
* | | 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.
* | Added simple pointer test program to testing/pointertest.c.Tomek CEDRO2011-11-031-0/+24
| |
* | Fixed bad SWD_ACK values definitions.Tomek CEDRO2011-11-021-2/+2
| |
* | transport/swd_drv: Fixed critical issue with bitswapping of transmitted ↵Tomek CEDRO2011-11-021-7/+6
| | | | | | | | data. ACK and DATA packets are always transmitted LSb-First, no matter how ARM draws its fuckin timing diagrams!
* | driver/ft2232: Added raw-wire level debug of data read/written by ft2232. ↵Tomek CEDRO2011-11-021-0/+5
|/ | | | This might help debug bugs in drivers ;-)
* transport/swd: unused variables and headers build fixes for linux ubuntu ↵Tomek CEDRO2011-11-023-10/+11
| | | | 11.04. Thanks to Przemyslaw Wegrzyn for pointing this out :-)
* transport/swd_drv: Fixed header issues causing linux build problems. Thanks ↵Tomek CEDRO2011-11-011-7/+1
| | | | to Przemysław Węgrzyn for pointing this out :-)
* Added helper script for faster configure execution on my freebsd platform. ↵Tomek CEDRO2011-11-011-0/+3
| | | | Will be removed when job is done.
* bootstrap also bootstraps submodules/libswd if necessary (when no configure ↵Tomek CEDRO2011-11-011-0/+6
| | | | file exist for that submodule, so git/master is used, not a release).
* submodules/libswd: openocd's fork master now use libswd master. This will ↵Tomek CEDRO2011-11-011-0/+0
| | | | improve development of libswd master.
* submodules/libswd: updated to use libswd-0.2 release/branch.Tomek CEDRO2011-10-311-0/+0
|
* SWD: swd tcl commands are now available from CLI and initialized at program ↵Tomek CEDRO2011-10-135-3/+9
| | | | startup with other commands.
* swd/libswd_drv: fixed pointers output in debug strings that produced errors ↵Tomek CEDRO2011-09-271-8/+8
| | | | on 64bit machines, now use %p.
* Updated LibSWD submodule to match repository updates.Tomek CEDRO2011-09-111-0/+0
|
* target/arm_adi_v5.c: experimental change in mem_ap_read_buf_u32() to work ↵Tomek CEDRO2011-09-111-15/+78
| | | | with SWD and become JTAG independent. This may break ARM target support for JTAG. Original function was renamed to mem_ap_read_buf_u32_old().
* transport/swd: In libswd log messages contain \n as required, so internal ↵Tomek CEDRO2011-09-111-1/+1
| | | | swd_log() does not produce endline anymore.
* transport/swd: Minor fix - messages automatic newline termination.Tomek CEDRO2011-09-112-4/+4
|
* transport/swd: Changes in logging mechanism: 1. LogLevel is inherited during ↵Tomek CEDRO2011-09-113-45/+18
| | | | 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: We stay with the name TAP as the 'plug' into DAP.Tomek CEDRO2011-09-101-1/+2
|
* 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-094-0/+136
| | | | 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-092-2/+2
|
* transport/libswd_drv: swd_log_level_inherit() now returns value of resulting ↵Tomek CEDRO2011-09-091-1/+1
| | | | loglevel inherited from openocd.
* transport/swd: fixed swd context pointer, minor changes.Tomek CEDRO2011-09-091-39/+10
|