Hello, i' am working with ARTX Arm and have the following problem. When SWI Function calls another SWI Function, after return it remains in Supervisor Mode. Is it not allowed to call a SWI function from another SWI function?
void TestSwi2(void) __swi(18) { static int cnt=0x5555; cnt++; } void TestSwi1(void) __swi(19) { TestSwi2(); } void main (void) { TestSwi1(); }
SWI functions cannot be nested. It should be tracked by the Compiler, but this is not yet the case. Thank you for pointing it out. Reinhard
View all questions in Keil forum