Appearance
Preparing SmileBasic 4
SmileBasic 4 can be used as an alternate entry point to kaiHEN. This section covers flashing a Raspberry Pi Pico so it can enter the SmileBasic exploit payload.
You will need:
- A compatible Raspberry Pi Pico (W) or Pico 2 (W).
- A USB cable that supports data.
- A computer running Windows, macOS, or Linux.
- SmileBasic 4 v4.4.9 or the compatible demo version.
- More than 20 MiB of free space in a SmileBasic save.
Download the firmware
Choose the UF2 firmware that matches both your Pico board and your console's input language:
| Board | English (US) | Japanese |
|---|---|---|
| Raspberry Pi Pico | sm4-pico1.uf2 | sm4-pico1-jis.uf2 |
| Raspberry Pi Pico W | sm4-pico1_w.uf2 | sm4-pico1_w-jis.uf2 |
| Raspberry Pi Pico 2 | sm4-pico2.uf2 | sm4-pico2-jis.uf2 |
| Raspberry Pi Pico 2 W | sm4-pico2_w.uf2 | sm4-pico2_w-jis.uf2 |
Do not use JIS firmware unless the Switch is configured for a JIS keyboard layout.
Flash the Pico
- Disconnect the Pico from all devices.
- Hold the Pico's BOOTSEL button.
- Connect the Pico to the computer with a USB data cable while continuing to hold BOOTSEL.
- Release BOOTSEL once a removable drive named
RPI-RP2orRP2350appears. - Copy the selected
.uf2file onto that drive. - The drive will disconnect and the Pico will reboot automatically.
The Pico is now ready to act as a USB keyboard and enter the SmileBasic payload.
Configure the console
Before using the payload:
- Set System Language to English (US).
- In System Settings → Controllers & Accessories, set Change the USB Keyboard Layout to English (US).
- Keep the console disconnected from Nintendo's servers.
- Open SmileBasic 4.
These settings can be restored after setup.
Enter the payload
- Press Make a Program in SmileBasic 4.
- Press X to enter edit mode.
- In docked mode, connect the flashed Pico to the console.
- Wait for the Pico to enter the payload automatically.
- Once it's finished, press - to open the program menu.
- Press Simple Save and enter "NS2" as the filename.
- If you're using the demo, you have to use this code to save the file instead:
PRGEDIT 0:C$="":FOR I=0 TO PRGSIZE(0)-1:C$=C$+PRGGET$() :NEXT:SAVEV "TXT:NS2",C$ - Exit to the HOME menu.
Do not unplug the Pico or interact with the editor while it is typing.
WARNING
Acquisition is timing-sensitive and can fail or crash a run. You must restart the console after every attempt.