logo elektroda
logo elektroda
X
logo elektroda

Atmega32, USBasp, Avrdude: Resolving Error Setting SCK Period & Invalid Device Signature Issues

bigben93 42732 32
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #31 9286567
    gregorr_
    Level 2  
    I found a solution to my problem. The programmer is fine, everything is fine. The reason for bugs and strange behavior was a corrupt m328p chip.
  • ADVERTISEMENT
  • #32 10921789
    marcin5ta
    Level 12  
    Hello everyone.
    This topic was raised over a year ago, but I can see that it has not been finally closed.
    While trying to load * .hex file via AVRDude to uC ATMEGA8 using USBASP v2 programmer I got error "warning: cannot set sck period. Please check for usbasp firmware update." I thought I was doing something wrong because these are my first steps in AVR ATMEGA8 programming. It also crossed my mind that the chip I designed or the new USBASP programmer or the processor itself could be the cause of the problem. It turned out, however, that the system, processor and programmer are functional,
    and a substitute solution to the problem is to load the hex file to uC using a program other than AVRDude. I tried to do this using multiple programs but only one ProgISP V1.7.2 worked. The program in this version has drivers for WIN 7 and works under the 64bit system and is available for download
    from the network. I will add that I used a laptop with Win7 64bit. Operating the program is trivial. After uploading the hex program using ProgISP V1.7.2, the uC system came to life
    and works fine.
    The appendix contains the ProgISPV1.7.2 program.
    Hope this will solve your problems with uploading to uC as well.
    Regards
  • #33 13894250
    torkness
    Level 10  
    Good morning,
    I encountered a similar problem as the ones described above. Oddly enough, everything was fine at first. Only after replacing the atmega8 with another (the previous one burned out) I can not program it correctly. I tried to add an oscillator to the system, but I am not sure if it was in the fusebits that I could not change the microcontroller or the problem lies in something else. Attached is a photo of the blinking device. Program code:
    [syntax=c_loadrunner]#define F_CPU 14745600UL

    #include
    #include

    int main (void)
    {
    //DDRB |= _BV(DDB0);
    DDRB = 0x3C;
    while(1)
    {
    for(int i=10;i

Topic summary

The discussion revolves around issues encountered while programming an ATmega32 microcontroller using a USBasp programmer and Avrdude software. Users report errors such as "cannot set sck period" and "invalid device signature," indicating potential problems with the USBasp firmware or connections. Solutions proposed include ensuring the Slow SCK jumper is set, updating the USBasp firmware, and verifying connections to the microcontroller. Users also suggest checking the power supply and using an external oscillator. Some participants share experiences with similar issues on different microcontrollers, such as the ATmega328P and ATmega8, and recommend alternative programming software when Avrdude fails.
Summary generated by the language model.
ADVERTISEMENT