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

922件の閲覧回数
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 件の賞賛
返信
6 返答(返信)

870件の閲覧回数
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 件の賞賛
返信

865件の閲覧回数
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 件の賞賛
返信

815件の閲覧回数
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 件の賞賛
返信

800件の閲覧回数
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 件の賞賛
返信

757件の閲覧回数
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 件の賞賛
返信

791件の閲覧回数
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 件の賞賛
返信