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: docs/quickstart/firmware/hardware.md
+29-26Lines changed: 29 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,30 +22,27 @@ Complete the [Install dependencies](https://docs.zephyrproject.org/3.7.0/develop
22
22
{: .note}
23
23
Currently the Ocre runtime is built on Zephyr `3.7.0`. As a result, the links in the above section reference `v3.7.0` documentation and not the *latest* documentation. It is advised to follow the links in this guide to ensure compatibility with your device.
24
24
25
-
### **2. Install WEST**
26
-
27
-
Install the [west](https://docs.zephyrproject.org/latest/develop/west/index.html) CLI tool, which is needed to build, run and manage Zephyr applications.
25
+
### **2. Create a Virtual Python Environment (venv)**
26
+
Create a [Python virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/) (venv) to isolate your Python project dependencies.
28
27
29
28
```
30
-
pip install west
29
+
mkdir runtime && cd runtime
30
+
python3 -m venv .venv
31
+
source .venv/bin/activate
31
32
```
32
33
33
-
{: .note}
34
-
We recommend using a Python virtual environment like [venv](https://docs.python.org/3/library/venv.html) to help manage pip dependencies for this project.
34
+
{: .highlight}
35
+
You *may* need to install the `python3-venv` package (or equivalent) on your host system beforehand.
35
36
36
-
### **3. Initialize the workspace**
37
+
### **3. Install WEST**
37
38
38
-
Next, we will prepare the Zephyr workspace and checkout the project code.
39
+
Install the [west](https://docs.zephyrproject.org/latest/develop/west/index.html) CLI tool, which is needed to build, run and manage Zephyr applications.
39
40
40
-
First, create the `runtime` directory in the location of your choosing.
41
41
```
42
-
mkdir runtime
42
+
pip install west
43
43
```
44
-
Next, cd to the `runtime` directory.
45
44
46
-
```
47
-
cd runtime
48
-
```
45
+
### **4. Initialize the workspace**
49
46
50
47
Now, initialize the `ocre-runtime` repo.
51
48
```
@@ -58,35 +55,41 @@ Lastly, update the repo with the `west` utility.
In order to build the Ocre runtime properly, you'll need to install a few remaining requirements for Zephyr.
64
64
65
65
```
66
66
pip install -r zephyr/scripts/requirements.txt
67
67
```
68
68
69
-
### **5. Build the Ocre Runtime**
69
+
### **6. Build the Ocre Runtime**
70
70
71
-
To build and flash for a physical device, follow these steps:
71
+
Build the application for your specific board, replacing `BOARD_NAME` with your board's name:
72
+
```
73
+
west build -b BOARD_NAME ./application -d build -- -DMODULE_EXT_ROOT=`pwd`/application
74
+
```
72
75
73
-
1. Connect your board to your computer.
76
+
{: .note}
77
+
See the [Board Support](../../../board-support) section in your docs to see if your board is currently supported. If your board is listed, check the "Building and Flashing the Ocre Runtime" section for your `BOARD_NAME` and other relevant info for flashing the Ocre Runtime to your particular device.
74
78
75
-
2. Build the application for your specific board. Replace `BOARD_NAME` with your board's name:
76
-
```
77
-
west build -b BOARD_NAME ./application -d build -- -DMODULE_EXT_ROOT=`pwd`/application
78
-
```
79
+
### **7. Flash the Ocre Runtime to Your Device**
79
80
80
-
{: .note}
81
-
You can also run the **West Build** task directly from the **Ocre Workspace** file as defined in the [Setting Up Your Development Environment](../dev-environment) section. If you do, be sure to select your board name as your build target. See the [Board Support](../../../board-support) section in your docs to see if your board is currently supported.
81
+
To flash the Ocre Runtime to your device follow these steps:
82
82
83
-
### **6. Flash the Ocre Runtime to Your Device**
83
+
1. Connect your board to your computer.
84
+
2. Open your [serial console](../../quickstart/prerequisites/serial-console/index.md), and connect to your board.
84
85
1. Flash the application to your device:
85
86
```
86
87
west flash
87
88
```
88
89
89
-
After flashing, restart/reset your board to run the application.
90
+
After flashing, restart/reset your board to run the application. If successful, you should see the following output on your console:
Copy file name to clipboardExpand all lines: docs/quickstart/firmware/simulated.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,30 +31,27 @@ Complete the [Install dependencies](https://docs.zephyrproject.org/3.7.0/develop
31
31
{: .note}
32
32
Currently the Ocre runtime is built on Zephyr `3.7.0`. As a result, the links in the above section reference `v3.7.0` documentation and not the *latest* documentation. It is advised to follow the links in this guide to ensure compatibility with your device.
33
33
34
-
### **2. Install WEST**
35
-
36
-
Install the [west](https://docs.zephyrproject.org/latest/develop/west/index.html) CLI tool, which is needed to build, run and manage Zephyr applications.
34
+
### **2. Create a Virtual Python Environment (venv)**
35
+
Create a [Python virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/) (venv) to isolate your Python project dependencies.
37
36
38
37
```
39
-
pip install west
38
+
mkdir runtime && cd runtime
39
+
python3 -m venv .venv
40
+
source .venv/bin/activate
40
41
```
41
42
42
-
{: .note}
43
-
We recommend using a Python virtual environment like [venv](https://docs.python.org/3/library/venv.html) to help manage pip dependencies for this project.
43
+
{: .highlight}
44
+
You *may* need to install the `python3-venv` package (or equivalent) on your host system beforehand.
44
45
45
-
### **3. Initialize the workspace**
46
+
### **3. Install WEST**
46
47
47
-
Next, we will prepare the Zephyr workspace and checkout the project code.
48
+
Install the [west](https://docs.zephyrproject.org/latest/develop/west/index.html) CLI tool, which is needed to build, run and manage Zephyr applications.
48
49
49
-
First, create the `runtime` directory in the location of your choosing.
50
50
```
51
-
mkdir runtime
51
+
pip install west
52
52
```
53
-
Next, cd to the `runtime` directory.
54
53
55
-
```
56
-
cd runtime
57
-
```
54
+
### **4. Initialize the workspace**
58
55
59
56
Now, initialize the `ocre-runtime` repo.
60
57
```
@@ -67,15 +64,18 @@ Lastly, update the repo with the `west` utility.
In order to build the Ocre runtime properly, you'll need to install a few remaining requirements for Zephyr.
73
73
74
74
```
75
75
pip install -r zephyr/scripts/requirements.txt
76
76
```
77
77
78
-
### **5. Build the application**
78
+
### **6. Build the application**
79
79
80
80
The following will build the firmware for the *virtual*, `native_sim` target which will allow you to run the Ocre runtime on a simulated device, rather than a physical board.
You can also run the **West Build** task directly from the **Ocre Workspace** file as defined in the [Setting Up Your Development Environment](../dev-environment) section. If you do, be sure to select `native_sim` as your build target.
87
87
88
-
### **6. Run the application**
88
+
### **7. Run the application**
89
89
90
90
To run the application, simply run the following command:
91
91
```
92
92
./build/zephyr/zephyr.exe
93
-
```
93
+
```
94
+
95
+
If successful, you should see the following output:
0 commit comments