How to realize sending and receiving with tja1145

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to realize sending and receiving with tja1145

Jump to solution
1,573 Views
chengsz12060
Contributor II

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:

nxp_can_transmit0613.png

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()?

Hints.png

0 Kudos
1 Solution
1,551 Views
chengsz12060
Contributor II
hello,Lukas Thank you for your reply. Now, my s32k144 can read that the MC mode of tja1145 is 0x07 (tja1145fd_mc_normal_mode) through SPI. However, after s32k144 sends data, tja1145 Pin1 (TXD) has no waveform. What are the possible problems with the software? What aspects do I need to investigate? 现在,我的s32k144能通过spi读到tja1145的MC Mode是0x07(TJA1145FD_MC_NORMAL_MODE)。 但是、s32k144发送数据后、TJA1145 pin1(TXD)没有波形。 软件上可能哪些方面有问题呢? 我需要从哪几个方面调查呢?

View solution in original post

0 Kudos
4 Replies
1,562 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,429 Views
Doraemon
Contributor I

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?

0 Kudos
1,552 Views
chengsz12060
Contributor II
hello,Lukas Thank you for your reply. Now, my s32k144 can read that the MC mode of tja1145 is 0x07 (tja1145fd_mc_normal_mode) through SPI. However, after s32k144 sends data, tja1145 Pin1 (TXD) has no waveform. What are the possible problems with the software? What aspects do I need to investigate? 现在,我的s32k144能通过spi读到tja1145的MC Mode是0x07(TJA1145FD_MC_NORMAL_MODE)。 但是、s32k144发送数据后、TJA1145 pin1(TXD)没有波形。 软件上可能哪些方面有问题呢? 我需要从哪几个方面调查呢?
0 Kudos
1,430 Views
Doraemon
Contributor I

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?

0 Kudos