Mistake on this page? Email us

Switching to GCC

Mbed Studio ships with Arm Compiler 6, but you can use the Arm Embedded GCC Compiler instead.

Supported versions:

  • 6-2017-q2-update
  • 9-2019-q4-major

Note: GCC support is not fully implemented, and some functions may not work correctly. When reporting issues with Mbed Studio, please let us know if you've switched to GCC.

Windows

In C:\Users\{username}\AppData\Local\Mbed Studio, create the file external-tools.json and point it to your installation of GCC. For example:

{
    "bundled": {
        "gcc": "C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q2-update/bin"

    },
    "defaultToolchain": "GCC_ARM"
}

Restart Mbed Studio to switch compilers.

macOS

In /Users/{username}/Library/Application Support/Mbed Studio, create the file external-tools.json and point it to your installation of GCC. For example:

{
    "bundled": {
        "gcc": "/usr/local/bin"
    },
    "defaultToolchain": "GCC_ARM"
}

Restart Mbed Studio to switch compilers.

Linux

In ~/.config/Mbed Studio, create the file external-tools.json and point it to your installation of GCC. For example:

{
    "bundled": {
        "gcc": "/usr/bin"
    },
    "defaultToolchain": "GCC_ARM"
}

Restart Mbed Studio to switch compilers.

Switching back to Arm Compiler 6

To switch back to Arm Compiler 6, either delete the file external-tools.json or edit it to set "defaultToolchain": "ARMC6". You do not need to change the path from GCC's to ARMC6's; Mbed Studio assumes the default path to ARMC6.

Restart Mbed Studio to switch compilers.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.