AnsweredAssumed Answered

Reading FlexCan registers with memcpy()

Question asked by David XY Zhou on Mar 7, 2016
Latest reply on Mar 30, 2016 by Alice_Yang


I have a K60. I tried to access FlexCan registers with a memcpy into a RAM buffer. But the program execution crashes as soon as memcpy is called.


char buf[100];

memcpy((PCHAR)&(buf[0]), (PCHAR)&pCanReg->MCR, 0x20);


Do you know why?

Thank you,


David Zhou