I am using a Cortex-a8 to debug the linux Kernel using openocd+gdb and
after have the MMU enabled,
I can't use single step after openocd issue this message.
Error: 1531 213437 cortex_a.c:536 cortex_a8_dpm_prepare():
DSCR_DTR_RX_FULL, dscr 0x4b0f604f
The problem is not new and I have already reported on this list. At that
time I figured out that openocd has no support for thumb2 breakpoint and I
supposed that this maybe the reason I was having the problem. I developed a
patch (already posted on this list) that implement the support for thumb2
breakpoint for cortex-a8 that it's working perfectly but unfortunately
doesn't fix the original problem.
I have been trying to figure out why that is happening but so far I have no
idea. Any suggestion or explanation is welcome.
Thanx
static int cortex_a8_dpm_prepare(struct arm_dpm *dpm)
{
struct cortex_a8_common *a8 = dpm_to_a8(dpm);
struct adiv5_dap *swjdp = a8->armv7a_common.arm.dap;
uint32_t dscr;
int retval;
VALGRIND_PRINTF_BACKTRACE("======= Backtrace ======\n");
/* set up invariant: INSTR_COMP is set after ever DPM operation */
long long then = timeval_ms();
for (;; ) {
retval = mem_ap_sel_read_atomic_u32(swjdp, swjdp_debugap,
a8->armv7a_common.debug_base + CPUDBG_DSCR,
&dscr);
if (retval != ERROR_OK)
return retval;
if ((dscr & DSCR_INSTR_COMP) != 0)
{
break;
}
if (timeval_ms() > then + 1000) {
LOG_ERROR("Timeout waiting for dpm prepare");
return ERROR_FAIL;
}
}
* /* this "should never happen" ... */
if (dscr & DSCR_DTR_RX_FULL) {
VALGRIND_PRINTF_BACKTRACE("this ***should never happen***
...\n");
LOG_ERROR("DSCR_DTR_RX_FULL, dscr 0x%08" PRIx32, dscr);
/* Clear DCCRX */
retval = cortex_a8_exec_opcode(
a8->armv7a_common.arm.target,
ARMV4_5_MRC(14, 0, 0, 0, 5, 0),
&dscr);
if (retval != ERROR_OK)
return retval;
}*
return retval;
}
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel