We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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
Thanks for help
Did you see who answered your question? Keil!! The man!