diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-17 19:40:17 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-17 19:40:17 +0000 |
commit | 330cf5a6bb23063947d9cff661b61a82d3221c7a (patch) | |
tree | 3743176cd90c2e41791a79cf20a11db748e11dda /src/flash/stellaris.c | |
parent | c1683a55bc6cce7cb54a30789b9d15443b557b69 (diff) | |
download | riscv-openocd-330cf5a6bb23063947d9cff661b61a82d3221c7a.zip riscv-openocd-330cf5a6bb23063947d9cff661b61a82d3221c7a.tar.gz riscv-openocd-330cf5a6bb23063947d9cff661b61a82d3221c7a.tar.bz2 |
fixed not halted error messages
git-svn-id: svn://svn.berlios.de/openocd/trunk@925 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/stellaris.c')
-rw-r--r-- | src/flash/stellaris.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c index c4bc4dc..fa94451 100644 --- a/src/flash/stellaris.c +++ b/src/flash/stellaris.c @@ -520,6 +520,7 @@ int stellaris_protect_check(struct flash_bank_s *bank) if (bank->target->state != TARGET_HALTED) { + LOG_ERROR("Target not halted"); return ERROR_TARGET_NOT_HALTED; } @@ -549,6 +550,7 @@ int stellaris_erase(struct flash_bank_s *bank, int first, int last) if (bank->target->state != TARGET_HALTED) { + LOG_ERROR("Target not halted"); return ERROR_TARGET_NOT_HALTED; } @@ -619,6 +621,7 @@ int stellaris_protect(struct flash_bank_s *bank, int set, int first, int last) if (bank->target->state != TARGET_HALTED) { + LOG_ERROR("Target not halted"); return ERROR_TARGET_NOT_HALTED; } @@ -814,6 +817,7 @@ int stellaris_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count if (bank->target->state != TARGET_HALTED) { + LOG_ERROR("Target not halted"); return ERROR_TARGET_NOT_HALTED; } @@ -915,6 +919,7 @@ int stellaris_probe(struct flash_bank_s *bank) if (bank->target->state != TARGET_HALTED) { + LOG_ERROR("Target not halted"); return ERROR_TARGET_NOT_HALTED; } @@ -941,6 +946,7 @@ int stellaris_mass_erase(struct flash_bank_s *bank) if (target->state != TARGET_HALTED) { + LOG_ERROR("Target not halted"); return ERROR_TARGET_NOT_HALTED; } |