2020-10-30 02:56 AM
Hello, The stack size is defined by a macro definition, INTERFACE_THREAD_STACK_SIZE inside the "ethernetif.c" file located under: LWIP/Target.
I had to manually increase the size due to stack overflow and any new code generation via CubeMX overwrites those changes. Since code generation always defaults the size of INTERFACE_THREAD_STACK_SIZE to 350, I would hope that there would be a way to adjust it via CubeMX?
Solved! Go to Solution.
2020-11-09 08:28 AM
Hi KSulli,
Backing to this problem, and since INTERFACE_THREAD_STACK_SIZE value is handled in the "ethernetif.c" file, STM32CubeMX later version doesn't overwrite the manual changes made by the user.
The .ioc file you have attached is created with an old 5.4.0 CubeMX version and that's why overwriting problem occurs . Please try newer version, that may be a workaround for your problem.
You will find linked STM32CubeMX version 6.0.1: https://www.st.com/en/development-tools/stm32cubemx.html
Regards,
Khouloud.
2020-11-02 07:27 AM
Hello KSulli,
Could you please attach your .ioc file or precise which MCU are you using ?
Thanks in advance,
Reagards,
Khouloud.
2020-11-02 08:59 AM
2020-11-04 07:03 AM
Hello @Khouloud OTHMAN,
Just wanted to check back with you and ask if there was any answer regarding setting up Ethif stack size via CubeMX?
Many thanks
2020-11-04 07:19 AM
Hi KSulli,
Sorry for the delay.The request you have raised will be internally checked and treated accordingly to the priority. We will give you an update as soon as possible.
Thanks for your contribution and patience.
Regards,
Khouloud.
2020-11-09 08:28 AM
Hi KSulli,
Backing to this problem, and since INTERFACE_THREAD_STACK_SIZE value is handled in the "ethernetif.c" file, STM32CubeMX later version doesn't overwrite the manual changes made by the user.
The .ioc file you have attached is created with an old 5.4.0 CubeMX version and that's why overwriting problem occurs . Please try newer version, that may be a workaround for your problem.
You will find linked STM32CubeMX version 6.0.1: https://www.st.com/en/development-tools/stm32cubemx.html
Regards,
Khouloud.
2020-11-09 10:45 AM
Hi Khouloud,
Many thanks for getting back to me with a potential workaround for this. I will give the newer version a try.
All the best,
Kevin
2020-11-10 02:56 AM
Hello KSulli,
Thank you for your feedback. Glad to know we are able to resolve the issue in a way that is satisfactory.
You're welcome anytime.
Regards,
Khouloud.