KurtE
Senior Member+
Yes, confirmed, I am able to reproduce the memcpy bug. Working on it now....
I also have no idea. I didn't change it. Committed a fix to never use unaligned access.
https://github.com/PaulStoffregen/cores/commit/a648248ae0adade4155c886a4e71d93dace89f91
But this alone is not enough to solve the problem. Looks like gcc is sometimes replacing "memcpy" with "__builtin_mempy", which also seems to do unaligned access. I'm trying different fixes now....
I know I should and probably will look it up, but what does: -mno-unaligned-access
do?
That is what does this do when you have structures defined with with __attribute__((packed))
and the items are not aligned?