Salve a tutti,
io fatto un programma tramite arduino uno e avendo bisogno di parecchie librerie, vedevo che mi rimaneva un po' "stretto"!! Ho deciso di passare al due.
Quando ho inserito lo sketch nell'arduino due, non mi lavorava bene la libreria Flash, così che, dopo un po' di ricerche, ho visto che arduino due ha una propria libreria Flash e cioè Flash-master. Lo caricata nella cartella libreria ma ora tutte le parti della tinywebserver non mi funzionano più, cioè mi appare il seguente errore:
Sapete aiutarmi???
Un ultima cosa il reset dell arduino tramite software con arduino uno si faceva in questo modo:
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:47: error: ISO C++ forbids declaration of 'prog_char' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:47: error: expected ',' or '...' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:58: error: ISO C++ forbids declaration of 'prog_char' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:58: error: expected ';' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:61: error: expected ';' before 'const'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:70: error: ISO C++ forbids declaration of 'prog_char' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:70: error: expected ';' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function 'size_t _FLASH_STRING::length() const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:50: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:50: error: 'strlen_P' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function 'char* _FLASH_STRING::copy(char*, size_t, size_t) const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:55: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:55: error: 'strcpy_P' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:55: error: 'strncpy_P' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function 'char _FLASH_STRING::operator[](int) const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:65: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:65: error: 'pgm_read_byte' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: At global scope:
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:77: error: expected ';' before '_DataType'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:80: error: ISO C++ forbids declaration of '_DataType' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:80: error: expected ',' or '...' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:86: error: ISO C++ forbids declaration of '_DataType' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:86: error: expected ';' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:89: error: expected ';' before 'T'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:112: error: ISO C++ forbids declaration of '_DataType' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:112: error: expected ';' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In constructor '_FLASH_ARRAY<T>::_FLASH_ARRAY(int)':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:80: error: class '_FLASH_ARRAY<T>' does not have any field named '_arr'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:80: error: 'arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function 'T _FLASH_ARRAY<T>::operator[](int) const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:93: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:93: error: there are no arguments to 'pgm_read_byte' that depend on a template parameter, so a declaration of 'pgm_read_byte' must be available
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:93: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:95: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:95: error: there are no arguments to 'pgm_read_word' that depend on a template parameter, so a declaration of 'pgm_read_word' must be available
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:97: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:97: error: there are no arguments to 'pgm_read_dword' that depend on a template parameter, so a declaration of 'pgm_read_dword' must be available
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: At global scope:
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:120: error: expected ';' before '_DataType'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:123: error: ISO C++ forbids declaration of '_DataType' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:123: error: expected ',' or '...' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:132: error: ISO C++ forbids declaration of '_DataType' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:132: error: expected ';' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:135: error: expected ';' before '_FLASH_ARRAY'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:152: error: ISO C++ forbids declaration of '_DataType' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:152: error: expected ';' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In constructor '_FLASH_TABLE<T>::_FLASH_TABLE(int)':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:123: error: class '_FLASH_TABLE<T>' does not have any field named '_arr'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:123: error: 'arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function '_FLASH_ARRAY<T> _FLASH_TABLE<T>::operator[](int) const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:137: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function 'void _FLASH_TABLE<T>::print(Print&) const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:145: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: At global scope:
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:160: error: ISO C++ forbids declaration of 'prog_char' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:160: error: expected ',' or '...' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:180: error: ISO C++ forbids declaration of 'prog_char' with no type
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:180: error: expected ';' before '*' token
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In constructor '_FLASH_STRING_ARRAY::_FLASH_STRING_ARRAY(int)':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:160: error: class '_FLASH_STRING_ARRAY' does not have any field named '_arr'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:160: error: 'arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:160: error: argument of type 'size_t (_FLASH_STRING_ARRAY::)()const' does not match 'size_t'
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function '_FLASH_STRING _FLASH_STRING_ARRAY::operator[](int) const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:167: error: '_arr' was not declared in this scope
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h: In member function 'virtual void _FLASH_STRING_ARRAY::print(Print&) const':
C:\Users\Utente\Documents\arduino-1.5.2\libraries\Flash/Flash.h:173: error: '_arr' was not declared in this scope
L'Arduino DUE di "Arduino" ha solo il nome ma monta un microcontrollore completamente differente rispetto a quello presente sull'Arduino UNO o sull'Arduino MEGA.
Le librerie devono essere rese compatibili con questo hardware nonché con il nuovo IDE 1.5 e non è detto che il codice che gira sulla UNO possa girare sulla DUE senza modifiche.
Se le librerie di cui hai bisogno non sono state adattate alla DUE, devi contattare l'autore di queste e sentire se ha in programma il porting oppure, se sono librerie ufficiali, attendere che il team esegua la conversione.