Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
/ target-mbed Public archive

DEPRECATED **EXPERIMENTAL** Base yotta target for all mbed boards of all toolchains.

License

Notifications You must be signed in to change notification settings

ARMmbed/target-mbed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation note!

Please note: This repository is deprecated and it is no longer actively maintained.

Base yotta Target Description for all mbed OS targets

This is a base yotta target description for compiling mbed OS. Other target descriptions can inherit from it and add or override things as necessary (such as the link script, or preprocessor definitions).

You should not select this target to compile with directly (compilation will probably not succeed without target-specific startup code).

See CHANGELOG.md for the changes associated with each version.

Selecting the Toolchain

This target description supports both the arm-none-eabi-gcc and armcc (version 5) compilers. The toolchain to be used can be specified in the yotta config defined by a derived target or an application.

Derived targets must specify a default toolchain, for example in the derived target.json file:

   "config": {
     "mbed": {
        "toolchain": "gcc"
     }
   }

Code Coverage

To enable code coverage for a specific module, add this config to the application's config.json:

    "debug" : {
        "options" : {
            "coverage" : {
                "modules" : {
                    "<module name>" : true
                }
            }
        }
    }

For example, to add code coverage to the sockets module, use this config:

    "debug" : {
        "options" : {
            "coverage" : {
                "modules" : {
                    "sockets" : true
                }
            }
        }
    }

If building tests, then this config can be passed on the command line via the --config option. For example,

yotta build --config testconfig.json
yotta build --config '"debug" : { "options" : { "coverage" : { "modules" : { "sockets" : true } } } }'

About

DEPRECATED **EXPERIMENTAL** Base yotta target for all mbed boards of all toolchains.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages