Currently I am using STM32 Cortex M3, compiler IAR 4.x & FreeRTOS v6.1.0.
I have a firmware that send some data through GSM module to PC.
Before I start implement FreeRTOS, everything worked properly.
After I implement FreeRTOS to my code, I facing HardFaultException problem after sending certain bytes of string. I try debug and narrow down the posibility so I have only 1 task running.
I found that if I send a long string which mean more bytes in 1 message, then it crash earlier. If I reduce the string size that I am sending per message, then it take longer time to crash.
Could anyone please guide me on this? If I need to clear any buffer etc? But this firmware running without RTOS and it work properly. I also tried to put enter critical before I do and strcpy or memcpy, I thought interrupt might causing this problem but still the same problem. I really run out of idea. So please give me a hand on this.
Thank you so much.