Hi all, Recent NAND file I/O changes are parsing the wrong argument for the size. Should be third argument, not second.
// Dean Glazeski
From e569df94abf628bcec2652971fc825fc5e46193b Mon Sep 17 00:00:00 2001 From: Dean Glazeski <[email protected]> Date: Wed, 18 Nov 2009 23:22:25 -0600 Subject: [PATCH] nand_fileio_parse_args parses wrong param for size This changes the size parameter from argv[2] to argv[3], which is what it's supposed to be. --- src/flash/nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/flash/nand.c b/src/flash/nand.c index b79abbc..ccc3f46 100644 --- a/src/flash/nand.c +++ b/src/flash/nand.c @@ -1408,7 +1408,7 @@ static COMMAND_HELPER(nand_fileio_parse_args, struct nand_fileio_state *state, COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], state->address); if (need_size) { - COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], state->size); + COMMAND_PARSE_NUMBER(u32, CMD_ARGV[3], state->size); if (state->size % nand->page_size) { command_print(CMD_CTX, "only page-aligned sizes are supported"); -- 1.6.2.5
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
