MSP430X Simulator Error in IAR
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??