diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-03-01 21:04:00 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-03-01 21:04:00 +0000 |
commit | 6853abeb901960c31a20eedf469b6dcb5c45dd56 (patch) | |
tree | b97e521a27b0334e9a03700fdcfb020d4038b227 /src | |
parent | 9f1ba4b34b0f9456201c07a98f6ca90442f1ff2b (diff) | |
download | openocd+libswd-6853abeb901960c31a20eedf469b6dcb5c45dd56.tar.gz openocd+libswd-6853abeb901960c31a20eedf469b6dcb5c45dd56.tar.bz2 openocd+libswd-6853abeb901960c31a20eedf469b6dcb5c45dd56.tar.xz openocd+libswd-6853abeb901960c31a20eedf469b6dcb5c45dd56.zip |
Nicolas Pitre nico at cam.org fix feroceon_bulk_write_memory() wrt uploaded code
git-svn-id: svn://svn.berlios.de/openocd/trunk@1392 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/target/feroceon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/feroceon.c b/src/target/feroceon.c index df0feb0d..08512a4b 100644 --- a/src/target/feroceon.c +++ b/src/target/feroceon.c @@ -569,7 +569,7 @@ int feroceon_bulk_write_memory(target_t *target, u32 address, u32 count, u8 *buf target_buffer_set_u32(target, dcc_code_buf + i*4, dcc_code[i]); /* write DCC code to working area */ - if((retval = target->type->write_memory(target, arm7_9->dcc_working_area->address, 4, dcc_size, dcc_code_buf)) != ERROR_OK) + if((retval = target->type->write_memory(target, arm7_9->dcc_working_area->address, 4, dcc_size/4, dcc_code_buf)) != ERROR_OK) { return retval; } |