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)
24
24
*[Debugging Native Code](#debugging-native-code)
25
25
*[Adding a new board](#new-board)
@@ -128,7 +128,7 @@ The Moddable SDK build uses Zephyr SDK v4.3 or later.
128
128
west update
129
129
```
130
130
131
-
9.The Zephyr west extension command, west packages can be used to install Python dependencies.
131
+
9.Install Python dependencies using `west packages`.
132
132
133
133
```sh
134
134
west packages pip --install
@@ -184,9 +184,9 @@ Other silicon families may have different requirements.
184
184
1. Install the Moddable SDK tools by following the instructions in the [Getting Started document](./../Moddable%20SDK%20-%20Getting%20Started.md).
185
185
186
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:
187
-
187
+
188
188
> Note: Moddable tools use the CMD shell. When installing Zephyr from the instructions, choose the `Batchfile` instructions.
189
-
189
+
190
190
3. Install Zephyr requirements:
191
191
192
192
```sh
@@ -212,9 +212,9 @@ Other silicon families may have different requirements.
212
212
```sh
213
213
zephyrproject\.venv\Scripts\activate.bat
214
214
```
215
-
215
+
216
216
> Note: You can deactivate the virtual environment by typing `deactivate`in your shell.
217
-
217
+
218
218
7. Install the `west` tool:
219
219
220
220
```sh
@@ -249,7 +249,7 @@ Other silicon families may have different requirements.
249
249
- Create a User Variable called `ZEPHYR_BASE` and set it to %USERPROFILE%\zephyrproject\zephyr
250
250
- Variable name: `ZEPHYR_BASE`
251
251
- Variable value (Use the "Browse Directory..." button to make this selection): `C:\Users\<user>\zephyrproject\zephyr`
252
-
252
+
253
253
- Create a User Variable called `DEBUGGER_PORT`: the COM port for your device, e.g. `COM3`. This is used to connect your device to the `xsbug` JavaScript debugger.
254
254
255
255
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).
@@ -276,7 +276,6 @@ Other silicon families may have different requirements.
276
276
277
277
13. The device should connect to xsbug and stop at the `debugger` statement.
278
278
> Note: Make sure you have built the Moddable tools in the Moddable Getting Started step.
279
-
> Note: Make sure you have launched the `xsbug` debugger
280
279
281
280
<a id="lin"></a>
282
281
## Linux
@@ -494,6 +493,8 @@ As with all Moddable platforms, you can debug script code using `xsbug` over the
494
493
495
494
For native code source level debugging, you can use [GDB](https://www.gnu.org/software/gdb/documentation/).
496
495
496
+
> Note: These instructions are for macOS and Linux.
0 commit comments