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
Further improvements of this example project (#14)
* - added STM32H7B3I-DK board
- removed NXP FRDM-MCXN947 board
- added RTT debug configuration for STM32H7B3I-DK board
- corrected the README.md file which described two different csolution files
* Further improvements in the README.md file, and added a screenshot of the Zephyr Terminal in the video folder. Also updated the zephyr.csolution.yml file for a more precise Zephyr board selection
* Update VSCode settings and add STM32H7B3I-DK debug configuration files
Copy file name to clipboardExpand all lines: README.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# CMSIS-Zephyr
2
2
3
-
This repository contains an exemplary CMSIS solution file that can be used to build two Zephyr basic examples on two
3
+
This repository contains an exemplary CMSIS solution file that can be used to build two Zephyr basic examples on multiple
4
4
different development boards. It can be easily adapted to other boards or examples. It uses Zephyr's `west` build
5
5
system to create the executable file for an application and the
6
6
[Arm CMSIS Debugger](https://marketplace.visualstudio.com/items?itemName=Arm.vscode-cmsis-debugger) to flash download
@@ -14,18 +14,23 @@ and run the image on the target hardware.
14
14
15
15
- Clone this repository onto your machine.
16
16
- Open it in VS Code. It should install required extensions automatically.
17
-
- In the CMSIS view, click on **...**, use **Open Solution in Workspace**, and choose "zephyr".
18
17
- Press the **Manage Solution Settings** button. In the dialog, select the target board and application.
19
18
- Press the **Build solution** button to build the example.
20
19
- Press the **Load & Debug application** button to start a debug session.
21
20
22
21
> [!NOTE]
23
-
> Check that the **Arm CMSIS Solution** extension is at least v1.66.0.
22
+
> - Check that the **Arm CMSIS Solution** extension is at least v1.66.0.
23
+
> - If you are working under Windows, you will get the error `exec: "west": executable file not found in %PATH%` because in this example the path to the west build system is set up for Linux/Mac. Open the settings of the **Arm CMSIS Solution** extension and change the `PATH` environment variable of the **Workspace** from `$HOME/zephyrproject/.venv/bin` to `$HOME/zephyrproject/.venv/Scripts`.
24
+
24
25
25
26
### Switch to a different board
26
27
27
-
If you want to run the examples on a different board, simply edit the `Examples/Blinky/blinky.csolution.yml` or
28
-
`Examples/Threads/threads.csolution.yml` files:
28
+
If you want to run the examples on a different board, simply extend the `zephyr.csolution.yml` file:
29
+
- Search for your [development board](https://www.keil.arm.com/boards/) and select it.
30
+
- Follow the link to the **Device** and its **CMSIS Pack** (DFP) and copy the text in the **Add to CMSIS Solution** box into the 'zephyr.csolution.yml' file into the 'packs:' list.
31
+
- Go back to the board page and follow the link to the **CMSIS Pack** (BSP). Again, copy the text in the **Add to CMSIS Solution** box into the 'zephyr.csolution.yml' below the DFP.
32
+
- Add a new [Target Type](https://open-cmsis-pack.github.io/cmsis-toolbox/YML-Input-Format/#target-types) and specify the board name after the '- type' token.
33
+
- Specify the board vendor and boardname as well as the device vendor and the device name. Use the names from the CMSIS board and device pages.
29
34
30
35
```yml
31
36
# List the packs that define the device and/or board.
@@ -41,16 +46,15 @@ If you want to run the examples on a different board, simply edit the `Examples/
41
46
```
42
47
43
48
If your development board's [CMSIS board name](https://www.keil.arm.com/boards/) and
44
-
[Zephyr board name](https://docs.zephyrproject.org/latest/boards/index.html#) do not match, you need to add the correct
45
-
Zephyr board name like this:
49
+
[Zephyr board name](https://docs.zephyrproject.org/latest/boards/index.html#) do not match, you need to add the correct Zephyr board name with the variable `west-board:`. This variable may contain the `Board_Name`, or the `Board_Name/SoC_Name` or the `Board_Name/SoC_Name/Core_Name`, depending on the complexity of the board and SoC. See the paragraph **Supported Features** on the Zephyr board pages for more details.
46
50
47
51
```yml
48
52
target-types:
49
53
- type: B-L475-IOT01A
50
54
board: STMicroelectronics::B-L475E-IOT01A
51
55
device: STMicroelectronics::STM32L475VGTx
52
56
variables:
53
-
- west-board: disco_l475_iot1
57
+
- west-board: disco_l475_iot1/stm32l475xx
54
58
```
55
59
56
60
> [!NOTE]
@@ -59,6 +63,8 @@ Zephyr board name like this:
59
63
60
64
## Use the Zephyr Terminal in CMSIS View
61
65
66
+

67
+
62
68
Keil Studio includes a built-in **Zephyr Terminal** that runs `west` commands directly inside the IDE. When the terminal opens, it automatically sets the example build folder as the working directory and configures the Zephyr environment.
0 commit comments