Tomu is all about being open and hackable. It’s important to have a good starting point. Below we have a selection of precompiled programs, along with links to their source code.
To try out these samples, download the
.dfu file and load it with
|bare-minimum||bare-minimum.dfu||Does nothing, forever, without crashing.|
|miniblink||miniblink.dfu||Blink the two LEDs using the SysTick timer.|
|usb-hid||usb-hid.dfu||Emulate a USB mouse, and wiggle the cursor back and forth.|
|usb-msc||usb-msc.dfu||Emulate a very small “USB Mass Storage” disk drive.|
|usb-midi||usb-midi.dfu||Provide a USB MIDI device that continuously sends NoteOn and NoteOff events.|
|usb-cdcacm||usb-cdcacm.dfu||Communicate with Tomu over a virtual serial port.|
|opticspy||opticspy.dfu||Interactive shell to communicate with an OpticSpy|
To compile the samples, you will need an ARM compiler,
dfu-util. The steps to install these files vary depending on your operating system:
|Windows||GNU Arm Embedded Toolchain||GNU Win32 Make||precompiled binaries|
|macOS||GNU Arm Embedded Toolchain||Xcode||Homebrew
Additionally, you may want to install
git, or at least have a way to checkout git repositories.
To compile a sample, simply change into its directory and type
make. This will produce a variety of files, including a
.dfu file that you can upload with
Creating a new Project
To create a new project, simply create a new directory in the
quickstart directory and copy over the
Makefile from an existing project. Then start adding .c files.
To see a simple example of this, look at bare-minimum, which does nothing but compile and run forever.