Can't find the code to initialize or configure phy in lwip demo

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

Can't find the code to initialize or configure phy in lwip demo

1,073 Views
aiweixin
Contributor IV

Hi,

    I have installed the SW32R45_TCPIP_STACK_1_0_1_D2202, and import lwip_s32r45 project.

    According to the description of the project, it can connect to PC and ping.

    But i can't find the code to initialize or configure phy in lwip demo.

    Why is there no code for phy? And, in device.c, the code is commented out.

aiweixin_0-1687080517452.png

    Additionally, it's the same in lwip_s32k148, which don't have device.c file even.

 

0 Kudos
Reply
6 Replies

1,021 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you please specify the RTD version you have used and setup you have?

ENET driver is part of RTD.

Best regards,

Peter

0 Kudos
Reply

1,016 Views
aiweixin
Contributor IV

Hi Peter,

    RTD version: SW32_RTD_4_4_3_0_0_D2112.

    Can you tell me that how do the lwip demo configure phy?

    Thank you!

0 Kudos
Reply

966 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

which particular configuration do you need modify? The example uses internal GMAC module - you can modify for example Gmac_Ip_features.h header or other GMAC related headers: 

 

jiri_kral_0-1687788708604.png

 

 

 

0 Kudos
Reply

951 Views
aiweixin
Contributor IV

Hi @jiri_kral & @petervlna ,

    Have you used this lwip_s32r45 demo project on S32R45 evb, and does it work normally?

    I debug lwip_s32r45 on S32R45 evb, and use "ping 192.168.0.200", but it failed.

aiweixin_0-1687829832797.png

    May I need to modify the code for software or pin for hardware based on the demo?

Best regards!

0 Kudos
Reply

908 Views
nxf92108
NXP Employee
NXP Employee

Hi,

The demo lwip_FreeRTOS_S32R45_M7 is working normally on S32R45 evb. Please make sure that your demo has executed after start_example() in main() as debug will stop at device_init().

nxf92108_0-1687948771202.png

BR.

 

0 Kudos
Reply

942 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

this demo is working normally. Please check the example description.txt file. 

 

On the first message you wrote that the ping is working for you - or at least this is how I understand it. If it is not working - make sure that your PC machine uses IP address from the same subnet - 192.168.0.xxx 

0 Kudos
Reply