Sketch upload failure

I have added code to existing running sketch for cmri network connectivity
sketch compiles ok
upload fails

Correct board chosen in Tools?
Correct serial port chosen in Tools?
Good USB data cable?

See the troubleshooting page.

Does 'Blink' upload? Do you have ANYTHING other than the USB connected?