I installed the latest version of MDK --- uVision5.10 today, but i met an error within embedded assembler in my project
the source code is simple as below:
__asm void OS_TO_PRIVILEGE(void)
{
SVC
NOP
BX LR
ALIGN
}
But compiler always report error after building.
error: A1110E: Expected constant expression
I am sure it was correct in previous MDK version like v4.xx, But now it doesn't work....
Attached system info in PC
Did you see who answered your question? Keil!! The man!
Thanks for help
The instruction SVC requires a constant argument. This error was not trapped in V4.xx but is not correctly reported. Change the code to:
SVC 0
View all questions in Keil forum