1 year, 5 months ago.

How to select an official release (eg, mbed-os-5.11.5) when using the MBED CLI?


I have been using the MBED CLI to develop my apps on my local PC for some time. My normal workflow would be to use mbed import to import an official release. This process seemed to work fine until recently. I experienced device crashing and link time errors. After some research, I noticed that the mbed-os that I was using contained commits on the master branch beyond the mbed-os-5.11.5 tag. Running the command mbed releases gave me a list of release tags, but did not indicate which release I was currently using.

Maybe this is standard operating procedure and I was just lucky in the past. After some trial and error, I found that I could use mbed update mbed-os-5.11.5 to make that release show as my current release. I didn't find this explicit workflow in any of the MBED CLI documentation (if it is there, I missed it).


Here are the steps that I think I need to follow in order to have my current release match an official release (eg, mbed-os-5.11.5):

My question is whether this is the recommended/required workflow for my use case?

1 Answer

1 year, 5 months ago.

Please refer to the following page: https://os.mbed.com/docs/mbed-os/v5.11/tools/working-with-mbed-cli.html It's fine to use mbed update. Be sure you cd to the mbed-os directory.

Thanks, Lin, team Mbed