Burning bootloader on 1284p 16MHz

Hi
I wanted to upload new firmware to creality ender3. I bought programmer named ATB-USBASP 4.2 from ATNEL. But unfortunately I think I connect it wrong and destroy micro controller (header was connecting rst, sck, miso to vcc, gnd, mosi). Then printer stop working so I grab new one from internet, solder it, and star over again. I check all solder connections and connection from micro controller to header. All seems fine. Then I connect programmer, and get those errors:

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

System wide configuration file is "C:\Users\Eryk\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/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: 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.

Błąd przy wgrywaniu bootloadera. //(Error when uploading)

I check programmer, and work on arduino that was lay next to me. Works fine. I have no idea what to do. I look on internet and all of posts from other users was about diy programmers, or diy board and finding some issue with that.

Please help.

I know of two possible causes of this error:

Incorrect wiring. I get this error if I have my USBasp's cable plugged into the ICSP header backwards. However, you say you have already checked the wiring carefully, so maybe this is not the problem.

If your USBasp programmer has the official firmware, you must short the JP3 jumper to program chips that are running at <=1 MHz clock speed. The factory default clock configuration for the AVR microcontrollers is for them to run on the internal oscillator at 1 MHz. Many of the common Chinese USBasp clones come with a modified firmware that is able to work with chips running at the slower clock speeds without needing to set the jumper. There is also a alternate open source firmware provided by the community that has this functionality.

I took a look at the documentation for your programmer and I didn't find anything about the "slow SCK" jumper. I don't speak Polish though, so I might have missed it. I see there is one jumper on the board (the two through holes with an "x" printed on the silkscreen next to them. That could be the programming enable jumper though.

Thanks a lot. I was trying it (indeed documentation not mentioning it) but it is only for connection from buffer to micro controller. I was trying their own software for this programmer, and I even know on what clock speed they are communicating. But as you can imagine I have no clue what should I do with those information. I added print screen from that program.

I don't have any experience with that program, nor with this specific variant of the USBasp (it seems they have made some modifications on the official USBasp design, and perhaps firmware as well). I see the program does mention "Slow SCK". Try checking the box next to "Auto SCK speed". Does that help? Are you getting the same error when you use that program?

Ok. Again thanks a lot, now I know what should I look for. Rest I think, I will find my self somehow.