Skip to main content
heveskar
Senior
August 16, 2021
Solved

STM32H7 LWIP Code generation bug

  • August 16, 2021
  • 1 reply
  • 879 views

Hi,

there is probably small bug when generating project STM32CubeIDE using LwIP stack. In file LWIP/App/lwip.c, there is duplicate user code section 4_3. This is present twice (on lines 113 and 151):

/* USER CODE BEGIN 4_3 */
/* USER CODE END 4_3 */

First is in function static void Ethernet_Link_Periodic_Handle(struct netif *netif), second is in function void MX_LWIP_Process(void). This means that all the code, that is written to the upper section, is after code generation duplicated to the lower one. Its not a big issue but it is annoying to correct it after every code generation.

I use STM32CubeIDE:

0693W00000D2XyUQAV.pngCubeMX version:

0693W00000D2XyoQAF.png 

Firmware Package Name and Version : STM32Cube FW_H7 V1.9.0

Karel

This topic has been closed for replies.
Best answer by Khouloud ZEMMELI

Hello @heveskar​ ,

Thanks for your post,

I've checked the problem and you're right, it must be incremental.

Issue will be fixed.

Thanks for your contribution,

Khouloud

1 reply

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
August 17, 2021

Hello @heveskar​ ,

Thanks for your post,

I've checked the problem and you're right, it must be incremental.

Issue will be fixed.

Thanks for your contribution,

Khouloud