Erich,
I am developing on a FRDM-KE06 board using KDS and also using PE to generate low level code for a design I am working on. I have the MSCAN module set up to interrupt for CAN Receives, but not Transmits. I currently have the CAN filters set to receive all messages. If I just receive CAN messages everything seems fine. If I add code to periodically Transmit a CAN message then I get a Hard Fault and it looks like the PE generated read of the receive frame is where it is exiting via the hard fault. I don't remember having any such issues when coding on a HCS12 part. I looks to me like the MSCAN hardware is the same for both. Any ideas??
Brian
Solved! Go to Solution.
Erich,
Figured out my issue, in my CAN Rx interrupt the structure pointer passed into CAN1_Read was pointing at the CAN Tx Structure which was caused a fault when CAN1_Read was writing to the structure.....
Regards,
Hi Brian,
last time when I was dealing with CAN was probably three years ago, and I have never used it on any Kinetis devices. So not sure if I can be of any help for your here :-(
Erich
Erich,
Figured out my issue, in my CAN Rx interrupt the structure pointer passed into CAN1_Read was pointing at the CAN Tx Structure which was caused a fault when CAN1_Read was writing to the structure.....
Regards,