Problems downloading sketches to my Arduino Uno on Mac

Hi

I am a newbie to Arduino and having problems getting sketches downloaded. I have been through the troubleshooting guide and have read around the problem but haven't been able to solve. I'm on MacOS 10.11.6 and have an Arduino Uno R2. I get the error message pasted at the end of this post when I try to download a sketch. The board is communicating with my Mac as when I open the Serial Monitor, I get a continuous stream of seemingly random numbers scrolling past. If I disconnect the board, the stream of characters stop. If I select a different baud rate I get the message that there is an error connecting to the serial port, and so my Mac and the board are communicating. Any suggestions would be greatly appreciated.

Eddie

Error Message when downloading a sketch:

Sketch uses 1888 bytes (5%) of program storage space. Maximum is 32256 bytes.
Global variables use 188 bytes (9%) of dynamic memory, leaving 1860 bytes for local variables. Maximum is 2048 bytes.
/Users/user/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/user/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem1A21 -b115200 -D -Uflash:w:/var/folders/tw/h55xxhgs5yq1c_fw7bt0k9th0000gn/T/arduino_build_782212/AnalogReadSerial.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/Users/user/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/user/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/cu.usbmodem1A21
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 3.3
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/var/folders/tw/h55xxhgs5yq1c_fw7bt0k9th0000gn/T/arduino_build_782212/AnalogReadSerial.ino.hex"
avrdude: writing flash (1888 bytes):

Writing | avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x00

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x00
###avrdude: stk500_cmd(): programmer is out of sync
avrdude: stk500_cmd(): programmer is out of sync
ABOVE LINE REPEATED LOTS OF TIMES AND THEN ENDING

avrdude: 1888 bytes of flash written
avrdude: verifying flash memory against /var/folders/tw/h55xxhgs5yq1c_fw7bt0k9th0000gn/T/arduino_build_782212/AnalogReadSerial.ino.hex:
avrdude: load data flash data from input file /var/folders/tw/h55xxhgs5yq1c_fw7bt0k9th0000gn/T/arduino_build_782212/AnalogReadSerial.ino.hex:
avrdude: input file /var/folders/tw/h55xxhgs5yq1c_fw7bt0k9th0000gn/T/arduino_build_782212/AnalogReadSerial.ino.hex contains 1888 bytes
avrdude: reading on-chip flash data:

Reading | avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x00

avrdude: stk500_paged_load(): (a) protocol error, expect=0x14, resp=0x00
###avrdude: stk500_cmd(): programmer is out of sync
avr_read(): error reading address 0x0000
read operation not supported for memory "flash"
avrdude: failed to read all of flash memory, rc=-2
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00

avrdude done. Thank you.

the selected serial port
does not exist or your board is not connected

(deleted)

Thanks for the suggestion. I'm not sure if that has fixed it or not. I don't get any errors when I upload the sketch, which takes a few minutes. I just get a done uploading message in the tile of the window, and what is pasted at the end of this message in the body of the window. But the sketches don't operate. Blink doesn't blink. I added debug println and they don't print. In fact, the Serial Monitor does what it did before selecting the Duemilanove, ie., I just get seemingly random numbers scrolling for ever, when what I should get is 'turning led on" "turning led off" messages. ?:

Archiving built core (caching) in: /var/folders/tw/h55xxhgs5yq1c_fw7bt0k9th0000gn/T/arduino_cache_870142/core/core_arduino_avr_diecimila_cpu_atmega328_f1e24ee37ae4b4f7a65e9d762f010165.a
Sketch uses 928 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/Users/user/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude -C/Users/user/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem1A21 -b57600 -D -Uflash:w:/var/folders/tw/h55xxhgs5yq1c_fw7bt0k9th0000gn/T/arduino_build_321310/Blink.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/Users/user/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf"
User configuration file is "/Users/user/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/cu.usbmodem1A21
Using Programmer : arduino
Overriding Baud Rate : 57600