Im uploading code via programmer with Arduino IDE 1.6.6 to an Arduino Mega. The programmer is a usbBasp. The upload seems to be successful, but the code does not run properly (the only thing I see is the two LED lights ON) but the code is not running (I am uploading the simple Blink code). The only warning message I get is "avrdude: warning: cannot set sck period. please check for usbasp firmware update.", but apparently that should not be the issue. I am using the pinout from
I have a USBasp Version 2.0 from Ebay with a 10-to-6-pin converter from Ebay. I use the Arduino IDE with the menu option "Upload with programmer". The sck period warning can be ignored. I use the ICSP for the ATmega2560 of course, with pin 1 to pin 1.
Your image for the 10 pins cable is too small.
Did you try using the Arduino IDE ? Or just avrdude from the command line ?