I have Done Coding in Aurdino UNO but it's not uploading and Yesterday i have to give Presentation on my project. Kindly Please Help

Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"

C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:42:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
};
^

C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:42:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino: In function 'void setup()':

C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:72:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

initModule("AT", "OK", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:73:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

initModule("ATE1", "OK", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:74:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

initModule("AT+CPIN?", "READY", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:75:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

initModule("AT+CMGF=1", "OK", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:76:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

initModule("AT+CNMI=2,2,0,0,0", "OK", 1000);
^
Sketch uses 19638 bytes (60%) of program storage space. Maximum is 32256 bytes.
Global variables use 1924 bytes (93%) of dynamic memory, leaving 124 bytes for local variables. Maximum is 2048 bytes.

Error :
An error occurred while uploading the sketch
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

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Kindly Please Help :heart:

I bet it's your code (that we can't see).

These can be fixed by making the parameter in the function definition be “const char *” instead of just “char *”

There are several possible causes - you may have selected the wrong port.look for the Avrdude error on your favourite search engine.

Once you get it to upload, you may still have issues - you have almost no RAM left.

1 Like

it worked thankyou

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.