2017-09-27 11:00 PM
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-disco2017-09-28 08:41 PM
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
2017-09-30 04:47 AM
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.
2017-09-30 04:31 PM
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