bdayberr wrote:
/*((unsigned long *) ((unsigned long)(&CANTIDR0))) = msgid;*/
This is the original pointer dereference I mentioned which I commented out and used my own below. CANTIDR_ARR is a pointer to the first CANTIDR0 register and the memory beyond. Maybe this is part of the problem, but I could never get the original commented line to ever compile *CANTIDR_ARR = (unsigned long)msgid;
I don't think your line of code will work the way you want. This is only going to set the MSB in the ID register. The line you commented out should work, what errors did you get?