KDS, Kinetis KE06, Hard Fault when Tx and Rx CAN data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KDS, Kinetis KE06, Hard Fault when Tx and Rx CAN data

ソリューションへジャンプ
1,644件の閲覧回数
bitjockey
Contributor II

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

0 件の賞賛
返信
1 解決策
1,359件の閲覧回数
bitjockey
Contributor II

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,

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,359件の閲覧回数
BlackNight
NXP Employee
NXP Employee

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

0 件の賞賛
返信
1,360件の閲覧回数
bitjockey
Contributor II

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,

0 件の賞賛
返信