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.
Hello Scott, thanks for your help. It's working now. Was already looking into the instr. Manual, but now i see the difference between B loopA // Branch to loopA and BL func // Branch with link/call to function I found this in the CortexM3InstructionSet Examples.
regards, Hermann