Hi Slah,
Actually there's no difference to create a interrupt function no matter integrate with the FreeRTOS or just baremetal.
I'd highly recommend that you should check the interrupt function should be assigned to the vector table correctly.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------