A
Arduino•2mo ago
EMAN

Uploading error?

I'm unsure why I get this error when I try to upload a code, in which the Uno and a MP3 player module are used. This is what I get when I upload the code: Sketch uses 4412 bytes (13%) of program storage space. Maximum is 32256 bytes. Global variables use 391 bytes (19%) of dynamic memory, leaving 1657 bytes for local variables. Maximum is 2048 bytes. avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 Failed uploading: uploading error: exit status 1
20 Replies
AnonEngineering
AnonEngineering•2mo ago
are you using pins 0 & 1 on an Uno?
EMAN
EMANOP•2mo ago
Oh sorry I posterd in the wrong area yes
AnonEngineering
AnonEngineering•2mo ago
you want to use SoftwareSerial to talk to the DFMini pins 0 & 1 are used to upload code
EMAN
EMANOP•2mo ago
yes So I can't use pins 1 and 0 if I want to upload code?
AnonEngineering
AnonEngineering•2mo ago
correct or use the Serial Monitor
EMAN
EMANOP•2mo ago
So why are the pins there? sorry sounds silly
AnonEngineering
AnonEngineering•2mo ago
they are used to upload and to "talk" to the serial monitor advanced users can use them, but you need to disconnect anything before uploading this adds a serial port that you can use for the MP3 player https://docs.arduino.cc/learn/built-in-libraries/software-serial/
EMAN
EMANOP•2mo ago
Okay so I unplug it when I want to upload then replug it when I want the code to actually work
AnonEngineering
AnonEngineering•2mo ago
try it, does it upload once you remove the wires?
EMAN
EMANOP•2mo ago
Okay will do
AnonEngineering
AnonEngineering•2mo ago
don't use any Serial.prints
EMAN
EMANOP•2mo ago
Okay. even when I unplug tx an rx wow works like magic
AnonEngineering
AnonEngineering•2mo ago
pins 0 & 1 are the hardware serial port and are used often in Arduino code. if you add a second "software serial" port it won't interfere
EMAN
EMANOP•2mo ago
Sorry what do you mean by software serial port? do you mean serial print?
AnonEngineering
AnonEngineering•2mo ago
https://discordapp.com/channels/420594746990526466/1394022279968456754/1394023659445948567 it's like adding "another pins 0 & 1", a second serial port
EMAN
EMANOP•2mo ago
Oh okay I see Thanks so much, you REALLY know your stuff!
AnonEngineering
AnonEngineering•2mo ago
a board like the Mega has more than one serial port, but an Uno has just one so in general, on an Uno, don't use pins 0 & 1 🙂
EMAN
EMANOP•2mo ago
ahh, so intresting 🙂 Yep, lesson learnt 🤣
AnonEngineering
AnonEngineering•2mo ago
if you still have questions please do open a thread in #coding-help , this channel is more for official product issues
EMAN
EMANOP•2mo ago
Okay, thanks, will do.

Did you find this page helpful?