lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LWIP never tries to send a packet?


From: Noam Weissman
Subject: Re: [lwip-users] LWIP never tries to send a packet?
Date: Thu, 18 Jan 2018 17:31:32 +0000

Hi Chris,

 

I am not working with ST HAL, rather with the older SPL (standard peripheral library).

 

I do not know why you needed to change the PHY driver as all the standard PHY’s that are IEEE

compatible will work the same.

 

The ST driver has two portions:

1.       MDIO/MDC connectivity (SMI)

2.       RMII/MII data transfer etc…

 

Via SMI you control the PHY and or make queries. Meaning you can check if you have a link,

what is the speed etc…

 

Regarding MII/RMII you need to make sure that you defined the driver to work in the same mode

that the PHY is strapped. If the PHY is defined to work in RMII but your driver is defined to work in MII,

it will not work !

 

I suggest going over ST examples first and then try to see why you code is not working for you.

 

 

BT,

Noam.

 

 

From: lwip-users [mailto:lwip-users-bounces+address@hidden On Behalf Of Chris Seto
Sent: Thursday, January 18, 2018 6:47 PM
To: address@hidden
Subject: [lwip-users] LWIP never tries to send a packet?

 

Hi,

 

I'm using LwIP 2.0 running on an STM32F4 with a TI TLK110 ethernet PHY. I've written the driver for the PHY and corrected the definitions within the STM32 HAL such that the PHY is initialized correctly. When low_level_init() returns, the link is guaranteed physically up. 

 

I'm having an issue where it doesn't seem like LwIP is ever trying to send packets. I put printf("RX\r\n"); and printf("TX\r\n"); calls in my ethernetif.c handlers, and while RX periodically is called, TX is /never/ called. Even if I try to open a TCP socket, and even if I try dhcp_start().

 

I'm sure this is some kind of minor config issue. Any advice?

 

Debugging is enabled, and I see a bunch of "etharp_timer" at about 2hz or so, but nothing else. Shouldn't I at least expect to see a DHCP discover packet sent?

 

Code here:

 

ethernetif.c

 

lwipopts.h

 

Networking.c

 

Main loop:

while (1)

{

HAL_Delay(50);

LedToggle(LED_1);

LedToggle(LED_2);

NetworkingUpdate();

}

 

Thanks!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]