2025-02-05 9:10 PM - edited 2025-02-05 9:13 PM
Hello!
The code generated for lwIP and Ethernet (Internal MAC) has three threads for working of lwIP and the Ethernet driver.
I am using v 1.17.0 of the IDE (latest at the time of writting)
The problem is that the default value of STACK size of EthIf (Rx Handler Thread) is very small: Only 350 bytes. which leads to stackoverflow. I have manually changed the value from code. But I cannot find any GUI to change this! Only we are allowed to configure the tcip_thread but their is NO option for last two threads.
Further there is only a single constant that is used for initialization of both the threads (EthIf and EthLink)
#define INTERFACE_THREAD_STACK_SIZE ( 1024 )
and this same constant is overwritten that causes confusion.
2025-03-27 3:07 AM
Hello, I have exactly the same problem. On a STM32F777 with CMSIS V2 and F7 1.17.2 I get a stackoverflow. Manually increasing the size of the stack fixes the problem. However, every time new code is generated, this change is overwritten. How can the stack size be adjusted?
Perhaps the F7 package also needs to be corrected?
2025-03-27 5:46 AM - edited 2025-03-27 5:51 AM
I have checked the used Stack size. The task needs more than the default 350 bytes.
I changed the .ftl file so that the change is no longer overwritten when code is generated.