Skip to content

Commit e4c17c8

Browse files
authored
Update README.md
1 parent f56d6c3 commit e4c17c8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Download the release package from the [Releases](https://github.com/orenskl/pico
2626
└── pjvm-X.Y.Z.uf2
2727
```
2828

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.
3031

3132
The `doc` directory contains the javadoc for the device specific (e.g. GPIO) classes.
3233

@@ -121,11 +122,23 @@ After cloning the project cd into it and run the the usual CMake commands :
121122
```
122123
mkdir build
123124
cd build
124-
cmake -DPICO_SDK_PATH=/home/oren/projects/pico-sdk .. -G Ninja
125+
cmake -DTARGET=PICO -DPICO_SDK_PATH=/home/oren/projects/pico-sdk .. -G Ninja
125126
cmake --build .
126127
```
127128
128129
Make sure you set `PICO_SDK_PATH` to point to your Pico SDK location.
129130
130131
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.
131132
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`.
143+
144+

0 commit comments

Comments
 (0)