Dear ERG:
I think you are confused.
I am talking about CAN Bosch frame format, not J1939.
If you take a look at the current CAN Bosch extended frame format specification the order of the fields is the following:
Bit 0 RTR
Bits 1-18 Extended format (ID0-ID17)
Bit 19 - IDE
Bit 20 SRR
Bits 21-31 Base format (ID18-28
But according to the K60 manual only the extended and base ID formats are in one 32 bits space (offsex 0x4) but the other bit fields (RTR, IDE and SRR are in another memory position.
So you cannot just use a single u32 variable to send the CAN frame to the FlexCAN module just like most of the other micros would do.
You have to do some math to be able to extract and put the missing bit fields where they belong (memory address offset 0x0).
Please take a look at page 39 from the the attached PDF document from an MC68HC12 MSCAN module micro.
That's the bit order arrangement that I would expect with every micro that complies with the CAN 2.0B Bosch specification.
You can easily send the 32 bits CAN frame using a single u32 variable.
Thoughts?
Thanks,
Roberto