Skip to content

mbed detect should show firmware information #541

@dhwalters423

Description

@dhwalters423

mbed detect could be more useful if, in addition to the name of the target platform, it could also show the firmware version, a subset of what the mbedls command shows. For example, the current mbed detect output shows:

[mbed] Detected K64F, port COM4, mounted D:
[mbed] Supported toolchains for K64F
+--------+-----------+-----------+-----------+-----------+-----------+
| Target | mbed OS 2 | mbed OS 5 |    ARM    |  GCC_ARM  |    IAR    |
+--------+-----------+-----------+-----------+-----------+-----------+
| K64F   | Supported | Supported | Supported | Supported | Supported |
+--------+-----------+-----------+-----------+-----------+-----------+
Supported targets: 1
Supported toolchains: 3

It would be helpful to have at least one more column describing the DAPLink version, for example:

+--------+-----------+-----------+-----------+-----------+-----------+-----------------+
| Target | mbed OS 2 | mbed OS 5 |    ARM    |  GCC_ARM  |    IAR    | daplink_version |
+--------+-----------+-----------+-----------+-----------+-----------+-----------------+
| K64F   | Supported | Supported | Supported | Supported | Supported | 0243            |
+--------+-----------+-----------+-----------+-----------+-----------+-----------------+

This could be useful information for debugging in particular. One case where it would have come in handy is I was having an issue with the DAPLink version being out of date, causing a crash when the .bin was dragged onto the board. I wasn't aware of the command mbedls and if I had the firmware information immediately available it could have saved me a bit of time and headache.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions