In the previous products, I used s32k144+tja1043, and the CAN-frame sending and receiving were OK.
The source code of data transmission is as follows:
For current products, tja1043 is not used, tja1145 should be used,
I am using example_SW_Tja1145.zip for debugging.
Commissioning progress:
1,I can use SPI to read that deviceid is 0x74,
2,Normal mode is OK (01h MC = 111b).
3,The program can execute PollTransceiverStatus()'s branch ResumeCAN_TX()
But I can not catch CAN-Frame via PC's CAN-View TOOL.
< Question >
How can I transmit CAN-frame successfully with s32k144+TJA1145?
FLEXCAN0_transmit_msg() needs to be called in example_SW_Tja1145.zip's EnableTransmissionCAN()?
Solved! Go to Solution.
Hi,
ResumeCAN_TX() function does not send anything to CAN bus. Here you can see what it does:
void ResumeCAN_TX(void){
(void) EnableTransmissionCAN();
}
example_SW_Tja1145.zip is generic example for TJA1145 only. All MCU specific functions need to be provided by user - including CAN communication itself.
Regards,
Lukas
Hello, I also encountered a similar problem, after Wake up, even if CMC=01 is set, CTS is still 0, but cannot communicate. How can I deal with this problem?
Hello, I also encountered a similar problem, after Wake up, even if CMC=01 is set, CTS is still 0, but cannot communicate. How can I deal with this problem?