avrdude: stk500_paged_load(): (a) protocol error, expect=0x14, resp=0x62 ERROR

I connected my arduino uno by usb to my pc and when I compile my sketch it doesnt show errors but when I upload my sketch it gives this problem.I have tried even the normal codes,none seem to upload.