- stops multiple calls to examine from allocating the breakpoint arrays
git-svn-id: svn://svn.berlios.de/openocd/trunk@1171 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
c0787b6994
commit
76b3c6ece6
|
@ -1357,11 +1357,13 @@ int cortex_m3_examine(struct target_s *target)
|
|||
cortex_m3_common_t *cortex_m3 = armv7m->arch_info;
|
||||
swjdp_common_t *swjdp = &cortex_m3->swjdp_info;
|
||||
|
||||
target->type->examined = 1;
|
||||
|
||||
if ((retval = ahbap_debugport_init(swjdp)) != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
if (!target->type->examined)
|
||||
{
|
||||
target->type->examined = 1;
|
||||
|
||||
/* Read from Device Identification Registers */
|
||||
if ((retval = target_read_u32(target, CPUID, &cpuid)) != ERROR_OK)
|
||||
return retval;
|
||||
|
@ -1402,6 +1404,7 @@ int cortex_m3_examine(struct target_s *target)
|
|||
{
|
||||
cortex_m3->dwt_comparator_list[i].dwt_comparator_address = DWT_COMP0 + 0x10 * i;
|
||||
}
|
||||
}
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue