Closed Stragon24 closed 1 year ago
Install MightyCore using the boards manager installer. The Avrdude version that's shipped with Arduino IDE 1.8.19 (Avrdude v6.3) doesn't support the avrdude.conf file MightyCore uses (v7.1)
Thank you for your reply,
I installed avrdude 7.1 manually in the files and the problem is resolved. Now I have another issue:
`"C:\Users\michaun\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\michaun\Documents\Arduino\hardware\MightyCore-master\avr/avrdude.conf" -v -patmega324pb -cusbasp -e -Ulock:w:0xff:m -Uefuse:w:0b11110101:m -Uhfuse:w:0b11010110:m -Ulfuse:w:0x62:m
avrdude: Version 7.1
Copyright the AVRDUDE authors;
see https://github.com/avrdudes/avrdude/blob/main/AUTHORS
System wide configuration file is C:\Users\michaun\Documents\Arduino\hardware\MightyCore-master\avr\avrdude.conf
Using Port : usb
Using Programmer : usbasp
AVR Part : ATmega324PB
Chip Erase delay : 55000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : possible i/o
RETRY pulse : SCK
Serial program mode : yes
Parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Alias Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 128 0 no 1024 4 0 9000 9000 0xff 0xff
flash 33 6 256 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
signature 0 0 0 0 no 3 1 0 0 0 0x00 0x00
calibration 0 0 0 0 no 1 1 0 0 0 0x00 0x00
Programmer Type : usbasp
Description : USBasp, http://www.fischl.de/usbasp/
avrdude: auto set sck period (because given equals null)
avrdude usbasp_spi_set_sck_period() error: cannot set sck period; please check for usbasp firmware update
avrdude usbasp_spi_program_enable() error: program enable: target does not answer (0x01)
avrdude main() error: initialization failed, rc=-1
- double check the connections and try again
- use -B to set lower ISP clock frequency, e.g. -B 125kHz
- use -F to override this check
avrdude done. Thank you.
Failed chip erase: uploading error: exit status 1`
Do you have any idea about the issue, please?
@Stragon24
It seems to me you have a USBasp with some old FW version or Chinese FW version. You may want to upgrade the FW. For example, this is a good one. It supports USBasp units based on ATmega8/8A/88/88A. Then you also need to check the connection. https://github.com/nerdralph/usbasp
Sorry for the delay. We have successfully programmed our chip, the problem was hardware related. Thanks for your help
Hello,
I am currently working on a project that involves programming an Atmega324PB using an USBasp with MightyCore on Arduino 1.8.19. However, when I try to upload the code, I receive an error message indicating:
avrdude: error at C:\Users\lagranda\Documents\Arduino\hardware\MightyCore-master\avr/avrdude.conf:402: syntax error avrdude: error reading system wide configuration file "C:\Users\lagranda\Documents\Arduino\hardware\MightyCore-master\avr/avrdude.conf" avrdude: error reading system wide configuration file "C:\Users\lagranda\Documents\Arduino\hardware\MightyCore-master\avr/avrdude.conf"
I am stuck and I don't know how to solve this problem. Could someone please help me find a solution?
Thank you in advance for your help.