We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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.
Thank you - I just hadn't found the individual settings. All working now.