Environment: S32K148 EVB with TJA1101 Daughter Card
I am trying to check the operation of P2P communication with the S32K148_ENET_TJA1100 project contained in S32K148EVB-QSP.zip.
First, I tried to read the PHY register using SMI_Read() in ENET.c, but it didn't work.
Do I need to fix something in ENET.c or main.c?
Has project S32K148_ENET_TJA1100 ever worked?
Solved! Go to Solution.
Hi,
no SMI access takes place during the power-on settling time (ts(pon)). So this should not be an issue in your case, I think.
I can provide some lwip sever/client demo to test P2P communication.
BR, Petr
Hi,
reading PHY register should work, I think. Where in the code you call this and how? I do not see it is used by default within a code.
So you have two sets of S32K148EVB+TJA1101 Daughter Card connected together, to do P2P communication? Did you changed pin strapping options of TJA1100 board? You should set one side as master and the other as slave. If not done by HW, you can do it in SW modifying ENET.h. Also add #define GPIO_STRAP_CONFIGURATION to override HW boot pinstrap options for PHY.
BR, Petr
Hi,
no SMI access takes place during the power-on settling time (ts(pon)). So this should not be an issue in your case, I think.
I can provide some lwip sever/client demo to test P2P communication.
BR, Petr
Using the application you provided, I have been able to verify that P2P communication works.
Thank you for your cooperation.
Thanks for your cooperation.
Self-solved: I was able to read the RHY register.
I noticed that the RHY address is different on TJA1100 and TJA1101.
I changed the RHY address of the SMI_Read function.
I verified that the link was established by reading the register with the SMI_Read function.
Next I will try the APP you provided.