Fehlermeldung bei arduino uno


#1
Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\mario.mario-PC\AppData\Local\Temp\arduino_modified_sketch_18930\sketch_nov30c.ino: In function 'int voiceMenu(int, int, int, bool, int)':

sketch_nov30c:337: error: default argument given for parameter 4 of 'int voiceMenu(int, int, int, bool, int)' [-fpermissive]

               bool preview = false, int previewFromFolder = 0) {

                                                              ^

sketch_nov30c:25: error: after previous specification in 'int voiceMenu(int, int, int, bool, int)' [-fpermissive]

 int voiceMenu(int numberOfOptions, int startMessage, int messageOffset,

     ^

sketch_nov30c:337: error: default argument given for parameter 5 of 'int voiceMenu(int, int, int, bool, int)' [-fpermissive]

               bool preview = false, int previewFromFolder = 0) {

                                                              ^

sketch_nov30c:25: error: after previous specification in 'int voiceMenu(int, int, int, bool, int)' [-fpermissive]

 int voiceMenu(int numberOfOptions, int startMessage, int messageOffset,

     ^

C:\Users\mario.mario-PC\AppData\Local\Temp\arduino_modified_sketch_18930\sketch_nov30c.ino: In function 'bool readCard(nfcTagObject*)':

sketch_nov30c:486: error: return-statement with no value, in function returning 'bool' [-fpermissive]

     return;

     ^

In file included from C:\Users\mario.mario-PC\AppData\Local\Temp\arduino_modified_sketch_18930\sketch_nov30c.ino:1:0:

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h: In instantiation of 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD>::sendPacket(uint8_t, uint16_t, uint16_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; uint8_t = unsigned char; uint16_t = unsigned int]':

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:112:29:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD>::playFolderTrack(uint8_t, uint8_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; uint8_t = unsigned char]'

C:\Users\mario.mario-PC\AppData\Local\Temp\arduino_modified_sketch_18930\sketch_nov30c.ino:80:54:   required from here

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:306:114: warning: narrowing conversion of '(arg >> 8)' from 'uint16_t {aka unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

         uint8_t out[DfMp3_Packet_SIZE] = { 0x7E, 0xFF, 06, command, 00, (arg >> 8), (arg & 0x00ff), 00, 00, 0xEF };

                                                                                                                  ^

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:306:114: warning: narrowing conversion of '(arg & 255u)' from 'uint16_t {aka unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

exit status 1
default argument given for parameter 4 of 'int voiceMenu(int, int, int, bool, int)' [-fpermissive]

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

was hab ich bei dieser fehlermeldung falsch gemacht


#2

Gegenfrage: was funktioniert nicht?


#3
Arduino: 1.8.7 (Windows 7), Board: "Arduino/Genuino Uno"

In file included from C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:3:0:

C:\Users\mario.mario-PC\Documents\Arduino\libraries\JC_Button\src/JC_Button.h:23:9: warning: extra qualification 'Button::' on member 'Button' [-fpermissive]

         Button::Button(uint8_t pin, uint32_t dbTime=25, uint8_t puEnable=true, uint8_t invert=true)

         ^

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino: In function 'int voiceMenu(int, int, int, bool, int)':

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:337:62: warning: default argument given for parameter 4 of 'int voiceMenu(int, int, int, bool, int)' [-fpermissive]

               bool preview = false, int previewFromFolder = 0) {

                                                              ^

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:25:5: note: previous specification in 'int voiceMenu(int, int, int, bool, int)' here

 int voiceMenu(int numberOfOptions, int startMessage, int messageOffset,

     ^

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:337:62: warning: default argument given for parameter 5 of 'int voiceMenu(int, int, int, bool, int)' [-fpermissive]

               bool preview = false, int previewFromFolder = 0) {

                                                              ^

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:25:5: note: previous specification in 'int voiceMenu(int, int, int, bool, int)' here

 int voiceMenu(int numberOfOptions, int startMessage, int messageOffset,

     ^

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino: In function 'bool readCard(nfcTagObject*)':

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:486:5: warning: return-statement with no value, in function returning 'bool' [-fpermissive]

     return;

     ^

In file included from C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:1:0:

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h: In instantiation of 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD>::sendPacket(uint8_t, uint16_t, uint16_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; uint8_t = unsigned char; uint16_t = unsigned int]':

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:112:19:   required from 'void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD>::playFolderTrack(uint8_t, uint8_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; uint8_t = unsigned char]'

C:\Users\mario.mario-PC\AppData\Local\Temp\Rar$DIa0.371\Tonuino\Tonuino.ino:80:54:   required from here

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:300:114: warning: narrowing conversion of '(arg >> 8)' from 'uint16_t {aka unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

         uint8_t out[DfMp3_Packet_SIZE] = { 0x7E, 0xFF, 06, command, 00, (arg >> 8), (arg & 0x00ff), 00, 00, 0xEF };

                                                                                                                  ^

C:\Users\mario.mario-PC\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:300:114: warning: narrowing conversion of '(arg & 255u)' from 'uint16_t {aka unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

Der Sketch verwendet 15148 Bytes (46%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.
Globale Variablen verwenden 518 Bytes (25%) des dynamischen Speichers, 1530 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x56
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x56
Problem beim Hochladen auf das Board. Hilfestellung dazu unter http://www.arduino.cc/en/Guide/Troubleshooting#upload.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

#4

Ist der richtige Comport ausgewählt? Bzw. der richtige Programmer?


#5

Was wäre das ich Weiss nicht


#6

Welchen hast du denn eingestellt? Probier doch einfach alle mal durch (denke es wird der letzte sein: COM5?)


#7

Es funktioniert, der Driver war nicht richtig drauf und eine Lötstelle beim Rfid nicht sauber.
Jetzt klappt alles. Mit Uno und Jumperkabel. Danke. Du ausschalten tut er sich nicht von selber oder ?