Skip to content

Commit 70e2ca2

Browse files
author
Amanda Butler
authored
Merge pull request #965 from kegilbert/quickstart-baremetal
Quickstart baremetal notes
2 parents 0a54c2d + 31a6d87 commit 70e2ca2

File tree

3 files changed

+24
-40
lines changed

3 files changed

+24
-40
lines changed

docs/tutorials/quickstart/cli_code.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,20 @@
1515

1616
```console
1717
$ mbed compile --target K64F --toolchain ARM --flash
18-
```
18+
```
1919

2020
The `--flash` argument automatically flashes the compiled program onto your board if it is connected to your computer.
2121

2222
<span class="tips">**Tip:** You can get the name of the board plugged into your computer by running `mbed detect`, and you can get a full list of supported toolchains and targets by running the `mbed compile --supported` command.</span>
2323

24+
<span class="notes">**Note:** To build with the Mbed OS bare metal profile, add `"requires": ["bare-metal"]` to the `mbed_app.json` file:
25+
26+
```NOCI
27+
{
28+
"requires": ["bare-metal"],
29+
"target_overrides": {
30+
"*": {
31+
```
32+
</span>
33+
2434
1. Press the board's reset button. The LED blinks.

docs/tutorials/quickstart/example_walkthrough.md

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,9 @@ The default baud rate, or speed, for this application is set to `9600`. You can
1010

1111
<span class="tips">**Tip:** You can find more information on the Mbed OS configuration tools and serial communication in Mbed OS in the [related links section](#related-links).</span>
1212

13-
The output transmits the following block at the blinking LED frequency (actual values may vary depending on your target, build profile and toolchain):
14-
15-
```
16-
=============================== SYSTEM INFO ================================
17-
Mbed OS Version: 999999
18-
CPU ID: 0x410fc241
19-
Compiler ID: 2
20-
Compiler Version: 60300
21-
RAM0: Start 0x20000000 Size: 0x30000
22-
RAM1: Start 0x1fff0000 Size: 0x10000
23-
ROM0: Start 0x0 Size: 0x100000
24-
================= CPU STATS =================
25-
Idle: 98% Usage: 2%
26-
================ HEAP STATS =================
27-
Current heap: 1096
28-
Max heap size: 1096
29-
================ THREAD STATS ===============
30-
ID: 0x20001eac
31-
Name: main_thread
32-
State: 2
33-
Priority: 24
34-
Stack Size: 4096
35-
Stack Space: 3296
36-
37-
ID: 0x20000f5c
38-
Name: idle_thread
39-
State: 1
40-
Priority: 1
41-
Stack Size: 512
42-
Stack Space: 352
43-
44-
ID: 0x20000f18
45-
Name: timer_thread
46-
State: 3
47-
Priority: 40
48-
Stack Size: 768
49-
Stack Space: 664
50-
51-
```
13+
The output transmits the system, CPU, heap and thread information.
14+
15+
<span class="notes">**Note:** If you are building with the Mbed OS bare metal profile, you will not get thread information.</span>
5216

5317
#### Understanding the output
5418

docs/tutorials/quickstart/quick-start-compiler.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ Alternatively, you may select the import button on the top left hand side of the
2727

2828
<span class="images">![](https://s3-us-west-2.amazonaws.com/mbed-os-docs-images/online_compile_button.png)</span>
2929

30+
<span class="notes">**Note:** To build with the Mbed OS bare metal profile, add `"requires": ["bare-metal"]` to the `mbed_app.json` file:
31+
32+
```NOCI
33+
{
34+
"requires": ["bare-metal"],
35+
"target_overrides": {
36+
"*": {
37+
```
38+
</span>
39+
3040
1. Open the folder where the executable file was downloaded, and then click and drag (or copy and paste) the file to your Mbed board's USB device folder.
3141
3242
1. Press the board's reset button.

0 commit comments

Comments
 (0)