Hi Overcast,
the arm-elf-gcc compiler can also generate thumb code.
There are several possibilities how to make this.
For C Files you can use the following compiler options:
-mthumb assemble Thumb code
-mthumb-interwork support ARM/Thumb interworking
Use "arm-elf-gcc --target-help" to get a list for the special arm command line options.
For Assembler files you can use the following (insode the file):
.arm - for ARM 32 code (or .code 16)
.thumb - forthumb code (.code 32)
For C-files it is also possible to use the following preprocessor macros (use the attribute key word for this):
__thumb
__arm
But i do not know how to make this in detail. If you can't get i running, please mail again.
Hint: Interrupts use alwys ARM (32 bit) code)
Best regards,
Edi