I was trying to program Arduino Pro Mini - Atmega328P - in CodeVision AVR IDE.
Even new project - without any additional features provides this error.
I compile project into hex file and then try to load it into Pro Mini with separate programmer soft - I have two programs AVRDUDEPROG & SinaProg. Result is the same in both these programs - I've gt this error during hex file verification.
What interesting - I've got another hex file with good code - this file can be verified and uploaded into Pro Mini with no errors.
So I think maybe I have some bad settings in CodeVision AVR IDE? This IDE produces error even right after installation....
Problem was that I did not correctly understand the function of "verify" button in the program for filling into the chip through the programmer. It turned out that the verify button does not check the hex file for the correctness of the "assembly" (as I thought), but on the correspondence of the hex file to the code that is already in the chip ....