Running Programs on rosco_m68k
Video Guide: You can watch the step-by-step video guide for this tutorial here: How to Run Software on Rosco m68k.
Use rosco-cli for the build, upload, and console loop on Linux or Windows. You can also run without hardware in an emulator, boot from SD, or use the manual UART tools described below.
UART Settings
Use 38400 baud, 8 data bits, no parity, one stop bit, and no flow control for this kit. Use these same settings in rosco-cli, screen, PuTTY, and Kermit.
Run with rosco-cli
Install the CLI and create a project using Toolchain Setup and Writing Programs. From the project directory:
rosco ports
rosco config set serial.port /dev/ttyUSB0
rosco config set serial.baud 38400
rosco doctor
On Windows, save COM3 (or your actual COM port) instead. These commands save per-user settings; a project's rosco.toml can override them. Use rosco config list to see the effective settings and their source.
Boot or reset the board and select its Kermit loader (LOAD where available). Close other terminal programs using the same port, then run:
rosco run --hardware
This builds the program, uploads it using Kermit, and opens the interactive UART console. Press Ctrl+C to exit the CLI console. For separate steps or an already compiled binary:
rosco upload hello.bin --hardware
rosco monitor --hardware
These commands upload a RAM program. A firmware project builds a ROM image and needs an EEPROM programmer for physical hardware.
Run without Hardware
For a CLI project, the Docker emulator avoids a local emulator build:
rosco config set emulator.source docker
rosco run --emulator
The first run downloads solderdemon/rosco-emulator, including ROM sets. For rosco_m68k projects, the default machine is rosco_m68k_010. The CLI runs the emulator headless and connects an interactive console; run the emulator directly if you need its graphical debugger.
For a local build of the rosco emulator, save its explicit binary path:
rosco config set emulator.source host
rosco config set emulator.program /path/to/rosco-emulator/rosco
rosco run --emulator
Do not confuse the emulator's rosco executable with the CLI's executable of the same name. Alternatively, the upstream project documents MAME installation and debugging.
See programs running
This terminal recording shows the program launcher and a selection of software running on a real rosco_m68k board.
Method 1: Running from an SD Card
This is the easiest way to run programs without needing a constant connection to your computer.
Important: Cards larger than 32 GB are typically formatted as exFAT by default. You must reformat them as FAT32 before use. On Windows, the built-in formatter may not offer FAT32 for cards over 32 GB — use a third-party tool such as Rufus or guiformat.
SD Card Requirements
- Capacity: Good-quality 16 or 32 GB SDHC cards are the upstream recommendation and have been tested extensively. This is a recommendation, not a documented universal 32 GB limit; larger cards are not guaranteed to work with your firmware.
- File System: Use FAT32 for this guide. Upstream describes FAT support and recommends FAT32 as the more thoroughly tested option; do not use exFAT for this workflow. See the upstream SD guide.
Quick Start: Pre-packaged Archive
For a fast way to get started and test your board, you can download a pre-packaged archive that already includes the SD FAT Menu and several default example programs.
- Format your SD card to FAT32.
- Download the archive: ros_sd_card.zip
- Extract the contents of the archive directly to the root of your SD card.
- Insert the card into your rosco_m68k, power it on, and you will immediately see the program launcher menu over UART!
How to Run a Custom Program
For direct binary boot on firmware with SD boot support, the bootloader looks for ROSCODE1.bin in the root of the SD card. Older boards need an SD-capable firmware build; connecting an SD adapter alone does not add SD boot.
- Take your compiled program (e.g.,
my_program.bin). - Copy it to the root of your FAT32 formatted SD card.
- Rename the file to
ROSCODE1.bin. - Insert the card into the board, power it on, and the program will start automatically.
Firmware 2.4 also added ELF loading from storage. Use an ELF executable built for rosco_m68k and the boot filename expected by that firmware. Renaming a raw .bin to .elf does not convert it. The steps above deliberately use the binary boot path, which is also suitable for older SD-capable firmware.
Pro Tip (Program Launcher): Instead of swapping and renaming files constantly, you can use the SD FAT Menu program. You can get it in two ways:
- Pre-built binary (Fastest): Download rosco_fat_menu.bin, copy it to your SD card, and rename it to
ROSCODE1.bin.- Build from source: If you prefer to compile it yourself, the source code is available on GitHub.
Once the menu is saved as
ROSCODE1.bin, simply throw all your other compiled.binfiles next to it on the root of the SD card. When you boot, you'll get a convenient UART menu where you can simply pick which program to launch!
Method 2: Connection and Upload via UART (Ubuntu)
For rapid development, uploading programs directly over a USB-to-UART cable is much faster.
Finding Your Device Port
Plug in your UART adapter and run the following command in your terminal:
ls /dev/ttyUSB*
In most cases, your device will be assigned to /dev/ttyUSB0.
Basic Connection (Using screen)
If you only need to view the output from the board and don't need to transfer files, screen is a simple option. Use 38400 baud for this kit.
sudo apt install screen
sudo screen /dev/ttyUSB0 38400
File Transfer and Connection (Using Kermit)
For manual console access and uploads without rosco-cli, use Kermit.
- Installation:
sudo apt update && sudo apt install ckermit
- Configuration: To avoid typing the connection settings every time, create a configuration file:
nano ~/.kermrc
Paste the following settings (adjust the port to match your adapter):
set line /dev/ttyUSB0
set speed 38400
set parity none
set flow-control none
set streaming off
set carrier-watch off
robus
- Launching and Connecting:
Kermit reads
~/.kermrcat startup. Launch it with:
kermit
Type connect and press Reset on rosco_m68k. Select the firmware’s Kermit loader (LOAD where available) before sending a program. If SD boot starts another program, return to the loader or reset with the SD card removed.
- Uploading a Program:
When you are in the board's terminal and want to send a file:
- Escape back to the Kermit prompt by pressing
Ctrl+\and then theCkey. - Type the send command:
send /path/to/your/program.bin - Once the transfer is complete, type
connectagain to jump back into the terminal session and see your program run.
- Escape back to the Kermit prompt by pressing
Method 3: Connection and Upload via UART (Windows)
The process on Windows is very similar. First, open Device Manager and expand the COM Ports section to find your adapter's COM port (e.g., COM3).
Basic Connection (Using PuTTY)
If you just want to see the serial output:
- Download and open PuTTY.
- Select Serial as the connection type.
- Enter your COM port (e.g.,
COM3). - Set Speed to
38400. - Under Connection → Serial, set data bits to 8, stop bits to 1, parity to None, and flow control to None.
- Click Open.
File Transfer and Connection (Using Kermit 95)
To transfer programs on Windows, you can use the Windows client for Kermit.
-
Setup:
- Go to the GitHub repository releases and download the Kermit 95 archive.
- Extract the archive to a convenient location (like your Desktop).
- Inside the extracted folder, find and run
K95G.exe.
-
Connecting: In the Kermit 95 console, enter your settings one by one:
set line YOUR_COM_PORT
set speed 38400
set parity none
set flow-control none
set streaming off
set carrier-watch off
robus
Type connect and press Reset on rosco_m68k. Select the firmware’s Kermit loader (LOAD where available) before sending a program. If SD boot starts another program, return to the loader or reset with the SD card removed.
- Uploading a Program:
- Click the two blue arrows icon on the top toolbar to switch back to the Kermit console.
- Type the send command:
send C:\path\to\your\program.bin - After the transfer finishes, click the blue arrows icon again to switch back to the terminal session and interact with your program.