- Download and install the Arduino Legacy IDE https://www.arduino.cc/en/software (1.8.19 tested, don't use 2.x)
- Download and install homebrew https://brew.sh/
- Install Powershell with homebrew https://formulae.brew.sh/cask/powershell
- Install dotnet with homebrew https://formulae.brew.sh/cask/dotnet
- Add avr-gcc Arduino toolchain path to PATH environment variable:
export PATH=$PATH:/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin
- Clone the MCL repository:
git clone https://github.com/jmamma/MCL.git
- Generate the compressed assets for the graphics and menu structures:
cd MCL/resource pwsh ./gen-resource-mac.ps1
- Compile the MCL firmware:
cd ../avr/cores/megacommand make
- The compiled firmware
main.hex
will be in theavr/cores/megacommand
folder. The file main.hex should be something like 689174 Bytes large. Flash e.g. with avrdude (replace /dev/cu.usbmodem141201 with the correct port):avrdude -C /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega2560 -cwiring -P/dev/cu.usbmodem141201 -b115200 -D -Uflash:w:./main.hex:i