Hello
I decided to delve into the world of microcontrollers, but as it usually happens, the beginning is difficult. I ordered the Mega32 proc and the USBasp programmer (all brand new). I found an example diagram and a program for it on the Internet (2 flashing LEDs). My goal was to check if everything worked together as it should. While the program has compiled somehow, the problems start when I want to throw it into prock. Avrdude spits something like this:
I upload the program with the following command:
I spent the whole day looking for a solution. I even contacted an electronics friend via GG, but he also doesn't know what to do (he confesses to the LPT programmer, but I have a laptop and unfortunately I can't afford such a "luxury").
If it helps someone, I use Linux (the system recognizes the programmer).
I am counting on your help and if you need any additional logo, let me know.
Regards
I decided to delve into the world of microcontrollers, but as it usually happens, the beginning is difficult. I ordered the Mega32 proc and the USBasp programmer (all brand new). I found an example diagram and a program for it on the Internet (2 flashing LEDs). My goal was to check if everything worked together as it should. While the program has compiled somehow, the problems start when I want to throw it into prock. Avrdude spits something like this:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA32 is 1E 95 02
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
I upload the program with the following command:
avrdude -c usbasp -F -p m32 -U flash:w:test.hex -B10
I spent the whole day looking for a solution. I even contacted an electronics friend via GG, but he also doesn't know what to do (he confesses to the LPT programmer, but I have a laptop and unfortunately I can't afford such a "luxury").
If it helps someone, I use Linux (the system recognizes the programmer).
I am counting on your help and if you need any additional logo, let me know.
Regards