Hello,
I'm trying to establish a CAN-communication between my pc and SafeTI-HSK with TMS570LS3137. I am sending can messages from my safeti-HSK to my pc. As a receiver i am using a PCAN-usb adapter connected to my pc in combination with the PCAN-view. I am sending the messages through the DCAN2 module of the SafeTI-HSK with the canTransmit function:
To check if the message is transmitted, i check the returned value of this function. And it returns a 1, this means the function succesfully sends the messages.
This is the part of my main code where i call the canTransmit function, I just send 8 bytes. each byte is one char from the canSendValue struct.
When debugging this function, I can see that this function is working properly and writes the data in it's corresponding dataregisters.
How can I solve this..? is there any example code for implementing can communication in the safeTI-HSK kit?
Any solutions, examples, or information about implementing CAN communication in the SafeTI-HSK kit with TMS570LS3137 would be very helpful.
I think there's a problem with the can-driver, this is a SN65HVDA541-Q1. Is there somekind of an "enable" that I have to set to activate the can driver chip? because the the outputs of the can driver are always in the "recessive" state.
Regards,
Jonas