LXR Windows build instructions

Windows with Cygwin

 * 1) Download and install Cygwin
 * 2) http://cygwin.com/install.html
 * 3) When installing, please include (from the "Devel" tree)
 * 4) g++
 * 5) GNU make
 * 6) git
 * 7) Download and install GNU ARM bare metal toolchain
 * 8) https://launchpad.net/gcc-arm-embedded
 * 9) Download and install Atmel toolchain for Windows
 * 10) http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx
 * 11) Open a Cygwin terminal
 * 12) Clone the source repository
 * 13) '''git clone https://github.com/SonicPotions/LXR
 * 14) '''export ARM_TOOLKIT_ROOT="/cygdrive/c/Program Files/XXXXX"
 * 15) '''export AVR_TOOLKIT_ROOT="/cygdrive/c/path_to_avr_toolkit"
 * 16) make clean && make firmware from within the cloned LXR repository

Windows with Eclipse

 * 1)  Install Eclipse Juno CDT (You could install a later version, but this is the version I have working)


 * 1)  Install the Eclipse GNU ARM plugin. Go into the help menu, Install new Software, add a site: http://gnuarmeclipse.sourceforge.net/updates. Then check the box to install that plugin.


 * 1)  Download and install the GCC ARM toolchain https://launchpad.net/gcc-arm-embedded/+download


 * 1)  Download and install gnu make: http://gnuwin32.sourceforge.net/packages/make.htm


 * 1)  Download and install Atmel AVR toolchain from http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx (you don't need the headers package)


 * 1)  Ensure that the bin directory from 3, 4, and 5 are on the path. I made a batch file that adds these 3 bin directories to my path and launches eclipse.


 * 1)  Fetch the LXR sources from github. You can either install git and do it the git way, or download a zip and unzip it.


 * 1)  In Eclipse, create a workspace in root folder of whole tree that you unzipped (or git'd).


 * 1)  Add two project dirs mainboard\firmware\DrumSynth_FPU and front\AVR to the workspace. To do this, use File/Import/General/Existing projects into workspace. Then select root directory and browse to these dirs. Do this step once for each of these two dirs. You will end up with two projects in your workspace.


 * 1)  These should build. Eclipse is a bit squirrely, so you might need to do a make clean first to create the first makefiles, or rebuild indexes.


 * 1)  I've built the firmwareimagebuilder.exe in the \tools\bin folder. I've also put a batch file that launches it and copies the binaries from the respective output directories to create FIRMWARE.BIN in that same dir. If you don't trust the .EXE I built, you will need to build it from tools\FirmwareImageBuilder\FirmwareImageBuilder. As is you will need visual studio. If you don't have it, you can try to install the free version, mingw, etc and compile the one file FirmwareImageBuilder.cpp (I've fixed it so it should build with any tool) and make your own exe and copy it to that dir.


 * 1)  Thats it, after running the batch file you will have your firmware file.