You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LED on your platform turns on and off. The main thread will additionally take a snapshot of the device's runtime statistics and display it over serial to your PC. The snapshot includes:
58
+
59
+
* System Information:
60
+
* Mbed OS Version: Will currently default to 999999
|[3:0]| Revision | Minor revision: 0x1 = Patch 1 |
105
+
106
+
107
+
108
+
You can view individual examples and additional API information of the statistics collection tools at the bottom of the page in the [related links section](#related-links).
109
+
110
+
111
+
### Output
112
+
113
+
To view the serial output you can use any terminal client of your choosing such as [PuTTY](http://www.putty.org/) or [CoolTerm](http://freeware.the-meiers.org/).
114
+
115
+
The default baud rate for this application is set to `115200` and may be modified in the `mbed_app.json` file.
116
+
117
+
You can find more information on the Mbed OS configuration tools and serail communication in Mbed OS in the related [related links section](#related-links).
118
+
119
+
The output should contain the following block transmitted at the blinking LED frequency (actual values may vary depending on your target, build profile, and toolchain):
120
+
121
+
```
122
+
=============================== SYSTEM INFO ================================
123
+
Mbed OS Version: 999999
124
+
CPU ID: 0x410fc241
125
+
Compiler ID: 2
126
+
Compiler Version: 60300
127
+
================= CPU STATS =================
128
+
Idle: 98% Usage: 2%
129
+
================ HEAP STATS =================
130
+
Current heap: 1096
131
+
Max heap size: 1096
132
+
================ THREAD STATS ===============
133
+
ID: 0x20001eac
134
+
Name: main_thread
135
+
State: 2
136
+
Priority: 24
137
+
Stack Size: 4096
138
+
Stack Space: 3296
139
+
140
+
ID: 0x20000f5c
141
+
Name: idle_thread
142
+
State: 1
143
+
Priority: 1
144
+
Stack Size: 512
145
+
Stack Space: 352
146
+
147
+
ID: 0x20000f18
148
+
Name: timer_thread
149
+
State: 3
150
+
Priority: 40
151
+
Stack Size: 768
152
+
Stack Space: 664
153
+
154
+
```
54
155
55
156
## Troubleshooting
56
157
57
158
If you have problems, you can review the [documentation](https://os.mbed.com/docs/latest/tutorials/debugging.html) for suggestions on what could be wrong and how to fix it.
159
+
160
+
## Related Links
161
+
162
+
*[Mbed OS Stats API](https://os.mbed.com/docs/latest/apis/mbed-statistics.html)
163
+
*[Mbed OS Configuration](https://os.mbed.com/docs/latest/reference/configuration.html)
164
+
*[Mbed OS Serial Communication](https://os.mbed.com/docs/latest/tutorials/serial-communication.html)
0 commit comments