On Sat, Nov 12, 2011 at 2:17 AM, James Zhao <[email protected]> wrote: > Just wondering is OpenOCD suppose to be CoreSight compatible, cause I am > running it on a chip with CoreSight and getting random STICKYERR.
Might be compatible, but does not support sticky flags handling (yet). This needs to be done in order to make SWD work, I am working on this right now :-) As stated in target/arm_adi_v5.c JTAG used delays to avoid sticky errrors rather than handling them: * This programming interface allows DAP pipelined operations through a * transaction queue. This primarily affects AP operations (such as using * a MEM-AP to access memory or registers). If the current transaction has * not finished by the time the next one must begin, and the ORUNDETECT bit * is set in the DP_CTRL_STAT register, the SSTICKYORUN status is set and * further AP operations will fail. There are two basic methods to avoid * such overrun errors. One involves polling for status instead of using * transaction piplining. The other involves adding delays to ensure the * AP has enough time to complete one operation before starting the next * one. (For JTAG these delays are controlled by memaccess_tck.) Maybe you simply need to slow down..? :-) Best regards :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
