Ouch.... it's actually target_write_buffer() that breaks these rules.... target_write_buffer() aligns only the target address and does not consider the host address...
As the jtag_add_xxscan() API is byte based, then we manage to escape problems, but post 0.4 I think target_write_buffer() should be fixed.... somehow.... The problem is that the performance if is not going to be entirely trivial for embedded hosts as adding e.g. a memcpy to align the source memory is going to add significant overhead.... There is a lot of history and chances for breaking stuff here in subtle ways that is not going to be reproducible on all host platforms... Yuk! I'll open a ticket. -- Øyvind Harboe Visit us at Embedded World, March 2nd-4th. IS2T's stand, HALL 10 - 118 http://www.zylin.com/events_embeddedworld.html US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development