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
*[Using Zephyr Device Tree in JavaScript](#devicetree)
22
24
*[Debugging Native Code](#debugging-native-code)
23
25
*[Adding a new board](#new-board)
@@ -179,8 +181,101 @@ Other silicon families may have different requirements.
179
181
<a id="win-instructions"></a>
180
182
### Installing
181
183
182
-
*Not yet supported*
184
+
1. Install the Moddable SDK tools by following the instructions in the [Getting Started document](./../Moddable%20SDK%20-%20Getting%20Started.md).
185
+
186
+
2. Install Zephyr forWindows by following the instructionsin the Zephyr [Getting Started Guide](https://docs.zephyrproject.org/latest/develop/getting_started/index.html). A summary is presented below:
3. Open the "Environment Variables" dialog of the Control Panel app by following [these instructions](https://www.architectryan.com/2018/08/31/how-to-change-environment-variables-on-windows-10/). From that dialog:
245
+
- Create a User Variable called `ZEPHYR_BASE` and set it to %USERPROFILE%\zephyrproject\zephyr
246
+
- Variable name: `ZEPHYR_BASE`
247
+
- Variable value (Use the "Browse Directory..." button to make this selection): `C:\Users\<user>\zephyrproject\zephyr`
248
+
249
+
<a id="upload_port_win"></a>
250
+
There is one optional environment variable for advanced users: `UPLOAD_PORT`.<br><br>
251
+
252
+
- `UPLOAD_PORT`: the COM port for your device, e.g. `COM3`
253
+
254
+
To identify the correct serial port, launch the Windows Device Manager. Open the "Ports (COM & LPT)" section, verify the Serial port adapter is displayed, and note the associated COM port (e.g. COM3).
255
+
256
+
11. Verify Zephyr SDK installation by building the `blinky` sample for your board.
257
+
258
+
```sh
259
+
cd %USERPROFILE%\zephyrproject\zephyr
260
+
west build -p always -b nucleo_f413zh samples/basic/blinky
261
+
```
262
+
263
+
You can then flash the software to run it.
264
+
265
+
```sh
266
+
west flash
267
+
```
268
+
269
+
12. Verify the complete setup by building `helloworld`for your device target:
270
+
271
+
```sh
272
+
cd %MODDABLE%\examples\helloworld
273
+
mcconfig -d -m -p zephyr/nucleo_f413zh
274
+
```
275
+
276
+
13. The device should connect to xsbug and stop at the `debugger` statement.
277
+
> Note: Make sure you have built the Moddable tools in the Moddable Getting Started step.
278
+
> Note: Make sure you have launched the `xsbug` debugger
0 commit comments