Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.42 KB

build_profiles.md

File metadata and controls

24 lines (21 loc) · 1.42 KB

Out of date: This is not the most recent version of this page. Please see the most recent version

Build Profiles

mbed OS 5 supports three primary build profiles: develop, debug and release. The Online Compiler uses the develop profile. When building from 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 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 idle:
    • Debugger is likely to drop connection.
    • Breaks the local file system on the mbed interface on some boards.