summaryrefslogtreecommitdiff
path: root/src/flash/lpc2000.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-25 07:50:03 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-25 07:50:03 +0000
commite482118106c63edd3c9f6647e4232e90b4c16066 (patch)
tree3e0e8e1c4a135b5631a7ba32f383f844576cfc30 /src/flash/lpc2000.c
parent815c3b353307796fb4d86a1880679dacaed00b6e (diff)
downloadopenocd+libswd-e482118106c63edd3c9f6647e4232e90b4c16066.tar.gz
openocd+libswd-e482118106c63edd3c9f6647e4232e90b4c16066.tar.bz2
openocd+libswd-e482118106c63edd3c9f6647e4232e90b4c16066.tar.xz
openocd+libswd-e482118106c63edd3c9f6647e4232e90b4c16066.zip
- using ERROR_COMMAND_SYNTAX_ERROR to print syntax in a couple of places
- some more flash cleanup of checking halted state - moved output handler into options.c - very slightly tweaked server.c to make it a bit more compatible with eCos - retired arch_state. Not quite sure how I managed to leave that out last time. git-svn-id: svn://svn.berlios.de/openocd/trunk@338 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/lpc2000.c')
-rw-r--r--src/flash/lpc2000.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/flash/lpc2000.c b/src/flash/lpc2000.c
index da79ea73..009c0c05 100644
--- a/src/flash/lpc2000.c
+++ b/src/flash/lpc2000.c
@@ -476,11 +476,6 @@ int lpc2000_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
int i;
working_area_t *download_area;
- if (bank->target->state != TARGET_HALTED)
- {
- return ERROR_TARGET_NOT_HALTED;
- }
-
/* allocate a working area */
if (target_alloc_working_area(target, lpc2000_info->cmd51_max_buffer, &download_area) != ERROR_OK)
{
@@ -654,8 +649,7 @@ int lpc2000_handle_part_id_command(struct command_context_s *cmd_ctx, char *cmd,
if (argc < 1)
{
- command_print(cmd_ctx, "usage: lpc2000 part_id <num>");
- return ERROR_OK;
+ return ERROR_COMMAND_SYNTAX_ERROR;
}
bank = get_flash_bank_by_num(strtoul(args[0], NULL, 0));