Ornaments & Crimes is free, open-source software (firmware) for the Ornament + Crime module. The licenses under which the software is released permit anyone to freely install and use the firmware on copies of the module, to modify it, and to provide copies to others. Third-party module manufacturers who re-use portions of the O+C software in their modules or devices should ensure that they meet the obligations imposed by the licenses under which the O+C source code is released - details are here.

Firmware upload methods

There are two ways of getting the firmware onto your module:

  • Method A: upload a pre-compiled HEX file. this is easy and quick. or
  • Method B: install the Arduino IDE and the Teensyduino add-on and compile the code yourself. this option is required if you wanted to hack the code, etc.
  • either way, you’ll need: a micro-usb cable (make sure this isn’t for charging only, but data transfer).
  • NB: the following steps assume that you have cut the usb trace. see here.

method A: uploading the HEX file

step 1): install the Teensy Loader program

step 2): download the binary HEX file

step 3): open the HEX file in the Teensy Loader

  • open the HEX file in the Teensy Loader application
  • make sure a USB cable is connected to the Teensy, and that the O+C module is powered up
  • press the program push switch on the Teensy board (on the back of the O+C module)
  • click the Program icon, or choose Program from the Operation menu in Teensy Loader
  • (you should briefly see a progress bar as the firmware is uploaded)
  • click the reboot icon or choose Operation > Reboot
  • your O+C should now run the updated firmware (resp. come to life, if newly built)
  • (note: if the loader app complains about the .hex file being “too large”, try to load this hex first, so the loader can detect the MCU, then re-try with the OC firmware hex; or proceed to method B.)
  • if this is a newly built module, proceed to Calibration (just updating the firmware doesn’t require re-calibration)

method B: compiling the firmware

step 1): get the IDE + teensyduino add-on

  • if you don’t have it already, you need to install the arduino IDE as well as the teensyduino v1.35 add-on. Make sure you have/install a compatible version: at the time of writing, that’s arduino 1.6.8 through 1.8.1 and teensyduino 1.35, respectively. more recent versions (ideally) should work, too, but there’s no guarantee they do. and 1.36 doesn’t. DO NOT USE TD 1.36! (resp. gcc 5.4). (we try to keep things in sync with up-to-date releases, but the arduino IDE is a moving target …)

step 2): clone or download the firmware source code repository to your computer

  • clone from https://github.com/mxmxmx/O_C or download the .zip file.
  • use the master branch (which is the default) - the master branch contains the latest “production” released code
  • the develop and other branches contain bleeding-edge code which may or may not contain bugs

step 3): compile

  • once the libraries and the source code for Ornaments and Crimes are in place, you should be able to compile the Ornaments & Crimes firmware. Open the file called o_c_REV.ino. now make sure you:

    • 1) select teensy 3.2/3.1 in Tools > Board. and
    • 2) select 120MHz optimized (overclock) in Tools > CPU Speed. and
    • 3) select Faster (= o2) in Tools > Optimize (teensyduino 1.34 and 1.35)
  • things should look somewhat like this:

    Arduino IDE

  • compile. and download to your board (since you’ve cut the usb trace, the module needs to be powered from your eurorack PSU): the display should come to life now.

step 4): calibrate

  • if this is a newly built module, proceed to Calibration
  • just updating the firmware doesn’t require re-calibration - the calibration values are not overwritten when you install new versions of the firmware.