An introduction guide to Mbed OS 6

Hey everyone,

After getting frustrated restarting some Mbed OS6 projects I wrote a guide on how to get started for those coming from an arduino / introductory C course type background: GitHub - SuperThunder/Mbed-OS6-Sanity-Guide: A sanity-preserving introduction to Mbed OS 6

The Mbed docs getting started is decent but cuts off after getting to blinky, and the important things to know about aren’t introduced in any particular order in the docs. So this aims to introduce the concepts in a proper order and mention some of the important things that are easy to miss like mbed_app.json and .mbedignore configuration.

Basically, avoiding some of the common pitfalls when starting with MbedOS6 like looking at docs for the wrong version or getting tripped up by the serial configuration. It also has some notes and examples.


Very nice!
Thank you for your hard work.
That should have been done by the Mbed guys a long time ago and saved endless questions over the years.

I cant’ get rid of all the errors on Studio online so gave up after a while:


Apparently something to do with this.
“resource”: “file:///home/studio/workspace/mbed2-example-blinky/main.cpp”,
“owner”: “generated_diagnostic_collection_name#44171c88-1161-4758-8f5b-73ddc9f878bb”,
“code”: “unknown_typename”,
“severity”: 1,
“message”: “In included file: unknown type name ‘__value_in_regs’”,
“source”: “clang”,
“startLineNumber”: 0,
“startColumn”: 9,
“endLineNumber”: 0,
“endColumn”: 17

Offline Studio seems to be okay but I want to use OS2 library for the smaller devices.

You supposed to be able to use MbedOS 6 bare-metal as a replacement for OS2. Anyhow where have you found a local copy of OS 2 as I cannot find it online when searching for it.

Nope, that is not right. Some very low memory boards were not possble to use under MbedOS5 and their support were droped in MbedOS6. It was because MbedOS (also with bare metal) was still much big (binary size of simple Blinky) for that targets, how I remmeber.

For example here you have one - ARMmbed/mbed-dev: Snapshot of mbed-dev (Mbed2) source code (
But Paul wrote in context of KeilStudio online, where Mbed2 was given an extra life and this open many options again.

BR, Jan

1 Like