R
R
ralexen2018-09-12 12:08:11
C++ / C#
ralexen, 2018-09-12 12:08:11

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();
  }

After the firmware and reboot, the MK does not respond to the ping.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cyril, 2018-09-14
@argz

What does Wireshark catch?
Read more here: www.cyberforum.ru/arm/thread2090135.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question