Cortex-M0+ core micro Issue with FreeRTOS integration

Hi,

I have checked with iSystem team about the reset issue and they mentioned that the version of the WinIDEA (GUI Tool for iSystem) is not tested for CM0+ core. They have given me new version and I have tested on the new version. Now,

  1. I am able to do reset.
  2. I am able to download the code.

Now I am observing following behavior.

  1. After download, if I hit RUN first time, then system is getting reset while executing the function “vPortStartFirstTask”. Then, if I hit RUN again, it is executing without any issue.

  2. While the code is running, if I do reset manually in the debugger and run the code, then it hangs in HardFault_handler (While executing the instruction CPSIE I ( Unmask interrupts).

  3. Again if I do reset, it’s getting reset at function “vPortStartFirstTask”. Then, if I hit RUN again, it is executing without any issue.

From now onward, Step 2 and 3 are continuously repeating.

I saw similar post in this forum. But I didn’t get the solution:
https://forums.freertos.org/t/vportstartfirsttask-crashes-in-cortex-m0plus-controller/5711

Regards,
Shashidhar