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
Copy file name to clipboardExpand all lines: README.md
+43-10Lines changed: 43 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,22 @@ This example demonstrates how Mbed OS crash reporting works on an Mbed OS Enable
5
5
6
6
You can find more information about the crash reporting APIs in the [documentation](https://os.mbed.com/docs/mbed-os/latest/apis/error-handling.html#crash-reporting-and-auto-reboot).
7
7
8
-
You can build this project with all supported [Mbed OS build tools](https://os.mbed.com/docs/mbed-os/latest/tools/index.html). However, this example project specifically refers to the command-line interface tool[Arm Mbed CLI](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli).
8
+
You can build the project with all supported [Mbed OS build tools](https://os.mbed.com/docs/mbed-os/latest/tools/index.html). However, this example project specifically refers to the command-line interface tools,[Arm Mbed CLI 1](https://github.com/ARMmbed/mbed-cli#installing-mbed-cli) and [Mbed CLI 2](https://github.com/ARMmbed/mbed-tools#installation).
9
9
10
-
1. Install Mbed CLI.
10
+
## Mbed OS build tools
11
+
12
+
### Mbed CLI 2
13
+
Starting with version 6.5, Mbed OS uses Mbed CLI 2. It uses Ninja as a build system, and CMake to generate the build environment and manage the build process in a compiler-independent manner. If you are working with Mbed OS version prior to 6.5 then check the section [Mbed CLI 1](#mbed-cli-1).
1. From the command-line, import the example: `mbed import mbed-os-example-crash-reporting`
12
21
1. Change the current directory to where the project was imported.
13
22
23
+
14
24
## Application functionality
15
25
16
26
This example demonstrates the Mbed OS crash reporting feature and the APIs associated with it. In the first run, the application generates a fault that causes the system to reboot. In the second run, the application detects that the reboot was caused by an error and prints the fault context information in the console.
@@ -45,23 +55,46 @@ Second run:
45
55
1. Connect a USB cable between the USB port on the target and the host computer.
46
56
1. Run this command to build the example project and program the microcontroller flash memory:
Depending on the target, you can build the example project with the `GCC_ARM`, `ARM` or `IAR` toolchain. After installing Arm Mbed CLI, run the command below to determine which toolchain supports your target:
0 commit comments