Skip to main content
XD_it
Associate III
December 8, 2023
Question

CubeMX placing MX_LWIP_Init() in first listed RTOS task.

  • December 8, 2023
  • 2 replies
  • 1206 views

Hi everyone. 

Maybe this my doing or an oversight by ST?

CubeMX places the MX_LWIP_Init(); function in the first listed RTOS task witch is far from ideal. In my case the "first task" is dynamically created depending on a multitude of different factors. This resulted in the init function not being called and later being called multiple times during runtime.

It's an easy fix, just move the function call somewhere else. It just doesn't seem right that the generation tool does this...

(つಠ_ʖಠ)つ

 

 

This topic has been closed for replies.

2 replies

XXu.3
Associate II
January 6, 2024

I see the same issue. Yes we could just move it out from the first task, but later if we update the .ioc file, this will be added again. Very annoying. 

Pavel A.
Super User
January 6, 2024

@Semer CHERNI