A fully functioning MIDI synthesizer using an ARM Cortex-M4F processor (Tiva LaunchPad TM4C123G).
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation
ProjectFiles
Source
Tests
README.md

README.md

ArmCortexSynth

A fully functioning MIDI synthesizer using an ARM Cortex-M4F processor (Tiva LaunchPad TM4C123G).
Video Demo: https://youtu.be/UTizmNIYIBM

 

Hardware

 

Important

For historical compatibility reasons it seems TI has tied two pins on port B of the TM4C123G directly to port D. Please see this TM4C123G support forum thread for how to effectively deal with this.

 

Tests

The unit tests are separate projects that build and run on a typical desktop platform. For information on how to build and run tests please see this document.

 

Steps for Building on Windows

  1. If you haven't already done so, downloaded and install TivaWare for C Series.

  2. Download and install TI's Code Composer Studio (CCS) v7.0 or later.

  3. Setup environment variable TIVA_WARE_C_SERIES_DIR to point to the "TivaWare for C Series" directory.

  4. Setup environment variable ARM_CORTEX_SYNTH_ROOT_DIR to point to the directory at which you've cloned this repo.

  5. After starting CCS, select "File -> Import" and select "CCS Projects" and press the "Next" button.

  6. Set the "Select search-directory" to the directory at which you've cloned this repo. It should automatically find the "ArmCortexSynth" project file. Click the "Finish" button.

  7. A new project (ArmCortexSynth) should now be imported into your workspace.

  8. You should be able to build (either debug or release). This will generate an ArmCortexSynth.bin file that can be flashed to the Tiva LaunchPad (TM4C123G) development board using TI's LM Flash Programmer.

 

Miscellaneous Notes Concerning the Project

  • Unfortunately TI's C++ compiler support is only up to C++03. I would have very much liked to have used some C++11 (and later) features :(

  • Currently, the only (easy) way to build this is through TI's Code Composer Studio (see instructions above). Ideally, I would have functionality in place to allow a build tool (CMake?) to generate a makefile or other project files.

  • Doesn't currently use CMSIS. With this project I was most interested in working directly with the MCU and therefore interface directly with the TM4C123G registers.

 

To Do

  • Allow for easy makefile and/or project file instantiation using CMake or something similar.

  • Support GNU ARM Toolchain and additional popular embedded development toolchains.

  • Support additional development boards (not just the TI TM4C123G series)

 

Licensing

The MIT License applies to this software and its supporting documentation:

Copyright (c) 2017 Terence M. Darwen - tmdarwen.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.