USBasp issue

I am attempting to flash an ender 3 pro with a bootloader so I can update marlin.
I am using a USBasp adapter. I installed the adapter successfully using the Zadig program (libusbK (v3.0.7.0))
I added sanguino into the hardware folder successfully and selected same in Arduino, chose usbasp as programmer and ATmega1284 as processor no problem. When I plug the adapter into the computer and the enders motherboard via the isp pins the adapter and the motherboard both power up.
Unfortunately, in Arduino, the com port is grayed out and Arduino states, when I try to upload bootloader anyway, :

Arduino: 1.8.9 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cusbasp -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : usb
Using Programmer : usbasp
AVR Part : ATmega1284P
Chip Erase delay : 55000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


eeprom 65 10 128 0 no 4096 8 0 9000 9000 0xff 0xff
flash 65 10 256 0 yes 131072 256 512 4500 4500 0xff 0xff
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00

Programmer Type : usbasp
Description : USBasp, USBasp - USB programmer for Atmel AVR controllers - fischl.de

avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

Error while burning bootloader.

bartofborg:
Unfortunately, in Arduino, the com port is grayed out

That's normal. USBasp is a pure USB device. It doesn't create a COM port.

bartofborg:
avrdude: error: program enable: target doesn't answer. 1

Make sure you have the USBasp cable plugged in to the ICSP header the right way around. Pin 1 should be marked somehow on the Ender's motherboard, maybe with a dot or a "1" printed on the silkscreen next to that pin. Pin 1 is marked on the USBasp cable with a triangle embossed on the plastic of the connector.

thank you for the quick reply, it is plugged in correctly, the mainboard would not power up if that wasn't the case. when I plug it in backwards nothing happens, correctly, mainboard lights up and window hardware ditty goes off. will not upload bootloader though, any other ideas?

Found the issue! ender 3 now flashed. Turned out to be a jumper on the USBasp adapter was put on the wrong pins from the factory, coming from china, it had no documentation so there was no way to tell without messing around with it.

I'm glad to hear you got it working. Enjoy!
Per

PSA I had the same issue and the jumper in question was the 3.3 / 5v jumper which I needed to move one pin up (there are 3 5v pins!), not to the 3.3V. I searched like 2 hours for a solution!