I try to program an Atmega328p on AVR Arduino 4.18 with " usb isp programmer". It’s my first time using avr studio. I have programmed one HEX file. It shows success. But when I press the power button on the pololu 3pi robot, the LCD flash across and the power is shut down. I repeat this process. It is same. I don’t know why. So I try to program again. But when I insert the usb isp progrmammer in my computer, the green USB LED is on, the yellow LED is off, and the red LED is blinking, and a message in avrstudio 4 states ISP mode error and suggests lowering the speed. It also show:
Getting isp parameter… SD=0x03 … OKOK
Reading FLASH input file… OK
Entering programming mode… FAILED!
Leaving programming mode… OK!
I can not program again. Please help me.