DCC downloads should be enabled for any self repecting openocd config file for arm7/9. Print out note about it otherwise.
Signed-off-by: Øyvind Harboe <[email protected]> --- src/target/arm7_9_common.c | 11 +++++++++++ src/target/arm7_9_common.h | 1 + 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 2f4c408..bba0805 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -2723,6 +2723,17 @@ int arm7_9_examine(struct target *target) return retval; } + +int arm7_9_check_reset(struct target *target) +{ + struct arm7_9_common *arm7_9 = target_to_arm7_9(target); + + if (!arm7_9->dcc_downloads) + { + LOG_WARNING("NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'."); + } +} + COMMAND_HANDLER(handle_arm7_9_dbgrq_command) { struct target *target = get_current_target(CMD_CTX); diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h index 021238e..93bee07 100644 --- a/src/target/arm7_9_common.h +++ b/src/target/arm7_9_common.h @@ -157,5 +157,6 @@ int arm7_9_execute_sys_speed(struct target *target); int arm7_9_init_arch_info(struct target *target, struct arm7_9_common *arm7_9); int arm7_9_examine(struct target *target); +int arm7_9_check_reset(struct target *target); #endif /* ARM7_9_COMMON_H */ -- 1.6.3.3 _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
