Select your system's serial port to upload: Tools > Serial Port.In Arduino IDE select the Mega2560: Tools > Board.
WCH-original CH340/CH341 drivers for other systems (Mac, Linux, Android, etc) may be found here. WCH CH340G (Rectangular IC) - uses "CH341" drivers from WCH for Windows: The serial chips can generally be identified by appearance:ĪTMega16U (square IC) - drivers included in Windows, MacOS and Linux:
Most official boards and many non-official versions use the ATMega16U2 or 8U2, whereas many of the Mega2560 clone boards utilize the CH340G IC.
If you're running an older version of Windows and this is the first time you've used an Arduino, you may need to install drivers for the Arduino serial chip (USB-UART or "USB adapter chip").Plug in your Mega 2560 to a free USB port.Once you've successfully compiled the firmware, installation on the board is trivial. Note: This is NOT required if using PlatformIO, the above optimisation is applied automatically there Save the file and restart the Arduino IDE.On the following 3 entries, change the Os to be O3:.On Mac: /Applications/Arduino/Contents/Resources/Java/hardware/arduino/avr/.On Windows: c:\Program Files\Arduino\hardware\arduino\avr.Open the platform.txt file which is in the following locations:.Make sure the Arduino IDE isn't running.To do this, you need to edit the platform.txt file:
As the size of the Speeduino code is not an issue but speed is a consideration, changing this to -O3 produces better results (Approximately 20% faster, with a 40% larger sketch size) By default, the IDE uses the -Os compile option, which focuses on producing small binaries. There is an option available for changing the compiler optimization level, which can improve. This video walks through the whole process of installing the firmware on your Arduino from scratch:
Click the Verify icon in the top left corner (Looks like a tick)Īt this point you should have a compiled firmware! If you experienced a problem during the compile, see the Troubleshooting section below.Set the board type: Tools > Board > Arduino Mega 2560 or Mega ADK (This is the only board currently supported).Start the IDE, select File > Open, navigate to the location you downloaded Speeduino to and open the speeduino.ino file.If required, older firmware releases and details can be found at Firmware History Compiling the firmware If you want the latest and greatest (And occasionally flakiest) code, the git repository can be cloned and updated.Regular, stable code drops are produced and made as releases on Github.There are two methods for obtaining the Speeduino firmware: A copy of TunerStudio to test that the firmware has uploaded successfully.A copy of the latest Speeduino codebase.Current minimum version required is 1.6.7, although a newer version is recommended. Note that manually compiling the firmware is NOT required to install Speeduino, the easiest (and recommended for most users) method is using SpeedyLoader as described above. If you want to compile the firmware yourself, or make any code changes, then the source of both the releases and the current development version is freely available.
Once the firmware is installed on the board, see Connecting to TunerStudio for more details on how to configure TunerStudio EG if on Debian/Ubuntu: sudo apt-get install libusb-1.0-0 libusb-0.1-4:i386