Mistake on this page?
Report an issue in GitHub or email us

Build profiles

Arm Mbed OS 5 supports three primary build profiles: develop, debug and release. The Online Compiler uses the develop profile. When building from Arm Mbed CLI, you can select a profile by adding the --profile <profile> flag. You can specify custom user-defined profiles by giving the path to the profile.

Develop profile

  • Small and fast code.
  • Full error information. For example, asserts have file name and line number.
  • Hard to follow code flow when using a debugger.
  • Chip goes to sleep when idle:
    • Debugger is likely to drop connection.
    • Breaks the local file system on the Arm Mbed interface on some boards.

Debug profile

  • Largest and slowest profile.
  • Full error information. For example, asserts have file name and line number.
  • Easy to step through code with a debugger.
  • Disabled sleep mode.

Release profile

  • Smallest profile and still fast.
  • Minimal error information.
  • Chip goes to sleep when going idle:
    • Debugger is likely to drop connection.
    • Breaks the local file system on the Mbed interface on some boards.
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.