Hi Kuldeep Marker,
Please debug your code in the IAR with your debugger, check whether your code works OK or not in the debug mode?
Beside, check your code, where it is downloaded, in the RAM or Flash.
Anyway, I suggest you debug the code at first.
Any updated information after you debug it, please kindly let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------