2017-07-28 11:43 AM
Hi
does anyone have experience with long term stability of lwip + freertos on stm32 f4?
I have 100 boards. with Watch dog disabled every 8 hours one board will hang -> no ping response. I am just doing UDP packetlength= 600 and 40 frames per second.
Do I have a bug in the way my application code is written, or do you see such behaviour in your design too?
Thx
#stm32-free-rtos #lwip2017-07-31 10:04 AM
Hi
I have no such experience but I could advise you to use ''Free RTOS + Trace'' to track down a possible bug in your code ie not enough stack ,dead locks , etc.If Trace is not an option for you you can call uxTaskGetSystemState() (located in Task.c file) which can give you a good idea of the state of your system.If you use this and update it frequently the next time your bug occurs you will know by looking at the most recent values if this is an issue with the RTOS.You will probably even know which task is problematic.(make sure you enable the correct defenition or this function will not work.You can read such informetion in the Task.h file under the function's prototype)Hope this helpsHave a nice day-Andy
2017-07-31 01:14 PM
For long term issues look also at heap usage, and potential for fragmentation or leaks.
Instrument code so you have some insight into what code paths are failing.