This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using uVision3 with arm and thumb

I am using the GNU toolchain with uVision3 and my project has a number of files that contain ISRs and must compile in Arm mode. There are other files that can use Thumb mode. If I set the check box for Thumb mode for normal code and clear it for ISR code I can compile as I want. When I click on 'Build Target' the system re-compiles those files originally compiled in Thumb mode as Arm if I compiled the ISR code last or tries to compile the ISR code in Thumb mode if I compiled the Thumb files last. Is there anyway I can stop this?

Thanks
Peter

Parents
  • Setting aside that there's quite probably a #pragma or something that would let you change between modes in the middle of a source file, your problem is a lack of understanding how IDEs, including uVision3, work. What you want to do is use different flags for different files. So leave alone the global switch, and find the per-file or per-group compiler switches.

Reply
  • Setting aside that there's quite probably a #pragma or something that would let you change between modes in the middle of a source file, your problem is a lack of understanding how IDEs, including uVision3, work. What you want to do is use different flags for different files. So leave alone the global switch, and find the per-file or per-group compiler switches.

Children