Navigation Menu

Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

ARMmbed/target-mbed-gcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation note!

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

Base yotta Target Description for Compiling with arm-none-eabi-gcc

This is a base yotta target description for compiling mbed OS with the arm gcc cross-compiler. 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.

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 } } } }'

Configuring floating point support in printf

Floating point support in printf is enabled by default by this target description. (Although derived targets may override this behaviour through the yotta config system.)

If you need to change the default behaviour (perhaps because the increase in code-size is unacceptable to you), then you can do this in the config section of a target description, or in an application's config.json file:

  "gcc": {
    "printf-float": false
  }

Or:

  "gcc": {
    "printf-float": true
  }

About

DEPRECATED Base for mbed yotta compilation targets compiling with GCC

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages