Content originally posted in LPCWare by alager on Thu Sep 04 08:25:17 MST 2014
As a follow up, I did comparisons with the versions that did work, with the version that did not work. The only thing I could find was that the memory from alloc ( for the usb buffers), was on an 8 byte boundary for the one that fails. The two that work were both on 16 byte boundaries. So I added some code to align the memory to 16 byte boundaries, and that seems to have fixed it.
The weird part is that looking through the lpcopen code, it appears to be aligned on 4 byte boundaries, so I'm not sure if this will totally fix my issue, but it is for now, until things fail again.
Aaron