AnsweredAssumed Answered

Code Warrior Not Recognising CPU Registers in ISR

Question asked by Ben James on Apr 7, 2014
Latest reply on Apr 8, 2014 by Kan_Li

I am developing a HAL for a university project on the Kinetis K70 tower modue.


I am using Codewarrior 10.4 and have written the following ISR for the supervisor call to set the code to privelliged mode..


void isrSVCint(void)


    uint32_t control;

    uint32_t * controlPtr;

    control = 0x00000000;

    controlPtr = &control;

    asm("LDR R1,[controlPtr,0]");

    asm("MSR CONTROL, R1");




The second ASM line is throwing an "unknown identifier: R1" error.


The previous line accept R1 without issue, so I am wondering what is occuring here...


I think I have probably missed something fairly basic here, Please advise...