Hi,
I test the funtion again.I found when the code running to the two lines below it will get wrong.
00019e90: ldrh r0, [r0,#0]
00019e92: strh r0,[r2,#0]
Do you know why?
I seach on the internet,it said: maybe the pointer point to non aligned address will lead to hard err.Is the reason?
In my project.
CCP_BYTE dtm[8];
d = &dtm[1];
*(CCP_DWORD*)d = *(CCP_DWORD*)p;
cqhcau_0-1623138782220.png
cqhcau_1-1623138814978.png