|
|||||||||||
Technical Support Support Resources
Product Information |
GCC: Using a GNU GCC Compiler Toolchain in the IDEInformation in this article applies to:
QUESTIONDoes the µVision IDE support the GNU toolchain? Is there a way to select a different version of a GNU ARM toolchain? What are the steps required? When I try to translate with the some GNU toolchains I get the following error messages: --- Error: can't execute 'as' --- Error: can't execute 'gcc' What causes this error? ANSWERThere have been many different variants of the GCC compiler for ARM devices. Modern versions of Keil still support the GCC compiler, but now uses the GNU Arm Embedded Toolchain. To use this toolchain with Keil, do the following.
Note: As an alternative to use the GCC toolchain, the Arm Compilers support some GCC extensions, and have comparability with GCC.
ANSWER FOR µVISION VERSIONS 3.21 to 4.00To use GNU toolchain variants, µVision V3.21 allows you to specify a GNU-Tool-Prefix. If this parameter is not configured properly, you may get the error message shown above. To select the GNU toolchain open the dialog Project - Components, Environment, Books - Folders/Extensions. Use GNU Tools selects the GNU development tools for a project. The setting Cygnus Folder specifies the path to the GNU installation folder. The GNU-Tool-Prefix allows you to use GNU toolchain variants. Examples for the various GNU versions: GNU V3.22 with uclib:
CodeSourcery G++ with new-lib:
GNUARM V4 with standard library:
MORE INFORMATION
SEE ALSO
Last Reviewed: Friday, February 5, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.