Arduino z lini komend w Linuxie

Ogólne rozmowy na temat Arduino (i jemu podobnych).
ODPOWIEDZ
maglo18
Majsterkowicz
Posty: 119
Rejestracja: 25 wrz 2013, 12:06

Arduino z lini komend w Linuxie

Post autor: maglo18 » 2 paź 2013, 10:13

Czy jest możliwość programowania Arduino z lini komend pod debianem?

Co miesiąc do wygrania nagrody o wartości ponad 1600 zł!


Awatar użytkownika
Jedrek
Majsterkowicz
Posty: 60
Rejestracja: 19 kwie 2013, 21:05

Re: Arduino z lini komend w Linuxie

Post autor: Jedrek » 2 paź 2013, 15:25

Of kors, AVRDUDE nie gryzie!

Toolchain AVR-GCC też!
maglo18
Majsterkowicz
Posty: 119
Rejestracja: 25 wrz 2013, 12:06

Re: Arduino z lini komend w Linuxie

Post autor: maglo18 » 2 paź 2013, 16:08

A może jakiś tutorial albo lektura do poczytania. Walczę od wczoraj z arduino z lini komend i kod nie chce się skompilować a na windowsie się kompiluje i już nie wiem o co chodzi.

Kod: Zaznacz cały

/usr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=101 -I. -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Time  -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions   /usr/share/arduino/libraries/Time/DateStrings.cpp -o build-uno/libs/Time/DateStrings.o
/usr/share/arduino/libraries/Time/DateStrings.cpp:18:18: error: variable âmonthStr1â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:19:18: error: variable âmonthStr2â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:20:18: error: variable âmonthStr3â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:21:18: error: variable âmonthStr4â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:22:18: error: variable âmonthStr5â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:23:18: error: variable âmonthStr6â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:24:18: error: variable âmonthStr7â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:25:18: error: variable âmonthStr8â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:26:18: error: variable âmonthStr9â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:27:19: error: variable âmonthStr10â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:28:19: error: variable âmonthStr11â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:29:19: error: variable âmonthStr12â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:31:22: error: variable âmonthNames_Pâ must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:37:26: error: variable âmonthShortNames_Pâ must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:39:16: error: variable âdayStr0â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:40:16: error: variable âdayStr1â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:41:16: error: variable âdayStr2â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:42:16: error: variable âdayStr3â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:43:16: error: variable âdayStr4â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:44:16: error: variable âdayStr5â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:45:16: error: variable âdayStr6â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:46:16: error: variable âdayStr7â must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:48:20: error: variable âdayNames_Pâ must be const in order to be put into read-only section by means of â__attribute__((progmem))â
/usr/share/arduino/libraries/Time/DateStrings.cpp:49:24: error: variable âdayShortNames_Pâ must be const in order to be put into read-only section by means of â__attribute__((progmem))â
make: *** [build-uno/libs/Time/DateStrings.o] Error 1
Awatar użytkownika
wefhy
Majsterkowicz
Posty: 100
Rejestracja: 26 sie 2013, 15:06
Lokalizacja: Łódź, Poland

Re: Arduino z lini komend w Linuxie

Post autor: wefhy » 2 paź 2013, 17:29

Sprawdź, czy pod zwykłe Arduino IDE działa(jest w centrum oprogramowania), ja pod debianem i ubuntu musiałem trochę się potrudzić z edycją uprawnień do używania portów zanim coś poszło.
Chociaż z drugiej strony mi to wygląda jak faktycznie błąd kompilowania. Spróbuj jakiś inny program, bez bibliotek najlepiej.
ODPOWIEDZ

Strony partnerskie: