TochGFX Usage Fault "__ARM_common_memcpy4_8" (touchgfx_core.lib) (TouchGFX v 4.13.0)
Hello,
i have a problem with TouchGFX. After filling the framebuffer via DMA2D (DMA2D class of TouchGFX) i got a Usage Fault "unaligned". Last called function was __ARM_common_memcpy4_8 in touchgfx lib. When i have a look at the register values the register R0 has a not 4 byte aligned adress. Further the adress referenced to member variable "lastRects" (type vector template class) of Application class (member of FrontendHeap). Using the ARM "__((aligned (4)))" doesn't fix this problem. Further I don't know where exactly the instance is declared? Is it really because of the unaligned adress? How can I solve the problem?
Thanks and greetz
Note:
I found out that it only happens when I'm using double/multiple frambuffer. I'm working with lcd display with RGB Interface. So I want to use multible framebuffer.
Ehat could be the problem? Maybe any faulty settings?
I am setting frame buffer adresses like this:
hal.setFrameBufferStartAddresses(adress frame buffer 1,adress frame buffer 2,adress frame buffer animation);
frame buffer 1 adress 0xC0000000
frame buffer 2 adress 0xC0054600
animation buffer adress 0xC00A8C00
Each frame buffer has a size from lcd width(480)*height(360) * 2 (because of using rgb565)