Hello,
I'm trying to use CAN comunication with microcontroler MKE06Z128VLK4 and a MCP2562 transceiver. I'm using CAN_LDD component from processor expert configured to RX pin PTH2 and TX pin to PTE7. The SendFrame Method is working fine, I can send messages continuosly from uc to my CANUSB tool normaly, but the ReadFrame Method retruns a Cpu_INT_Hard_FaultInterrupt when I try send some message to uc:
I'm using the CodeWarrior 10.7
Thanks for your attention.
Att.
Vinicius
Hello Vinicius,
- Please check whether the interrupt vector for CAN_receive configured correctly.
- Also there is sample code , please right click CAN component -> choose "Help on component"->
Hope it helps
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Alice,
I found my issue. It was because I did not initialize correctly the LDD_CAN_TFrame structure before receive some message. I just created it and the vector pointer " *Data " didn't know Its size to work properly. So I initialized all the Structure with some dummy data with all eight bytes in the vector pointer before the use.
Thanks for your attention.
Att.
Vinicius