This is an automated email from Gerrit. Andreas Fritiofson ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/1769
-- gerrit commit 6141794576a27e5c2d45a790c5353f14ececd6bd Author: Andreas Fritiofson <[email protected]> Date: Sat Sep 28 21:28:08 2013 +0200 aduc702x: Fix byte order bug Found by grepping for pointer casts. Change-Id: I00e000515cb2573130b73423eb19ba941f524b05 Signed-off-by: Andreas Fritiofson <[email protected]> diff --git a/src/flash/nor/aduc702x.c b/src/flash/nor/aduc702x.c index a0610d4..60ec7d3 100644 --- a/src/flash/nor/aduc702x.c +++ b/src/flash/nor/aduc702x.c @@ -206,8 +206,10 @@ static int aduc702x_write_block(struct flash_bank *bank, return ERROR_TARGET_RESOURCE_NOT_AVAILABLE; } - retval = target_write_buffer(target, write_algorithm->address, - sizeof(aduc702x_flash_write_code), (uint8_t *)aduc702x_flash_write_code); + uint8_t code[sizeof(aduc702x_flash_write_code)]; + target_buffer_set_u32_array(target, code, ARRAY_SIZE(aduc702x_flash_write_code), + aduc702x_flash_write_code); + retval = target_write_buffer(target, write_algorithm->address, sizeof(code), code); if (retval != ERROR_OK) return retval; -- ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
