27 Comments

  1. Dipto Das.

    Thank you for the post.As I am a begginer. So please help me for getting started. what are the components to construct a circuit using uC?

    Reply

  2. Cool blog! Is your theme custom made or did you download it from somewhere?
    A design like yours with a few simple tweeks would really make my blog stand out.
    Please let me know where you got your theme. With thanks

    Reply
    • Omkar

      It is readily available free wordpress theme.

      Reply
  3. ravi kumar

    trying to connect to device……
    averdude: error:programm enable:target doesn’t answer.1
    averdude:initialization failed,rc=-1
    double check connection and try again ,or use -F to override this check

    avrdude done .thnku
    this is showing when i m trying to programme my microcontroller ..what is the problem ..plzzz help ….

    Reply
    • Omkar

      Possible reasons – 1) Target’s power supply is off / 2) Target is running on internal slow speed oscillator, in which case you will have to slow down the programming speed. / 3) Target does not have crystal / 4) Connection issues.

      Reply
  4. hitech

    Hi i am new to this world i am not able to program my atmega 32 for lcd programs please help this is the error

    Linking: main.elf
    avr-gcc -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.o -std=gnu99 -MMD -MP -MF .dep/main.elf.d main.o –output main.elf -Wl,-Map=main.map,–cref -lm
    main.o: In function `main':
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:12: undefined reference to `LCDInit’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:15: undefined reference to `LCDByte’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:18: undefined reference to `LCDWriteString’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:21: undefined reference to `LCDGotoXY’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:21: undefined reference to `LCDWriteString’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:26: undefined reference to `LCDGotoXY’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:26: undefined reference to `LCDWriteInt’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:27: undefined reference to `LCDGotoXY’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:27: undefined reference to `LCDWriteString’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:36: undefined reference to `LCDByte’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:40: undefined reference to `LCDWriteString’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:41: undefined reference to `LCDGotoXY’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:41: undefined reference to `LCDWriteString’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:47: undefined reference to `LCDByte’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:48: undefined reference to `LCDWriteString’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:49: undefined reference to `LCDGotoXY’
    C:UsersAMIRDesktopprojectslcd interfacing/main.c:49: undefined reference to `LCDWriteString’
    make.exe: *** [main.elf] Error 1

    > Process Exit Code: 2
    > Time Taken: 00:01

    Reply
    • Omkar

      Correct place to post this would be AVRfreaks forum. :)

      Reply
  5. ganesh

    Hello sir,

    iam using, atmega16l microcontroller and usbasp programmer
    it give this error
    ‘avrdude’ is not recognized as an internal or external command, operable program or a batch file.
    plz help me out.

    Reply
    • Omkar

      It means WinAVR is not installed or got corrupted. Reinstall it to fix this error.

      Reply
      • ganesh

        i am using code vision AVR

        Reply
  6. Saurabh

    Hi all,
    I am trying to make USBasp since last 2 month but its not working. Its showing “Unknown device”. I have no issues regarding board and soldering. Everything I got from http://www.fischl.de/usbasp/, downloaded “usbasp.2011-05-28″, but its not working. Please help me regarding this issue. I am really got pissed off now.

    Reply
    • Omkar

      Have you programmed your mega8 AVR with the firmware and correct fuse settings ?

      Reply
    • sahid

      Hello,

      1. You shold have a correctly worked “programmer”, also a way to flash a chip. If you dont have such one, you should start on the other point. At example
      http://www.pitsch.de/stuff/mmc2iec/avrisp.htm, which works 100% with a LPT-Printer Port (on an old PCs available only) and PonyProg-software (Windows) http://www.lancos.com/prog.html

      2. If you have a programmer, you must be sure, you have installed all the needed software on your PC correctly for using existing “first” programmer

      3. @Saurabh: do you have a functioning programmer? If not, start with 1.

      The http://www.fischl.de/usbasp/ helps you to build a “second” better programmer if you have an another also “first” primitive programmer.

      I suppose, you don’t have any programmer and you try to build first one. Starts also with “1” and an old PC.

      I hope I could help you…

      Reply
  7. Mayank Kr Tyagi

    Hello sir,

    iam using, atmega16 microcontroller and usbasp programmer

    i am not able to connect my controller to pc.

    please guide me for the solution Email : mayank072@gmail.com
    i will be very thankful 2 u.

    thanks

    Reply
  8. curious

    I am using Sina Prog to program my ATmega169PV using USBasp. However, I was trying to unprogram the ‘divide clock by 8′ fuse bit and I don’t know what happened after doing that but the controller does not get detected by Sina Prog any more.
    I am getting this error:

    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
    Double check connections and try again, or use -F to override
    this check.

    avrdude done. Thank you.

    I know that the USBasp programmer is working because I tried programming another microcontroller with it and it worked.

    What should I do?

    Reply

  9. sir,
    I am using atmega8l microcontroller and usbasp programmer
    while programming, it says device not responding.
    please help.

    Reply

  10. Venkatesh

    I really appreciate your invaluable efforts to guide newbies like me

    Reply
  11. Manu

    Hai Sir,
    During burning program into Chip using extreme burner the fuse bits are set wrong by me & burned.Now i cant able to use my chip so can u please able to tel me a way to recover my chip……. please…

    Reply

  12. Nice post dude,
    I’ve tried to follow the “readme” file while flashing the USBasp & got this error messages :

    $ sudo avrdude -p m8 -c usbasp -P usb -U flash:w:main.hex

    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
    Double check connections and try again, or use -F to override
    this check.

    avrdude done. Thank you.

    based on ur post above, this error occur if there’s some problems with the connection between uC & USBasp.
    In this case, i just test the USBasp itself with no uController connected.

    Any advice for this?

    Thx a million,
    Aston

    Reply
    • Omkar

      That is perfectly expected. When you don’t connect your ATmega8 to the USBasp, you will get this message.

      “avrdude: error: programm enable: target doesn’t answer. ” This indicates that, USBasp hardware is not able to detect specified uC attached to it. So you have to connect your uC and then use the above mentioned command to burn the uC.

      Reply

  13. karan

    Use sinaprog got more options of microcontrollers

    Reply

  14. Hello,
    :)

    I have recently written a GUI Software for driving USBasp compatible USB Programmers. It is much easier to use than the avrdude or avrdude-gui.

    You can download it free of cost from here

    http://extremeelectronics.co.in/avr-tutorials/gui-software-for-usbasp-based-usb-avr-programmers/

    Reply
    • Mayank Gulati

      it doesn’t have option for atmega 328 in win8 then what should i do now?

      and i need to use external oscillator and capacitor for that …

      Reply

Post Comment