cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F769I-Disco Ethernet

THIHA KYAW
Associate III
Posted on September 28, 2017 at 08:00

Hi,

Now I am creating a STM32CubeMX file for LWIP+FreeRTOS.

I didn't change anything and I just compile it.

But I didn't get IP address after dhcp_start(&gnetif);

I attached STM32CubeMX file.

Is there anything wrong in my settings?

Please advise me.

Regards,

Thiha Kyaw

#stm32f769i-disco
12 REPLIES 12
Posted on September 29, 2017 at 03:41

Dear Imen,

Example Firmware is from \STM32Cube_FW_F7_V1.8.0\Projects\STM32F769I-Discovery\Applications\LwIP\LwIP_HTTP_Server_Netconn_RTOS\

Line 166

/* Configure PG2, PG11, PG13 and PG14 */

GPIO_InitStructure.Pin = GPIO_PIN_2 | GPIO_PIN_11 | GPIO_PIN_13 | GPIO_PIN_14;

HAL_GPIO_Init(GPIOG, &GPIO_InitStructure);

STM32CubeMX Version is 4.22.1.

Please help to check my STM32CubeMX file and give me some suggestion.

Thanks.

Regards,

Thiha Kyaw

Joerg Wagner
Senior III
Posted on September 30, 2017 at 13:47

You probably have Chip Revision A of your STM32F769NIH.

It's labelled in the right bottom corner.

Take a look at page 18 of the errata data sheet. This problem

covered also the STM32F767 family and was solved by Rev. Z.

I don't know if 32F769I-DISCO boards with Rev. Z are available at the

distributors. But it's possible to write a software workaround to use

Ethernet properly.

Posted on September 30, 2017 at 23:31

Going beyond that, I'm one that's willing to say the CubeMX application doesn't generate useful code in this context.  There isn't even working ethernet code in the BSP.  You need to rip out what you need from ~/STM32Cube/Repository/STM32Cube_FW_F7_V1.8.0/Projects/STM32F769I-Discovery/Applications/LwIP/LwIP_HTTP_Server_Netconn_RTOS/Src/ethernetif.c 

And if you're not going to use RTOS and interrupts, then you're going to have to constantly poll the interface