🔴 How To Upload A HEX File On MacOS Using AVRdude - No.1257

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 14

  • @thehitman5007
    @thehitman5007 4 месяца назад

    hi there, i have a STM8S207MBT6B chip that i need to copy to a new chip as the chip is faulty, which hardware programmer would you reccomend? Thanks in advance

    • @TheDefpom
      @TheDefpom  4 месяца назад

      Sorry I don’t know, maybe one of my viewers can help with this.

  • @deniszakharov3968
    @deniszakharov3968 3 месяца назад

    This video is the only thing that saved my project from being a complete disaster. U da best!

  • @IanScottJohnston
    @IanScottJohnston 4 месяца назад +2

    Wondering if AVRDUDESS is available for the MAC?.......very nice GUI for AVRDUDE which negates all AVRDUDE command line stuff.

    • @andymouse
      @andymouse 4 месяца назад

      Yeah found that the other day but not used it yet !

    • @IanScottJohnston
      @IanScottJohnston 4 месяца назад +1

      @@andymousehighly recommended.

    • @andymouse
      @andymouse 4 месяца назад

      @@IanScottJohnston :)

    • @NikiBretschneider
      @NikiBretschneider 4 месяца назад

      Avrdude is available on MacOS using homebrew (both x86 and apple silicon).

    • @IanScottJohnston
      @IanScottJohnston 4 месяца назад

      @@NikiBretschneider Avrdudess.......not Avrdude.

  • @originalmianos
    @originalmianos 4 месяца назад

    Lots of people with 3d printers program the Atmel from the Mac so there are a lot of examples for Marlin.

  • @andymouse
    @andymouse 4 месяца назад

    I use an UNO or a NANO as programer for AVRs. The sketch is available in the Arduino IDE, and set in Tools 'Arduino as ISP'

    • @TheDefpom
      @TheDefpom  4 месяца назад +1

      Yes I have done the same, but still had the difficulty of uploading a HEX file.

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist 4 месяца назад

    I just use a PICKit 4 which programs AVR's just fine.

  • @NikiBretschneider
    @NikiBretschneider 4 месяца назад

    This is just horrible way to do this. In fact, never use Arduino unless you absolutely have to, because almost all parts of that huge blob is somehow verschlimmbessert (so called "improved" to make it much worse that it was before). That thing is made to (and ready to) bite you into the ass at the worst moment doing something completely unexpected.
    There are weird things about the avrdude inside the Arduino. Despite the fact that avrdude's config file is in default location, it's specified by -C command and I don't know why (it looks like avrdude was somehow misconfigured before compilation).
    I never run into an issue with older versions of firmware running on usbASP, it just works, but it programs much slower with the original avrdude than with this "arduino" version. This looks like some timing "modification". Furthermore, it looks like avrdude runs with -u parameter by default, which is a kind of unfortunate, because it doesn't pause to ask you what to do when doing something unsafe (things that cannot be reverted) or something goes wrong, it just overrides.
    MacOS uses zsh, which has strong completion capability. It's sure you have that firmware somewhere in your home folder (which resides inside /Users folder on MacOS, in fact, MacOS is slightly modified ancient version of BSD with some specific flavor), so I don't understand why to use that drag and drop thing followed by copy and paste thing.
    avrdude contains self explaining help page, just run it without parameters or with -?.
    And, please, read before write, because if something goes wrong, this is what saves you ass. In fact, it tests the connection between the programmer and the device and it reads the original firmware, so you can easily revert almost anything you do. And, of course, read all that three memory regions - flash, eeprom and fuses.