atmega328 programming error

i am trying to program atmega328p tqfp using usbasp programmer with a code wrote using atmel studio. i have connected all the connections properly but when using burn o mat this error keeps popping up

"avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude.exe done. Thank you."

dose any one know how to solve this

(deleted)

What is your chip using for a clock? Have you set the fuses to enable that clock? Is the necessary hardware present if your chip is set for a crystal clock?

THE SYSTEM CLOCK MUST BE RUNNING FOR SERIAL PROGRAMMING TO WORK.

ATmega chips should come from the factory set for the internal 8 MHz clock and divide-by-8 prescaler for a 1 MHz system clock. If you burn an Arduino UNO bootloader on the chip the fuses are changed to expect a (16 MHz) crystal clock and it won't accept programming if the crystal is not present. You can work around that by providing an external clock on the XTAL1 pin.