can't get rid of old program

I can't get my board to upload new programs. When I try, everything appears to go fine. The TX and RX lights light up and I get the usual message:

Binary sketch size: 4300 bytes (of a 7168 byte maximum)

Atmel AVR ATmega8 is found.
Uploading: flash
Firmware Version: 1.18
Firmware Version: 1.18

I know my program is not too big because it is the basic led blinking one. However, the board will not stop running an old program that was once on it. Any ideas? Do you think my chip is damaged or that something is wrong with the bootloader?


Huh. What does the old program do?

it just does a pulseout to pin 7.

Try saving the new program and verifying it before uploading. You shouldn’t have to, but it’s worth a shot.

I figured it out. I just had to reflash the bootloader. I don't know why it acted up like that. Maybe I cycled the power at a bad time or something. Everything is back to normal now whew!! Thanks for all the help.