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: content/learning-paths/embedded-and-microcontrollers/cmsis_rtx/_index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
title: Build an RTX5 RTOS application with Keil μVision
3
3
4
+
description: Learn how to create, build, and debug an RTX5 RTOS-based application using Keil μVision with CMSIS-RTOS2 API and Event Recorder for embedded Cortex-M development.
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/cmsis_rtx/build_and_run.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,9 @@ Click `Run` (`F5`) to start the application, and after a short time, click `Stop
23
23
24
24
Observe in the `RTX RTOS` view that the threads have been created. Two other threads, `osRtxIdleThread` and `osRtxTimerThread` will also be created.
25
25
26
-

26
+

27
27
28
-
However no output is seen in the `printf viewer`. This is because semihosting is not supported. You will learn how to address this in the next section.
28
+
However no output is seen in the `printf viewer`. This is because semihosting isn't supported. You'll learn how to address this in the next section.
29
29
30
30
Exit the debug session (`Ctrl+F5`).
31
31
@@ -48,13 +48,13 @@ You must now create a `Debug Configuration`:
48
48
49
49
When debugging, use the `OS Data` view to observe RTOS information. Open from the `Window` > `Show View` menu. Use the pull down to select different categories.
50
50
51
-

51
+

52
52
53
53
For thread aware debug, right-click on the debug connection in the `Debug Control` view, and select `Display threads`.
54
54
55
-

55
+

56
56
57
-
You will see the printf() output in `Target Console` pane.
57
+
You'll see the printf() output in `Target Console` pane.
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/cmsis_rtx/create.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This learning path will introduce the steps to create a basic RTX based RTOS app
11
11
12
12
For more information on the latest update, see the [CMSIS v6 is here](https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/cmsis-v6-is-here) blog.
13
13
14
-
You will use [Keil MDK](/install-guides/mdk) through this Learning Path. If you are using [Arm Development Studio](/install-guides/armds) refer to the appropriate comments.
14
+
You'll use [Keil MDK](/install-guides/mdk) through this Learning Path. If you're using [Arm Development Studio](/install-guides/armds) refer to the appropriate comments.
15
15
16
16
{{% notice Note%}}
17
17
If using `Arm Keil Studio for Visual Studio Code` please go to [Build an RTX5 RTOS application with Keil Studio (VS Code)](/learning-paths/embedded-and-microcontrollers/cmsis_rtx_vs/).
@@ -47,15 +47,15 @@ Then select `CMSIS C/C++ Project`, using `Arm Compiler for Embedded 6`.
47
47
48
48
### Select device
49
49
50
-
You will then be prompted to `Select Device` for your project. A list of all devices with their CMSIS-Packs installed will be shown.
50
+
You'll then be prompted to `Select Device` for your project. A list of all devices with their CMSIS-Packs installed will be shown.
51
51
52
52
For this example, select `Arm` > `Arm Cortex-M4` > `ARMCM4`. Click `OK`.
53
53
54
54
## Manage Run-Time Environment
55
55
56
-
You will first be presented with the `Manage Run-Time Environment` dialog, which allows you to specify the CMSIS software components that will be used in the project.
56
+
You'll first be presented with the `Manage Run-Time Environment` dialog, which allows you to specify the CMSIS software components that will be used in the project.
57
57
58
-
Under `CMSIS`, select `CORE`, as well as `RTOS2 (API)` > `Keil RTX5`, in `Source` form. You will also need to select `CMSIS` > `OS Tick (API)` > `SysTick`.
58
+
Under `CMSIS`, select `CORE`, as well as `RTOS2 (API)` > `Keil RTX5`, in `Source` form. You'll also need to select `CMSIS` > `OS Tick (API)` > `SysTick`.
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/cmsis_rtx/eventrecorder.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ layout: "learningpathall"
9
9
---
10
10
We saw in the last section that Keil MDK does not support semihosting.
11
11
12
-
[CMSIS-View](https://arm-software.github.io/CMSIS_6/latest/View/index.html) provides [Event Recorder](https://arm-software.github.io/CMSIS-View/latest/evr.html) which can be used instead for the printf functionality. It is supported for both FVPs and real hardware.
12
+
[CMSIS-View](https://arm-software.github.io/CMSIS_6/latest/View/index.html) provides [Event Recorder](https://arm-software.github.io/CMSIS-View/latest/evr.html) which can be used instead for the printf functionality. It's supported for both FVPs and real hardware.
13
13
14
14
{{% notice Arm Development Studio%}}
15
15
Event Recorder and Component Viewer are not supported. This section can be ignored.
@@ -19,7 +19,7 @@ Event Recorder and Component Viewer are not supported. This section can be ignor
19
19
20
20
Open the `Manage run-time environment` dialog, and enable `CMSIS-View` > `Event Recorder` (`DAP` variant).
21
21
22
-
Enable `CMSIS-Compiler` > `STDOUT (API)`, and set to `Event recorder`. You will also need to enable `CMSIS-Compiler` > `Core`.
22
+
Enable `CMSIS-Compiler` > `STDOUT (API)`, and set to `Event recorder`. You'll also need to enable `CMSIS-Compiler` > `Core`.
23
23
24
24
Click `OK` to save.
25
25
@@ -87,13 +87,13 @@ Note that the RTX source contains many Event Recorder annotations.
87
87
88
88
For ease of readability, click the `Filter` icon to hide these events. Ensure `STDIO` events are enabled.
89
89
90
-

90
+

91
91
92
92
Observe that printf output is in the form of the ASCII codes of the text output.
93
93
94
-

94
+

95
95
96
-
For this view it is better to use [EventRecorder Data](https://www.keil.com/pack/doc/compiler/EventRecorder/html/group__EventRecorder__Data.html) rather than printf statements.
96
+
For this view it's better to use [EventRecorder Data](https://www.keil.com/pack/doc/compiler/EventRecorder/html/group__EventRecorder__Data.html) rather than printf statements.
97
97
98
98
99
99
## EventRecorder Data
@@ -125,7 +125,7 @@ Use the filter to hide `STDIO` events, which shall remove the printf strings. En
125
125
126
126
The thread number is output as the first `Value`:
127
127
128
-

128
+

129
129
130
130
## Component Viewer
131
131
@@ -156,8 +156,8 @@ Click `Debug` (`Ctrl+F5`), then `Run` (`F5`) to start the application.
156
156
157
157
This file has now defined event `0x0`, and this is reflected in the filter view:
158
158
159
-

159
+

160
160
161
161
These events are now processed into meaningful messages in the Event Recorder viewer:
162
162
163
-

163
+

0 commit comments