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.