help needed...avr microcontroller

Discussion in 'Embedded Systems and Microcontrollers' started by anuj kumar, Sep 5, 2012.

  1. anuj kumar

    Thread Starter New Member

    Aug 30, 2012
    I am using eclipse for programming my atmega-16 microcontroller but during burning of hex code i found this error

    "the programmer usbtiny could not initalised the target hardware
    Initialization failed, rc=-1"

    how to solve this problem?
  2. W4GNS


    Dec 1, 2008
    Do you have the proper voltage on the target uC ?
  3. mukesh.sehwag

    New Member

    Oct 16, 2010
    The problem is that the development board you would be using must not be getting proper voltage supply. This could be due to the usb connecting programmer to your computer. Change the usb port and try.

    Also check if the driver for the usbtiny is properly installed in your computer in the device manager.
  4. ravi8820

    New Member

    Sep 21, 2012
    I tried everything before writing this.

    I was trying to connect an "ATMEGA 16A microcontroller" (which is impressed in a development board) with a "USB AVR programmer" by connecting through their isp header pins. I had connected them correctly using connecting wires. After that for checking whether i had connected them correctly or not i had written
    "avrdude -c usbtiny -p m16" in the command prompt.

    Then it is giving the error writing

    "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 am also mentioning here the links in which it is mentioned to write as above for checking of connections--------------


    Also when i was programming in AVR studio for blinking an led using the above two components. It is showing the programmer as disconnected and in AVR studio there is no device named "ATMEGA 16A". However there is a device named "ATMEGA 16". The power LED of the microcontroller is blinking continuously even when i make its "ON\OFF" switch OFF. What could be the possible causes of error and how can i rectify them so as to continue my programming in a smooth way. I also not able to understand about fuse bits. How can i know whether fuse bits of my microcontroller is screwed up or not and if they are screwed up how can i correct them? What could be the possible causes of error and how can i rectify them so as to continue my programming in a smooth way.
  5. BillO

    Distinguished Member

    Nov 24, 2008
    It sounds like the drivers for the USBTiny programmer are not properly installed.

    Of course the USBTiny programmer might be broken, but I'd look at the driver set-up first.
  6. anny0498

    New Member

    Aug 13, 2012
    Hi Anuj,

    Check connection and power, ensure that all drivers are installed needed for usbtiny and the attached target.
    Programmer is unable to find the device.