There are 3 solutions i know: 1.) always read 8bit (no alignment problems) but doesn't work on all targets 2.) allocate a local aligned buffer and copy it to dst after target access 3.) synchronize the alignment from local buffer address with the target address or vice versa, is it not possible go to 1. or 2.
Any suggestions? Regards, Mathias On 09.02.2012 19:27, Peter Stuge wrote: > Mathias K. wrote: >> can you try a cast like this: >> >> (uint32_t *)(void *)dst > > I think that works fine to silence the warning, but I that is just > sweeping the problem under the carpet. Better fix it right. > > > //Peter > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > OpenOCD-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openocd-devel ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
