Shell
The shell of pico-jxglib is a powerful interactive command-line interface that allows you to interact with your firmware in real-time. It provides a bash-like experience, enabling you to execute various built-in commands for debugging, file management, and more. With the shell, you can easily test and modify the behavior of your firmware without the need for recompilation, making your development process more efficient and enjoyable.
Flashing pico-jxgLABO
The shell is available in any firmware that links a jxglib's library jxglib_Shell. While it can work with with a variety of devices like USB serial, USB keyboard, UART, Wi-Fi (Telnet), TFT LCD display, and more, the most common use case is to use it with a USB serial interface. Here, we will use pico-jxgLABO, a ready-to-flash UF2 Binary that uses USB serial for the shell, as an example to demonstrate how to use the shell and its commands.
| Target Board | UF2 Binary File |
|---|---|
| Raspberry Pi Pico | pico-jxgLABO.uf2 |
| Raspberry Pi Pico W | pico-w-jxgLABO.uf2 |
| Raspberry Pi Pico2 | pico2-jxgLABO.uf2 |
| Raspberry Pi Pico2 W | pico2-w-jxgLABO.uf2 |
Flash UF2 Binary File to Pico Board
Connect a Pico board to a host PC using a USB cable while holding BOOTSEL button, and you will see a drive like follows:
-
Pico (RP2040)

-
Pico2 (RP2350)

Copy a UF2 file to this drive. No need to care about the destination directory.
Go to this page if you are interested in the details of how to build your own firmware with the shell.
Setting Up the Terminal
After flashing the pico-jxgLABO, connect the Pico board to your computer using a USB cable. Then, to establish a serial communication, you can use a terminal program such as Tera Term on Windows.
Setup Tera Term for LABOPlatform
From the menu bar, select [File] - [New Connection...] to open the dialog below:

pico-jxgLABO or a firmware based on LABOPlatform provides two USB serial ports: one for terminal use and the other for applications such as logic analyzers and plotters. Select one of the ports and press Enter key in the terminal. When successfully connected, you will see a prompt in the terminal.
Key Operations
The shell provides bash-like key operations to make it easier to enter commands. Below is a list of key operations that you can use in the shell.
| Ctrl Key | Single Key | Function |
|---|---|---|
| Ctrl + I | TAB | Autocomplete command and file names |
| Ctrl + P | Up | Show previous history |
| Ctrl + N | Down | Show next history |
| Ctrl + B | Left | Move cursor one character left |
| Ctrl + F | Right | Move cursor one character right |
| Ctrl + A | Home | Move cursor to the beginning of the line |
| Ctrl + E | End | Move cursor to the end of the line |
| Ctrl + D | Delete | Delete the character at the cursor position |
| Ctrl + H | Back | Delete the character before the cursor |
| Ctrl + J | Return | Confirm input |
| Ctrl + K | Delete from cursor to end of line | |
| Ctrl + U | Delete from before cursor to beginning of line |
Help Option
Each command is equipped with a help option --help (or -h) that displays the command's detailed usage information.