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

ARM/Thumb interworking problems

I have a problem with calling ARM code from Thumb (C) code. The problem causes an 'undefined instruction' exception when using the 'switch' statement, because it is trying to call __ARM_switch8 from THUMB code like this:

0005b4  003b              MOVS     r3,r7
0005b6  f7ff fffe         BL       __ARM_switch8

Any suggestions? The address of __ARM_switch8 is even (0x10002cc4) and all THUMB code is at odd addresses, but the call to it is not being coded as a register-indirect call...

I have enabled ARM/Thumb interworking for this project.

0