From f9e4def56d832e5285d7a0d922457db3e9daa02c Mon Sep 17 00:00:00 2001 From: livello Date: Sun, 18 Mar 2018 21:25:52 +0300 Subject: [PATCH] readme.md --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 332c980..9a236b5 100644 --- a/README.md +++ b/README.md @@ -77,4 +77,17 @@ First attempt to use platformio toolchain for compiling (work not completed yet) # Due compilation issue "USART0_Handler redefinition" Please, open /variants/arduino_due_x/variant.cpp file, then edit USART0_Handler method definition like this -void USART0_Handler(void) __attribute__((weak)); \ No newline at end of file +void USART0_Handler(void) __attribute__((weak)); + +# Platformio +First of all install platformio framework. http://docs.platformio.org/en/latest/installation.html +git clone https://github.com/anklimov/lighthub.git +pio init --ide clion // prepare CMake build files for Intellij CLion IDE, look list if suppoerted ide here: http://docs.platformio.org/en/latest/ide.html +pio run -e due // this will build firmware for arduino due board +rm -Rf .piolibdeps // this will clean libraries folder. Try it if you have compilation problem +pio run -e megaatmega2560 //build for arduino mega +pio run -e due -t upload //build and upload firmware to arduino due + + +export PLATFORMIO_BUILD_FLAGS="-DMY_CONFIG_SERVER=192.168.1.1 -DWATCH_DOG_TICKER_DISABLE=1" +set ip address for your configuration server and completely disable wdt feature for AVR.