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
+
RAM0: Start 0x20000000 Size: 0x30000
128
+
RAM1: Start 0x1fff0000 Size: 0x10000
129
+
ROM0: Start 0x0 Size: 0x100000
130
+
================= CPU STATS =================
131
+
Idle: 98% Usage: 2%
132
+
================ HEAP STATS =================
133
+
Current heap: 1096
134
+
Max heap size: 1096
135
+
================ THREAD STATS ===============
136
+
ID: 0x20001eac
137
+
Name: main_thread
138
+
State: 2
139
+
Priority: 24
140
+
Stack Size: 4096
141
+
Stack Space: 3296
142
+
143
+
ID: 0x20000f5c
144
+
Name: idle_thread
145
+
State: 1
146
+
Priority: 1
147
+
Stack Size: 512
148
+
Stack Space: 352
149
+
150
+
ID: 0x20000f18
151
+
Name: timer_thread
152
+
State: 3
153
+
Priority: 40
154
+
Stack Size: 768
155
+
Stack Space: 664
156
+
157
+
```
54
158
55
159
## Troubleshooting
56
160
57
161
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.
162
+
163
+
## Related Links
164
+
165
+
*[Mbed OS Stats API](https://os.mbed.com/docs/latest/apis/mbed-statistics.html)
166
+
*[Mbed OS Configuration](https://os.mbed.com/docs/latest/reference/configuration.html)
167
+
*[Mbed OS Serial Communication](https://os.mbed.com/docs/latest/tutorials/serial-communication.html)
0 commit comments