Mbed-cli: No mechanism to list available targets

Created on 29 Jun 2016  路  4Comments  路  Source: ARMmbed/mbed-cli

mbed target requires an exact name match for a target, but does not provide a mechanism for listing available targets.

enhancement in progress

Most helpful comment

@bremoran Available targets for? Compiling or exporting?
Compiling: mbed compile --supported (https://github.com/ARMmbed/mbed-cli#compiling-your-program)
Exporting: mbed export --supported (not listed under https://github.com/ARMmbed/mbed-cli#exporting-to-desktop-ides. I'll add it to the documentation soon)

All 4 comments

@bremoran Available targets for? Compiling or exporting?
Compiling: mbed compile --supported (https://github.com/ARMmbed/mbed-cli#compiling-your-program)
Exporting: mbed export --supported (not listed under https://github.com/ARMmbed/mbed-cli#exporting-to-desktop-ides. I'll add it to the documentation soon)

That feature should probably be mirrored in mbed target

Without a target set, mbed compile directs you to mbed target, which does not provide an API for getting a list of supported targets.

mbed target --help
usage: mbed target [-h] [-G] [-v] [-vv] [name]

This is an alias to 'mbed config target [--global] [name]'

positional arguments:
  name                 Default target name. Example: K64F, NUCLEO_F401RE,
                       NRF51822...

optional arguments:
  -h, --help           show this help message and exit
  -G, --global         Use global settings, not local
  -v, --verbose        Verbose diagnostic output
  -vv, --very_verbose  Very verbose diagnostic output

Note that targets vs IDEs and targets vs toolchains might have different level of support. While we strive to support all targets across toolchains, currently that's not the case.
Keil for example supports all targets, but gcc make relies on a template for a specific target, etc, etc. Refer to https://github.com/mbedmicro/mbed to extend the targets support list for either toolchains or IDEs

Now implemented

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JanneKiiskila picture JanneKiiskila  路  7Comments

seankinghan picture seankinghan  路  9Comments

maclobdell picture maclobdell  路  3Comments

masoudr picture masoudr  路  3Comments

sillevl picture sillevl  路  10Comments