Hi I have the following programme that works with an Uno and
NRF24L01-Transceiver-2-4Ghz-RF-PI-ARM-Model-Arduino-Wireless-1-2-4-10-UK-A405
I then try and load the same sketch to the base Nano board without anything attached to it and I get the following error. Could someone suggest what needs to change:
Sketch uses 2080 bytes (14%) of program storage space. Maximum is 14336 bytes.
Global variables use 40 bytes (3%) of dynamic memory, leaving 984 bytes for local variables. Maximum is 1024 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x60
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe6
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf8
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x06
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x7e
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x06
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x78
An error occurred while uploading the sketch
I have set the options to Nano board and checked that its the right coms port.
This is the sketch
/*
That indicates a communcation problem. If, in the Tools menu, the right board and serial port are available (necessary drivers are installed) and selected the next thing to check is the USB cable.
hi thanks for the suggestion. I just changed the USB cable and thought it had fixed it but a couple of seconds after thinking it had uploaded OK and getting the white writing then got the following in orange. Any suggestions?
Sketch uses 2080 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 40 bytes (1%) of dynamic memory, leaving 2008 bytes for local variables. Maximum is 2048 bytes.
(to be precise it looks like its uploaded OK then 7 seconds later i get these error messages)
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
An error occurred while uploading the sketch
Which options do you have under the tools menu when you select the nano; there was a boards update a while ago and if you have that installed there should be an option referring to 'old bootloader'. Try that one.
By the way, this is not a programming question
By the way, did you see that smiley in your code? Use code tags when posting code on the forum and that problem will be solved.
Still a problem with communication between the PC and the Nano.
Sketch uses 2080 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 40 bytes (1%) of dynamic memory, leaving 2008 bytes for local variables. Maximum is 2048 bytes.
That part indicates that the sketch compiled properly and is ready to be uploaded to the Nano.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
This says that the uploader is trying to contact the Nano and is not getting a response (failure to communicate).
Were you ever able to upload a sketch to the Nano prior to this?
Is any thing connected to the Nano besides the USB cable?
Are you sure that the right serial port is selected? Unplug the Nano and see what ports show in the Tools, Ports menu. What if any ports show up? Close the menu, plug the Nano back in. What ports show, now?
Thanks everyone for all your help. I have now got it working.
I changed the processor to the old boot loader and it worked.
Thanks for the explanation Groundfungus I now understand the failure mode which is appreciated.