AVRDude and Terminal

Discussion in 'macOS' started by xXriderXx7, Jan 10, 2009.

  1. xXriderXx7 macrumors 6502a

    xXriderXx7

    Joined:
    Jul 6, 2007
    Location:
    Lake Elsinore, California
    #1
    Hi, I am in the process of trying to reprogram my TV-B-Gone's chip, and have run into a snag.

    In terminal, I have installed AVRDude and am attempting to issue the command to reflash the chip, but when I do, I get the message that I need to compile again with libusb installed. How do I do this? Am I missing something?
     
  2. xXriderXx7 thread starter macrumors 6502a

    xXriderXx7

    Joined:
    Jul 6, 2007
    Location:
    Lake Elsinore, California
    #2
    Sorry for bumping, but Ive made some progress. Ive used fink to install libusb, or atleast it confirms that it accomplished this. But when I attempt to flash the chip, it still says it is not installed?
     
  3. beige matchbox macrumors 6502a

    beige matchbox

    Joined:
    Mar 16, 2005
    Location:
    Oxfordshire, UK
    #3
    I've only used avrdude on a linux system so can't really help directly, but I will point you to lady ada's site, specifically the forums - http://www.ladyada.net/forums/

    See if theres anything on there :)
     
  4. xXriderXx7 thread starter macrumors 6502a

    xXriderXx7

    Joined:
    Jul 6, 2007
    Location:
    Lake Elsinore, California
    #4
    Ive read over those forums countless times, and still, I cannot find a comprehensive guide that will help. Everything I find is missing instructions or only a partial explanation :/
     
  5. octelcogopod macrumors newbie

    Joined:
    Nov 12, 2007
    #5
    Try a little harder
    Further information:
    read up on what compiling means, in the programming sense. you have the compiled (ready to run) avrdude binary (as oppossed to source code). libusb is a library, which is basically a collection of programming functions that are helpful for a certain task or related group of tasks. you need to recompile avrdude, because simply having libusb installed is no help. the code for avrdude is already set in stone, and since it wasn't compiled with libusb originally it doesn't know how to use usb. the functions from libusb are not present in your avrdude binary
     
  6. octelcogopod macrumors newbie

    Joined:
    Nov 12, 2007
  7. xXriderXx7 thread starter macrumors 6502a

    xXriderXx7

    Joined:
    Jul 6, 2007
    Location:
    Lake Elsinore, California
    #7
    First off, Ive looked very hard, and have been to the page you linked to about 10 tens today. I dont understand how to do it, Ive read over all of that, and I am either messing up or missing something. Im asking for help, not links to more guides. Sorry if Im a bit rude, but Im a little mad that Ive spent so much time on this and cant get it to work. Can somebody walk me through it? Or atleast give me a very simplified guide? And I have tried AVRMacpack and have no idea how to use it, anybody willing to help me on that?
     
  8. octelcogopod macrumors newbie

    Joined:
    Nov 12, 2007
    #8
    Well, it would've helped if you specified exactly what was going wrong (error messages, etc.) Usually vagueness is interpreted as laziness, but maybe I'm just an asshole ;)

    First of all, do you have xcode installed?
    Second, get this latest version of AVRMacPack. Before you install, nuke any version of avrdude that you have.
    It installs in /usr/local/AVRMacPack‐DATE, so your install directory should be /usr/local/AVRMacPack-20081213/
    It makes a symlink to /usr/local/AVRMacPack regardless of date, so you can just run it like that.
    It drops a manual in the Applications folder. Check that out for further instructions on how to use it.

    If you run into trouble, please explain what's wrong instead of saying "it doesn't work" or something similar.
     
  9. xXriderXx7 thread starter macrumors 6502a

    xXriderXx7

    Joined:
    Jul 6, 2007
    Location:
    Lake Elsinore, California
    #9
    Okay. Somehow I got it working. I just finished reflashing my chip with more codes! woot!
    Sorry for the vagueness, I was a little flustered. Haha. Thank you for your help, I ended up using OSXAVR and do it through some serious terminal commands.
     

Share This Page