Problem with CAN s32k344 - JA1043

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

Problem with CAN s32k344 - JA1043

1,281 Views
Miki849
Contributor II

Good evening!

I have two question about can communication.

First: 

I have a one evaluation board with s32k344 and the transceiver chip for can is JA1043. 

I understand that the transceiver working similar to TJA1153 , so i will need activate the pins for can if i want that the example work, is it correct ?

My second question is : 

I activate the pins with RTD but the IDE told me that It couldnt find the Siul2_Port_Ip_Defines.h file. 

Do i something wrong with the RTD ? Maybe i need activate another option that i dont see ?

Thank you in advance.

0 Kudos
7 Replies

1,260 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Miki849

Q1.yes, you need to activate the pins for CAN transceiver(JTA1043).

please refer to JAT1043.fm for details.seems that you need to set STB_N & EN pins to high.

Senlent_1-1639451726070.png

Q2. Have you  added Siul2_Port to your Components?

Senlent_2-1639451885816.png

BR!

      Jim,

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos

1,240 Views
Miki849
Contributor II

Thank you for you answer.

Where i could find the JAT1043.fm ? 

on the other hand : 

I activated this pins but I continue without send or received anything. 

I checked with the oscilloscope and the micro send data by tx pin , but the can signal never change..

I attach my code, if you could give me some clue.

Thank you very much in advance.

0 Kudos

1,223 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Miki849

you can find TJA1043 datasheet on this link.

https://www.nxp.com/products/interfaces/can-transceivers/can-with-flexible-data-rate/high-speed-can-... 

 

also,I checked your example code,some configurations should be changed.

First.wrong PE clock setting.

Senlent_0-1639707641808.png

and keep sending messages in while-loop

Senlent_1-1639707673648.png

then test PAT6 & PTA7 waves.

Senlent_2-1639707708393.jpeg

BR!

     Jim,

0 Kudos

1,210 Views
Miki849
Contributor II

Thank you very much Jim.

Sadly, i find another problem. I changed the clocks and i tested the two can, but I received the same data in tx and rx. and never send it by can . I imagine that it is the behavior for loopback mode , but in my case i configure with RTD the normal mode so it is strange.

I am using a peak usb with this parameters:

8MHz and 500kbit/s 

Do you have any idea? 

The code is the same but i added your changes.

 

Kind regards .

Miguel

 

0 Kudos

1,197 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Mike849

It seems you did not configure TJA1043 properly

Senlent_0-1639735656834.png

BR!

     Jim,

0 Kudos

1,189 Views
Miki849
Contributor II

Hi Jim. 

I discovered the problem, the JA1153 do a tx-rxd shortcircuit, if the transceiver detect a error.

I thought that the configuration for the transceiver JA1043 and JA1153 was the same, because i have the both eval board model : S32K3X4EVBQ257ND and S32K3X4EVB-Q257 . I thought that the unique difference between the boards was the debugger part.

Then , i resolved the problem with JA1043 , the code is working, I need to try more with the library for can.

So thank you very much ! 

But , if i want configure the JA1153 , where can i find the information for configure this transceiver ?

I try to look for in the google and the nxp website , but i found nothing.

Thank you very much for your help ! 

0 Kudos

1,158 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Miki849

Happy to see the problem was solved,

Regarding the TJA1153 informations,it seems that you must sign the NDA ,and I have no right to provide these documents.

https://www.nxp.com/products/interfaces/can-transceivers/secure-can-transceivers/secure-hs-can-trans... 

BR!

     Jim,

0 Kudos