Arm or Thumb C Code?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-04-10 12:30 AM
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-04-09 2:15 AM
Posted on April 09, 2009 at 11:15
I'm working on a STR730-ks eval board by IAR SYSTEMS. IAR Embedded Workbench IDE rel. 5.30.2.
I'm using the example made by IAR. My question is: all examples that use interrupts work setting ARM C Code mode only (never in Thumb). Which is the reason of this? Is it possible to set Thumb C Code instead of ARM in application where interrupt are used)? How? Where do I must set instructions in order to do this? Thanks PaoloOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-04-09 6:10 AM
Posted on April 09, 2009 at 15:10
arm7/9 always enter isr's in arm mode.
you can switch to thumb mode once you are in the handler. This is why many people use asm to wrap a 'c' interrupt handler. Cheers sjoOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-04-10 12:30 AM
Posted on April 10, 2009 at 09:30
Thank you sjo!
I found solution to my problem enabling ''Generate interwork code'' inside project options of IDE in C/C++ Compiler section. This allows me to mix my Thumb code with Arm Interrupt service routine. Cheers Paolo