S32K344 - EVB - RTD2.0.0 MCAL.ETH

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

S32K344 - EVB - RTD2.0.0 MCAL.ETH

Jump to solution
1,607 Views
Kalios_Fang1997
Contributor II

I have been using S32K344 EVB(SCH-53189 REV A) to study Ethernet recently , while i try to use Phy to send message in address of 66:55:44:33:22:11,  and i monitor the message with wireshark , the data seems wrong.The source address became 65:56:45:30:23:12 and dest address, frame type also not right.

0 Kudos
Reply
1 Solution
1,573 Views
Kalios_Fang1997
Contributor II

Hi @namnguyenviet 

The problem actually has been solved. But the reason seems strange :

Kalios_Fang1997_0-1669207438542.png

Kalios_Fang1997_1-1669207458073.png

I don't understand why Port_Init(); has to be done before Mcu_InitClock();

If this order issue should be considered, I think Det should add this error checking mechanism.

View solution in original post

0 Kudos
Reply
7 Replies
1,576 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @Kalios_Fang1997 

It looks like a clock configuration problem. What is the clock source you're providing for EMAC_TX_RMII_CLK? That clock frequency is supposed to be 25MHz, in case of 100Mbps speed.

Best Regards,

Nam

0 Kudos
Reply
1,571 Views
Kalios_Fang1997
Contributor II

Btw, i have checked every configuration in EB many times. Maybe you can try with demo project, about the order between port and clock.

0 Kudos
Reply
1,574 Views
Kalios_Fang1997
Contributor II

Hi @namnguyenviet 

The problem actually has been solved. But the reason seems strange :

Kalios_Fang1997_0-1669207438542.png

Kalios_Fang1997_1-1669207458073.png

I don't understand why Port_Init(); has to be done before Mcu_InitClock();

If this order issue should be considered, I think Det should add this error checking mechanism.

0 Kudos
Reply
1,565 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @Kalios_Fang1997 

Glad to hear that the issue has been solved. We have noted in IM that Port must be initialized before Mcu, otherwise the clock frequency provided to pin might not accurate.

namnguyenviet_0-1669257490194.png

Best Regards,

Nam

0 Kudos
Reply
1,561 Views
Kalios_Fang1997
Contributor II

Hello @namnguyenviet 

Thank you very much , i didn't pay attention to this.

Maybe i just got confused by this.

Kalios_Fang1997_1-1669258891651.png

Anyway, thank you for your support.

 

 

 

0 Kudos
Reply
1,602 Views
Kalios_Fang1997
Contributor II

Kalios_Fang1997_0-1668779102687.jpeg

and this is the correct data i want to send

0 Kudos
Reply
1,604 Views
Kalios_Fang1997
Contributor II

Here is the data i got from wireshark

viewfile1.jpg

0 Kudos
Reply