[...]
Hello Ser9ei, thanks for your reply! It's weird to me that this is the problem because it's displayed as a warning, not an error, and the write process continues and even verifies at the end. So it must somehow be able to find a SCK frequency thats accepted.
- before start "flash" process, please check connection (and the "Bit clock(-b)") setting with the help "Detect" button.
When I click detect, it says :
>>>: avrdude -u -c usbasp -B 0.5 -v -p m8
Detected 1e960a = ATmega644P
but does not set the baud rate (-b) nor Bit clock (-B). I left it by default at 1.5 MHz. I don't know what value to use.
I would like to hope, you don't forget to chose "Write" mode in during flashing process.
I did not do that mistake
. I think if I made a mistake, avrdude log would not show the writing process.
Please try one these options (or perhaps all):
- upgrade the firmware of usbasp (another programmator is nessasary)
last firmware is here https://www.fischl.de/usbasp/
- Install the driver for Usbasp with help the Zadig tool (https://zadig.akeo.ie/). Instructions - https://www.instructables.com/USBASP-Installation-in-Windows-10/
Aww, it took long enough for the first one to arrive
Are you absolutely sure this is the issue despite avrdude process saying it succeeds in flashing & verifying data?I did not have any issues installing the driver on my PC as I do not use windows 10
. I used windows 7 driver from
https://eecs.oregonstate.edu/education/inventory_datasheets/P1438967372-1443308202.pdf section 4.1.1 and it installed well. According to what you said, the issue would not be the pc driver but the firmware itself, right? So I don't need to change that driver.
From what I saw in the pictures, you have problems with lockbit. The MCU you want to program is locked, see the attached images.
That's why the flash check gives an error. LB should have the value 0xFF.
According to the manufacturer's documentation "The Lock bits can only be
erased to “1” with the Chip Erase command. "
You must enter command com and give the command:
avrdude -c usbasp -p m664p -e
Then read fuses & lock bits with AVRDUDESS.
Everything should be 0xFF. Write the desired values: L = 0xFF, H = 0xD9, E = 0xFC, LB remains 0xFF.
Only now can you load the desired firmware.
Good luck with that!
Hello
Where did you go to make those screenshots? I went to :
https://www.engbedded.com/fusecalc?P=ATmega644P but it does not say anything for the lock bits.
Also according to my pastebin the flash check does not fail - am I missing something?
I did the command you hinted :
and it directly sets the values you told me.
When I ask to write lock bit, it fails :
https://pastebin.com/UwS2DfC1avrdudess was like this :
do I need to check "Set lock" or do something else?
thanks