2018-12-06 09:30 PM
Dear friends,
I am using STM32F107RCt6 MCU and I am running a TCP server on it using LwIP and freeRTOS.
The total heap size of freeRTOS is 10KB and there are two tasks which each task has 256 wods stack. One task is used for Modbus TCP server and the other one is used for Modbus RTU thread.
The Modbus RTU thread works correctly alone and everything works fine but when I add the Modbus TCP server, the MCU hangs and stops working and both tasks don't work anymore.
I am using the latest version of CubeMX and STM32F1 hal libraries.
Any helps would be appreciate,
Mujtaba
2019-05-02 06:25 AM
Perhaps provide diagnostic or instrumentation output to understand the nature of the failure and the path it took to get there, rather than just add a watchdog to reset the processor when your code fails.