Using the memmove function provided by the ewl library gives an error result

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using the memmove function provided by the ewl library gives an error result

280 次查看
shanix
Contributor II

HELLO

Recently when I using the memmove() function provided by ewl library, I got a very strange result which is totally wrong.Simply put, I want to move a piece of data backwards by 8 bytes, but the result seems like very strange. I want to know why and how to slove it. Thanks!Snipaste_2022-12-19_10-39-38.pngSnipaste_2022-12-19_10-37-59.pngSnipaste_2022-12-19_10-40-09.png

0 项奖励
1 回复

178 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm not sure if it is still actual - I did quick test on my side and memmove() works correctly on my side: 

jiri_kral_0-1685699579492.png

jiri_kral_1-1685699622731.png

Most probable cause of the issue is that something rewrite the memory space. It can be some DMA access, if it is multicore project with badly defined linker script file – other core may write outside of its memory space and So on.

 

 

 

 

 

 

0 项奖励