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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,212 次查看
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.

 

标记 (4)
0 项奖励
回复
6 回复数

1,160 次查看
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 项奖励
回复

1,155 次查看
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 项奖励
回复

1,105 次查看
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 项奖励
回复

1,090 次查看
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 项奖励
回复

1,047 次查看
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 项奖励
回复

1,081 次查看
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 项奖励
回复