Answer the question
In order to leave comments, you need to log in
What are the minimum steps required to initialize lwip in a stm32 microcontroller?
It is necessary that the Stm32 Nucleo-F429ZI debug board respond to ping with firmware using HAL, LWIP in standalone mode (without RTOS). What and how to properly configure in STM32CubeMX, what needs to be added to the generated code in the Keil 5 IDE?
The following was done:
1. In STM32CubeMX, RMII mode is selected for the ethernet ports of the microcontroller:
2. LWIP is added to the project:
3. IP address 192.168.125.001, mask 255.255.255.0, gateway 0.0.0.0 are configured in LWIP (the board must work within the same subnet , so the gateway did not specify
4. In main.c, in an infinite loop, I wrote the MX_LWIP_Process () function:
/* Создано кодогенератором STM32CUBEMX */
HAL_Init();
/* Configure the system clock */
SystemClock_Config();
MX_GPIO_Init();
MX_LWIP_Init();
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
MX_LWIP_Process();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question