AnsweredAssumed Answered

Difficulty with TRK-KEA 128 CAN Communication

Question asked by Tyler Trigg on Oct 31, 2016
Latest reply on Nov 14, 2016 by Robin_Shen

I am a novice with microcontrollers so I assume this is a fairly simple issue. I want to be able to send messages back and forth between two TRK-KEA128 microcontrollers. I'm using the msCAN driver and the example project has a receive_DataFrame function and a send_DataFrame function. So I have one set to simply send a frame and the other set to receive the frame and then turn on a light signifying it was received. However, the receiver gets stuck in a loop where it looks for a flag that buffer_status[0] == NEWDATA, which never triggers.

 

I don't know if there is something extra I must put in the code to send data over or if I simply made a mistake in the way the microcontrollers were wired to each other. In addition, both MCUs use a different computer to receive power. Can anyone give me some guidance of where I might have gone wrong?

Outcomes