Skip to content

Commit caacff2

Browse files
committed
Add documentation on how to enable bare-metal
1 parent e99bb4f commit caacff2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/tutorials/migrate-from-mbed-os-2-to-5.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,13 @@ Now, the program successfully compiles.
348348
### Runtime errors
349349

350350
Although the program or library now compiles successfully, runtime errors may still be present. Please visit the [compile-time errors tutorial](compile-time-errors.html#runtime-errors-and-lights-of-the-dead) for further debugging tips about common errors.
351+
352+
### Enable Bare-metal
353+
354+
Enabling bare-metal profile allows you to build mbed-os without an rtos. In order to enable it, you have to complete the migration to `Mbed OS 5`. Once the migration is completed, you can enable bare-metal by creating an `mbed-app.json` with the following contents:
355+
356+
```
357+
{
358+
"requires": ["bare-metal"]
359+
}
360+
```

0 commit comments

Comments
 (0)