MSP430X Simulator Error in IAR

Hello
I am using msp430f5418 with IAR 5.10.
I have FreeRTOS 7 Configured for Medium data model.
When I run my program is in Emulator using JTAG the program works fine.
But when I use the simulator, It shows an error saying “User error: Illegal opcode found on address 0x35DE”.
By debugging I found that the error is occurred when the program reaches the function ‘xPortStartScheduler’ in portext.s43.
(exactly at ‘pop.w sr’ in portRESTORE_CONTEXT macro). Why is it showing this error? it it avoidable since only simulator shows this problem (I mean, It may be a bug in the IAR simulator)? Or can anybody tell me why is it so??

MSP430X Simulator Error in IAR

If it runs on the hardware, it would seem the most likely problem cause is the simulator.  It is not uncommon for FreeRTOS not to run in simulators, especially when not all the peripherals are simulated. I cannot support somebody else’s simulator. Regards.

MSP430X Simulator Error in IAR

Thank you for your reply sir.