cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-144 with STM32F767ZIT6 rev. Z not working lwIP - ETH

Jeffrey V
Associate II
Posted on October 04, 2017 at 15:39

Hi all,

I've been working with the STM32F767ZIT6 rev. 'Z' and this went pretty well up to the point where I needed to add an Ethernet connection. My project is running fine with FreeRTOS, UART2, UART3, some Input and some Output connected, and also using TIM2 for an Rotary Encoder.

Now ive added ETH and LWIP and I cannot get an simple ping command to work. There is approx 10% change that it sometimes responds. Obviously I have read alot about the known issue with ethernet on the F767 but this was rev 'A' and I am using rev 'Z'.

My ETH settings are:

- I am using a static connection between my Laptop (192.168.1.101) and the F767 as client (192.168.1.102).

- I am using stm32Cube to configure the settings.

   - RMII mode, PHY address = 0, IP and NETMASK are set, DHCP is disabled. Everything else is default. (So clock settings are set to HSI, if that matters)

When debugging (ping send from laptop) I get the following results:

MX_LWIP_Init goes fine, netif_is_link_up is also succes.

- I enter the function etharp_input and the settings received are all fine. for_us is set to 1. (so there is a match with IP)

- Then the function ethernet_output is called and eventually netif->linkoutput(netif, p) is called.

If I stop the debugger at this point I can see all information is correct. IP addresses, and both MAC addresses are correct. However the moment I let it send the output I see a garbage response at WireShark.

Even when for some reason a Ping does work, this response is still garbage.

Also when a Ping does work, it is terribly slow (average of 500ms)

Does anybody has an idea if this is SW related (clock settings, or something).

Or if I will be better of ordering a STM32F746ZG and see if it does work on this board.

#lwip #freertos #eth #freertos+tcp
19 REPLIES 19
Jeffrey V
Associate II
Posted on October 05, 2017 at 10:25

Ive solved the issue by replacing the board with the STM32F746!

Yesterday decided to order the Nucleo-144 with the STM32F746.

Changed the board settings on STM32Cube and it worked like a charm.

So the STM32F767 can go in the trash. And I tried 2 boards of the 767 both with revision Z.

Both have issues with Ethernet and both have issues with STM32CUBE.

tj
Associate II
Posted on November 02, 2017 at 20:29

I have the same problem with the F767. I also replaced it by a F746 and i am able to setup a connection, but it is still not stable. It works just every second time. There must stil something wrong with the Hardware.

Posted on November 03, 2017 at 10:24

Hello,

Have you please checked if you have same Ethernet limitation as described in the errata sheet related to your device.

Kind Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
tj
Associate II
Posted on November 03, 2017 at 11:10

Hi Imen,

thanks for the fast response 🙂

I am using the STM32F767ZI on the NUCLEO-F767ZI board. There is a Rev. Z device equipped.

So, as far as i understand from 'DocID028806 Rev 4' my device has the limitations described in chapters 2.7.3, 2.7.4 and 2.7.5.

2.7.6 should be fixed on Rev Z (RMII is used on the NUCLEOs)

2.7.1 and 2.7.2 are not relevant because i am using IPv4.

For the STM32F746ZG i checked 'DocID027162 Rev 5' and found the same limitations as for Rev. Z of the F767ZI (just different chapers).

However, i see less errors on the F746, don´t ask me why.

Could you please provide how to apply the mentioned workarounds for the generated CubeMX Code.

I am using the LwIP Stack with the FreeRTOS OS, everything generated from CubeMX.

It is the default configuration of CubeMX (Version 4.22.1). My first check was to get an IP-Address from my DHCP Server, but i don´t get one.

If it helps i could provide the project (SW4STM32) including the CubeMX cio file. It runs on a new (no changes) NUCLEO-F767ZI board.

Maybe you have fixes already.

Thanks for help

Thomas

Imen.D
ST Employee
Posted on November 03, 2017 at 15:09

Hi ,

When 

you reply to the post, please 

click on ''Use advanced editor''

link at the top right of the editor window:

0690X00000608q9QAA.png

Then, you can click ''Attach'' to add your file :

0690X00000608qJQAQ.png

Kind Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on November 03, 2017 at 14:47

Hello

Jung.Thomas

,

Have youchangedthe external PHY ?

Looked in this discussion it may help you

https://community.st.com/0D50X00009XkXDUSA3

Otherwise, could you please provide your .ioc file for more investigation.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
tj
Associate II
Posted on November 03, 2017 at 14:57

Hi Imen,

no i don´t change the external PHY.

How can i upload my ioc file?

Best Regards

Thomas

tj
Associate II
Posted on November 03, 2017 at 15:03

Hi Imen,

sorry i found the button for attaching files.

Here you are.

Thomas

________________

Attachments :

LWIPTestF767.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyJJ&d=%2Fa%2F0X0000000b6C%2FqNmWXNkwCUZEXAd6e9gaAX264vsR4d8GjE5GRATQcQU&asPdf=false
tj
Associate II
Posted on November 03, 2017 at 15:11

i got it already

Thanks 🙂