Interfacing TJA1102 ethernet PHY with S32G2

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

Interfacing TJA1102 ethernet PHY with S32G2

2,454 Views
Arbabmir
Contributor II

Hi,

 

I am trying to interface TJA1102 with S32G2 M7_0 core. I have configred the clock and pins according to the RM. I am using PFE_MAC2 to connect the TXD and RXD lines. My question is how d I write or read data from the registers of the TJA 1102. I am sorry if this is too dumb, but I am just starting to work on these kind of projects. Please bear with me.

Thank you.

0 Kudos
Reply
8 Replies

2,426 Views
Arbabmir
Contributor II

 I just found out about the PFE drivers available for download. I downloaded PFE Driver 1.3.0 and PFE Firmware 1.8.0. But how do i use these to communicate to the TJA1102 from the M7_0 core of the S32G2 ? Can someone please help me with these ?

 

0 Kudos
Reply

2,420 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Arbabmir ,

I understand that you are using a custom board for the S32G2 with TJA1102 connected to PFE_MAC2. Otherwise, let me know.


Please review the interface select at 19.2.1.3 PFE EMAC Interface Mode (PFE_EMACX_INTF_SEL) at the S32G2 Reference Manual, Rev. 8, 02/2024 on page 742-743.


Also refer to the Chapter 4 Usage at the S32G PFE Firmware User Manual Rev. 3.8, 11/2023 this file is at the PFE Firmware 1.8.0 you downloaded. 

Let me know if you have another question of the functionality or content of this, 
Regards. 

0 Kudos
Reply

2,395 Views
Arbabmir
Contributor II

Hi @carlos_o ,

Thank you for your response. Yes, I am using a custom board.

I went through the reading materials you suggested. While the RM was useful, I don't really yet understand how to use the downloaded driver and/or firmware in my particular use case. Please note that I am trying to get this interface up in M7_0 core running the RTOS. I tried to go through the files in the /include and /src directory in the downloaded drivers folder and they seem like the functions that I should use (like the function Eth_43_PFE_LLD_WriteMii() in /src/Eth_Pfe_LLD.c). But all i have right now is a bunch of source files and documents. Please help me with my objective.

0 Kudos
Reply

2,391 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Arbabmir,

This next links are some examples of use of the PFE with the M7, these examples use the RDB3 (S32G3), so you need to consider that for your code, a recommendation is to use the same BSP and driver versions that are used at the examples to replicate it.

S32G PFE Master Demo building on M7

S32G PFE_M_Master_A_Slave_Simple_Demo

Let me know if you have another question. Hope these examples helps.

 

0 Kudos
Reply

2,381 Views
Arbabmir
Contributor II

Hi @carlos_o ,

 

I still could not get this working. I downloaded the files and followed the guide. But I do not think that the contents  have in my folder and what they talk about in the document is the same thing. In my folders, there are a bunch of .c and .h files and some .xdm files in the example aplication folder (NXP_Multi_Installer_28.10.24.123456\S32G2\Bundles\GoldVIP_1_12_0\PFE_Driver_1_3_0\PFE-DRV_S32G_M7_MCAL_1.3.0\example_application\MasterProject_RDB3\config). No source code or header files in the example project. When I try to import them to S32DS workspace like in the document, I cold not build it because of missing configuration file. The fact that all the documents talk about EB  Tressos rather than S32DS did not help either. Can you please help me with this issue ? Thank you

0 Kudos
Reply

2,355 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Arbabmir

The S32G2 is automotive oriented device, that's the reason why these examples were made using EB Tresos.

Let me review with the internal team if there are application examples to use the PFE driver in that way, this may take a bit longer response time. We appreciate your patience. I will come back ASAP to give the information I could get. 

0 Kudos
Reply

2,336 Views
Arbabmir
Contributor II
Thanks so much @Carlos, i will wait for your response.
0 Kudos
Reply

2,325 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Arbabmir

The internal team told me that we don't have a demo of PFE with S32DS. My recommendation here is to use EB Tresos as the examples I shared before. 

0 Kudos
Reply