From: <oh...@ma...> - 2009-03-01 22:04:06
|
Author: oharboe Date: 2009-03-01 22:04:00 +0100 (Sun, 01 Mar 2009) New Revision: 1392 Modified: trunk/src/target/feroceon.c Log: Nicolas Pitre nico at cam.org fix feroceon_bulk_write_memory() wrt uploaded code Modified: trunk/src/target/feroceon.c =================================================================== --- trunk/src/target/feroceon.c 2009-03-01 21:02:13 UTC (rev 1391) +++ trunk/src/target/feroceon.c 2009-03-01 21:04:00 UTC (rev 1392) @@ -569,7 +569,7 @@ 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; } |