From f9fdc36d0da1ce71c7eda3e290f554cea6ab086e Mon Sep 17 00:00:00 2001 From: pascallanger Date: Mon, 1 Aug 2016 22:06:29 +0200 Subject: [PATCH] Arduino 1.6.10 and extra optimization --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 151dd1d..bff6a37 100644 --- a/README.md +++ b/README.md @@ -316,16 +316,17 @@ If you have the Banggood ready to use board you can 3D print this case (details ###Toolchain Multiprotocol source can be compiled using the Arduino IDE. -The currently supported Arduino version is [1.6.9](http://arduino.cc/download_handler.php?f=/arduino-1.6.9-windows.exe). +The currently supported Arduino version is [1.6.10](https://www.arduino.cc/download_handler.php?f=/arduino-1.6.10-windows.exe). Download the [zip file](https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/archive/master.zip) of this repository, unzip it in a folder, navigate to the Multiprotocol directory and then click on Multiprotocol.ino. The Arduino environment will appear and the Multiprotocol project will be loaded. [_Config.h file](https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/blob/master/Multiprotocol/_Config.h) must be modified to select which protocols will be available, change protocols/sub_protocols/settings associated with dial for PPM input, different TX channel orders and timing, Telemetry or not, ... +This is mandatory since all protocols will not fit in the ATmega328. You need to pick and choose what you want. Notes: - Make sure to select "Arduino Pro or Pro Mini, ATmega328 (5V,16MHz)" before compiling. - Compilation of the code posted here works. So if it doesn't for you this is a problem with your setup, please double check everything before asking. - +- If you want to reduce the code size even further, you can modify the file platform.txt located in "C:\Program Files (x86)\Arduino\hardware\arduino\avr". Set the line "compiler.c.elf.extra_flags=" to "compiler.c.elf.extra_flags=-Wl,--relax". ###Upload the code using ISP (In System Programming) It is recommended to use an external programmer like [USBASP](http://www.banggood.com/USBASP-USBISP-3_3-5V-AVR-Downloader-Programmer-With-ATMEGA8-ATMEGA128-p-934425.html) to upload the code in the Atmega328. The programmer should be set to 3.3V or nothing to not supply any over voltage to the multimodule and avoid any damages.