A problem occured while executing the command. make sure that you are using the correct programming method.current mode is ISP ..............
SOLUTION ( 1 )
Step 1:
>> Go to the tab HW settings in the connection dialog and set the clock generator to max (3.6 MHZ) as shown in the following image
Step 2:
>> Go to the main tab and inprogramming mode and target settings press on settings.
>> Select the ISP frequency to be 115.2 KHZ and then press write.
SOLUTION (2)
Disconnect all connections to all ports.
STK 500 troubleshooting problems