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: README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,8 @@ Download the release package from the [Releases](https://github.com/orenskl/pico
26
26
└── pjvm-X.Y.Z.uf2
27
27
```
28
28
29
-
The `bin` directory contains tools and scripts required to post process class and jar files to be able to run them on the [Raspberry Pi Pico](https://www.raspberrypi.com/products/raspberry-pi-pico/).
29
+
The `bin` directory contains tools and scripts required to post process class and jar files to be able to run them on the [Raspberry Pi Pico](https://www.raspberrypi.com/products/raspberry-pi-pico/). This directory also contains a Linux version of the virtual machine (`pjvm`) that may be used in development
30
+
stage to test applications on your host machine.
30
31
31
32
The `doc` directory contains the javadoc for the device specific (e.g. GPIO) classes.
32
33
@@ -121,11 +122,23 @@ After cloning the project cd into it and run the the usual CMake commands :
Make sure you set `PICO_SDK_PATH` to point to your Pico SDK location.
129
130
130
131
If all goes well you should end up with a `pjvm.uf2` file in your `build` directory. This file can be flashed to the Pi Pico (helper scripts can be found in the `tools` directory). The `pjvm.uf2` file is the Java VM itself and includes the system classes already romized inside it. A Java application is loaded separately into the flash of the Pi Pico at a specific address.
131
132
133
+
To build the virtual machine for Linux use these commands :
134
+
135
+
```
136
+
mkdir build
137
+
cd build
138
+
cmake -DTARGET=LINUX .. -G Ninja
139
+
cmake --build .
140
+
```
141
+
142
+
The output of this build is a Linux executable named `pjvm`.
0 commit comments