Here is a patch that helps against the well known OVERRUN errors for 
Cortex-M3  ( the problem is even worse for Cortex-A8 )

Basically the patch adds a fixed number ( default 8 ) of  extra tck 
clocks before every DR scan that accesses the target memory bus through 
the DAP_MEMAP.
This makes it possible to increase the jtag_khz,  tested with JLink at 
12MHz,  improving total speed.

Contents:
+ change signature for adi_jtag_dp_scan and adi_jtag_dp_scan_u32 to use 
swjdp_common_t *swjdp instead of arm_jtag_t *jtag_info
+ change SWJDP_IR/DR_APACC to  DAP_IR/DR_APACC to conform with ARM_ADI docs.
+ add swjdp->memaccess_tck field and code for extra tck clocks before 
accessing memory bus
+ Set default memaccess value to 8 for Cortex-M3
+ Add dap memaccess command

Tested with STM32 andOMAP3530 for several weeks, no known problems.

This should apply and build cleanly against trunk.

Regards
Magnus

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to