Want to add some assembly instruction in c code.
By default, it compiles in thumb mode, want to compile instruction as ARM mode.
Device config used: PSoC4 default device.
Good thought. But PSoC4 (Cortex M0) support only thumb mode.
Excerpt from the ARM Cortex M0 Generic User's Guide:
The Cortex-M0 processor implements the ARMv6-M architecture, that implements the
ARMv6-M Thumb® instruction set, including Thumb-2 technology.
Attempting to execute instructions when the Thumb bit is 0 results in a HardFault or lockup.
So there seem not to be room for ARM-mode
Yes, you are right.
I developed operating system on cortex m3 architecture, wanted to check / port it on M0 architecture. Arm_v6 put lot of limitation on the implementation.
By porting it here I understood the challenges and now trying to have a common implementation.