Skip to content

MbedOS configuration

JohnK1987 edited this page Jan 28, 2024 · 16 revisions

Configuration over .json and .json5 files

Is good for...

//TODO

Configuration over .cmake files

In top level CMakeLists.txt have to be line

target_link_libraries(main  PRIVATE mbed-os)

via this line you can switch between full profile mbed-os to mbed-baremetal profile or add components what are not part of that profile in default. For example USB is component what is not included in full MbedOS profile so you have to add it like this

target_link_libraries(main  PRIVATE mbed-os mbed-usb)

Another examples is mbed-events. The Mbed evets API is part of MbedOS part in default but not in baremetal profile. So if you need it in the baremetal profile then you have to do it like this.+

target_link_libraries(main  PRIVATE mbed-baremetal mbed-events)

USB capability:

mbed-usb (can be manually enabled - baremetal profile)

Storage capability:

mbed-storage (can be manually enabled - baremetal profile)

MbedTLS capability:

mbed-mbedtls

Clone this wiki locally