Sketch will load and work when using a AVR ISP SHELD to Burn Sketch to a chip "Programmer Arduino as ISP". But when I try to Load by USB Gets Stuck on "Upload" then throws error Do I have to Change programmer?
Error
Sketch uses 860 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 15 bytes (0%) of dynamic memory, leaving 2033 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xfb
Failed uploading: uploading error: exit status 1
FIXED Brilliant Why is there not a warning re that.
They call it a programmer.
Do I have to work out how to use a FTDI to load to a Chip and retain the Bootloader on the AVR ISP SHIELD ?
The IDE generates two files for upload, yourSketch.ino.hex and yourSketch.ino.with_bootloader.hex.
The IDE uses the former when uploading. You can write a batch file or shell script to issue the correct command.
If you enable verbose output during upload, you can find the standard command. It will look something like below (note that this is for an Arduino Mega)
Copy the line that you find to a command prompt and replace yourSketch.ino.hex by yourSketch.ino.with_bootloader.hex and you can upload the sketch plus bootloader.
Be aware that this is in a temporary directory and that the directory can change. If you use sketch -> Export compiled binary in the IDE menu, it will generate the hex files in a directory called *Build" in your sketch directory.
You can modify the earlier command to reflect this change