It’s used to get the source area. Can you tell us its value and the optimization level you are using?
i use mdk, and level 0 and not for time
Yes; thanks for the info.
@kisvegabor ext
is aligned, but ext->cursor.area
isn’t. It looks like you were right about the structure automatically being packed, despite optimization being disabled.
I did some research and it seems that structure padding is implementation-defined. We know that lv_memcpy
handles this case internally so this shouldn’t be an issue anymore in 7.0.
I did see a suggestion online to try adding the option --no_unaligned_access
to a Keil project. @FreeChase Can you try that and see if it helps?
memcpy need 4 byte align?, what the function of option --no_unaligned_access
? make sure addr 4 byte align?
It’s compiler option, you can set in Project properties. (Or similar place, I don’t know Keil)
That’s really strange. I’ve just replaced all memcpy
and memset
with our custom functions.