Other Parts Discussed in Thread: AM62P
Tool/software:
Hello TI team
I'm using MCU SDK demo Display share , and I found the speed of memcpy is abnormal. the Code is below:
endMs = (ClockP_getTimeUsec() / 1000U);
DebugP_log("Splash -> Gen 1 buffer: %u ms\r\n", (endMs - gBoot2SplashStartMs));
{ // copy second flame
uint8_t *dst = (uint8_t*)&gFirstPipelineFrameBuf[1];
uint8_t *src = (uint8_t*)&gFirstPipelineFrameBuf[0];
size_t bytes = 5529600U; // 1920*720*4 = 5,529,600
memcpy(dst, src, bytes);
/* Ensure DDR visibility for the second frame */
CacheP_wb(dst, (uint32_t)bytes, CacheP_TYPE_ALLD);
}
endMs = (ClockP_getTimeUsec() / 1000U);
DebugP_log("Splash -> Gen 2 buffer: %u ms\r\n", (endMs - gBoot2SplashStartMs));
And I got the log below :
Splash -> Gen 1 buffer: 264 ms Splash -> Gen 2 buffer: 408 ms
That's means the memcpy about 5529600bit data used for about 140ms.
Why so slow?

