You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Schoumi 5710e9286e
fix cmake warning
11 months ago
CMake fix cmake warning 11 months ago
coverage Added gcov flag to generate relative path for .gcda files 7 years ago
CHANGELOG.md update changelog for 1.2.0 7 years ago
LICENSE Added license information 8 years ago
readme.md Merge branch 'printfloating' of https://github.com/autopulated/target-mbed-gcc 7 years ago
target.json version v1.2.2 7 years ago

readme.md

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
  }