I am using MSP430F5418 with FreeRTOS 7 in medium data model.
I want to save the MSP CRC registers on FreeRTOS context switch. I edited the portext.s43 like this.
In save context macro, after pushing 15 registers to stack, I push the CRC registers. (CRCDI is the MSP register to save)
mov.w CRCD1, r15
In restore context macro, I poped the CRC just before poping the 15 registers.
mov.w r15, CRCDI
It is supposed to be working , but it is not. The program control is going to unknow location.
Anybody have any Idea?