Skip to content

MbedOS configuration

JohnK1987 edited this page Jan 30, 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 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 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 mbed-baremetal mbed-events)

USB capability:

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

Ethernet capability (TCP/IP, UDP):

mbed-netsocket

Storage capability:

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

MbedTLS capability:

mbed-mbedtls

//TODO

Clone this wiki locally