I'm using k64f with liwp and freertos. FreeRtos works fine.
I'm running function NVIC_SystemReset() when i'm pushing the button while rtos is working .
Unfortunately mcu stops (not reset).
Is it possible to reset (Software reset) mcu (with running freertos) by using NVIC_SystemReset()?
If not - how can I do it?
Yes, it is possible.
Are you testing this in the debugger? If so, then you can expect the debugger to halt the processor when the reset vector is invoked (i.e., after calling NVIC_SystemReset). Try without the debugger.