My mcu is MC9S12X.
In my CAN driver executed by xgate,i use memcpy() to copy data to buffer.And in application layer,i use memcpy() to copy data from buffer.
At first,everything is ok.But after a while,in application layer,i cann't receive the data sended from pc.
Then i debug the program and find it's ok in CAN driver to receive the data,but when copy data from buffer to vars using memcpy,nothing happen!
This means sometimes memcpy() work,but sometimes don't.
I check the return value of memcpy(),nothing get change too.