cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo F767ZI + lwIP+ Cube MX issues

Di Ci
Associate II
Posted on September 29, 2017 at 16:45

Hi all,

i'm a new nucleo user and I start to play with the F767ZI. I will usethe nucleo for send periodical http get request to a remote server, but till now i have some issues with the tools. I configure cube enabling ethernet (mii) and lwIP library.

I configure on cube static ip and all network parameters, enable ICMP request and then put MX_LWIP_Process() in while loop. However i can't ping the board from pc and wireshark doesn't see anything.

All the examples provided by the repository are made without cube and try to export that examples is hard for me. Anyone could help me? For the first step i'm happy if i can ping the board from the pc.

Thanks in advance

Davide

Note: this post was migrated and contained many threaded conversations, some content may be missing.
19 REPLIES 19
Christopher Pappas
Senior II
Posted on September 29, 2017 at 17:39

I don't know what version of Nucleo board you are using, but I have two early rev boardswhere the entire ethernet interfaceworks very intermittently.

Check

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

out to see if your board is experiencing the same issue.

Imen.D
ST Employee
Posted on September 29, 2017 at 17:45

Hi,

Have a look to the errata sheet related to the STM32F767 devices, in the Ethernet peripheral limitationssection

to check if you have the same conditions.

T

here was an Ethernetlimitation

on STM32F767 devices revision A ,

using RMII and it was fixed in Revision Z, but

is not present in the MII mode

(see

/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fccc%2Fresource%2Ftechnical%2Fdocument%2Ferrata_sheet%2Fgroup0%2F23%2Fa6%2F11%2F0b%2F30%2F24%2F46%2Fa5%2FDM00257543%2Ffiles%2FDM002575pdf%2Fjcr%3Acontent%2Ftranslations%2Fen.DM002575pdf

for more details).

If you aren't in the same conditions as the errata sheet, you need to do farther investigation on your case and

I suggest you to debug,identify what is the problem that you see and when it occurs.

Then, you can share your code if this issue is not resolved.

Kind Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on October 01, 2017 at 21:17

I have same problem. I created new project with stm32F767ZI-Nucleo.  My project  tcp client but it works sometimes it doesn't work sometimes.  When i press reset button  if blink only orange led  it works after that again press button two leds blink and it doesn't work. 

https://drive.google.com/open?id=0B7UkCR4KRZoJZUl2WFd4MUJYOXc

 
Posted on October 02, 2017 at 11:34

Hi Imen, i've got the Rev. B board but i'm on MII mode, so the limitations that you described are not present.

I attach my code and lwip and eth cube config screen. I can't understand why it doesn't work.

Thank you!

0690X00000608OzQAI.png0690X00000608LqQAI.png

https://drive.google.com/open?id=0BwHrIl_MVR4ETFdpTVRoaGR6RWs

 
Posted on October 02, 2017 at 11:53

Hi,

I'd recommend you to have a look to this

http://www.st.com/content/ccc/resource/technical/document/user_manual/10/c5/1a/43/3a/70/43/7d/DM00104712.pdf/files/DM00104712.pdf/jcr:content/translations/en.DM00104712.pdf

, paragraph 'B.3.6 LwIP' for the STM32CubeMX LwIP side.

Refer to the lwIP examples under STM32cubeF7 package:

STM32Cube_FW_F7_V1.7.0\Projects\STM32F767ZI-Nucleo\Applications\LwIP\LwIP_HTTP_Server_Netconn_RTOS

Hope this helps you.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on October 02, 2017 at 12:07

it is not a good answer for me. Because i tested 

LwIP_HTTP_Server_Netconn_RTOS

  it works perfectly. But my new example (tcp client) doesn't work. sometimes works ( ethernet socket led which orange led is blinking) . Ä°f you want to video  i can send you.. This is big problem for me.

Thanks

Posted on October 02, 2017 at 12:11

   Me too, the project that Imen refers to is made with FreeRTOS and without Cube, i'm looking for something that are made by cube and without a realtime os.

Posted on October 02, 2017 at 13:03

https://youtu.be/zay59GAxnEc

 

My project video. 

first one i created lwip project with cubemx after than i edited project ( i added tcp echo client, i deleted lwip .c  )

Posted on October 02, 2017 at 14:37

I try your code and it works intermittently as you sad.

I notice that when it works only the orange led is on, what does it mean? The speed is limited to 10 Mb?