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
feat: simulate a given UF2 firmware using npm start (#143)
The existing implementtaion of `start` does not accept
a path on the command line while it has the feature of
relaying UART0 to the console.
Add the command line parameter to specify an arbitrary image,
also accept UF2 file, besides hex, preserve backward compat.
As a result, images that send output to UART0 can be benefit
from that.
Co-authored-by: kromych <[email protected]>
Copy file name to clipboardexpand all lines: README.md
+9
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,15 @@ npm install
28
28
npm start
29
29
```
30
30
31
+
You can also specify the path to the image on the command line and/or load an UF2 image:
32
+
33
+
```sh
34
+
npm run start -- --image ./my-pico-project.uf2
35
+
```
36
+
37
+
A GDB server will be available on port 3333, and the data written to UART0 will be printed
38
+
to the console.
39
+
31
40
### MicroPython code
32
41
33
42
To run the MicroPython demo, first download [RPI_PICO-20230426-v1.20.0.uf2](https://micropython.org/resources/firmware/RPI_PICO-20230426-v1.20.0.uf2), place it in the rp2040js root directory, then run:
0 commit comments