This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

function call in branch instruction

Hello,
i'm using a inline assembler instruction like:

void my_svc_handler(unsigned int * svc_args)
{ .....
}

void SVC_Handler(void)
{ __asm{

.......

B my_svc_handler
}

The problem i have is, that the uVision compiler will not accept the function name "my_svc_handler" after the branch , instruction and comes up with

..\main.c(121): error: #114: label "my_svc_handler" was referenced but not defined

Does anybody know how to correct the syntax that it will work?

Thanks in advance.

0