EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
You are here: Home / Topics / debug usbasp

debug usbasp

|

Microcontroller › AVR › debug usbasp

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 3 months ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 16, 2013 at 6:47 am #2410
    vignesh
    Participant

    iam trying to program atmega16 using my usbasp programmer it produces this error. i double checked the connection and tried but ending in same error

    “make.exe” program avrdude -p atmega16 -P usb -c usbasp -U flash:w:main.hex 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. make.exe: *** [program] Error 1 > Process Exit Code: 2 > Time Taken: 00:00

     

     

    i think this is due to frimware problem, so i tryied to re-burn frimware using another usbtiny in  winavr

    this make file is  found in www.fischl.de/usbasp

     

     

     

    MCU_TARGET     = atmega8
    FLASHER        = avrdude -c usbasp -p $(MCU_TARGET)

    usbasp: fuses
        $(FLASHER) -B 1 -U flash:w:usbasp.atmega8.2011-05-28.hex

    fuses:
        $(FLASHER) -B 200 -U hfuse:w:0xC9:m -U lfuse:w:0xEF:m
    shell:
        $(FLASHER) -t

     

    the error i get while programming frimware hex winavr is

    > “make.exe” all
    make.exe: *** No rule to make target `all’.  Stop.

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

     

    then i tried  pony prog…there also some error and probe test failed

    May 16, 2013 at 1:22 pm #9766
    AJISH ALFRED
    Participant

    Hi,

    Check the connections especially the reset pin of the controller should be pulled up. There are also few jumpers in the usbasp and you must set them in the correct way.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Seeking Help to compile code August 17, 2022
  • Nokia 5110 HW in Oshonsoft August 17, 2022
  • Digital Display Information August 17, 2022
  • 2nd pcb design program? August 17, 2022
  • Door exit button August 17, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools