AnsweredAssumed Answered

memcpy() don't work in S12X

Question asked by everk image on Oct 16, 2019
Latest reply on Oct 18, 2019 by lama

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.

Outcomes