- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem statement:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good thought. But PSoC4 (Cortex M0) support only thumb mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.