avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] atm32u4df and avrdude


From: martijn
Subject: Re: [avr-gcc-list] atm32u4df and avrdude
Date: Fri, 20 Sep 2019 09:26:16 +0200

Hi Bruce,

If the software is anything like the gh60 keyboard then there is a button on the
board that gets you into programming mode. I'll assume you have the ELF file you
want to flash, let's call it `firmware.elf'. When the board is in programming
mode:

1. avr-objcopy -O ihex firmware.elf
2. sudo dfu-programmer atmega32u4 erase
3. sudo dfu-programmer atmega32u4 flash `firmware.hex'

(1) converts the elf format to intel hex format. (2) erases the flash memory,
you could omit this step if you want. (3) uploads the new firmware to the flash
memory. Finally, you could `sudo dfu-programmer launch' to start execution, but
this is equivalent to temporarily removing the power.

It should be this easy because the atmega32u4 has USB built in, it just has to
be in programming mode. Linux should autodetect the chip (dmesg --follow) will
show you the USB bus events as they take place, among other things.

Best of luck,

--
~ martijn | pgp: 4301A03A

On Thu, Sep 19, 2019 at 12:00:03PM -0400, address@hidden wrote:
> Send AVR-GCC-list mailing list submissions to
>       address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> or, via email, send a message with subject or body 'help' to
>       address@hidden
>
> You can reach the person managing the list at
>       address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AVR-GCC-list digest..."
>
>
> Today's Topics:
>
>    1. atm32u4df and avrdude (Bruce Byfield)
>    2. Re: atm32u4df and avrdude (Dave Harper)
>    3. Re: atm32u4df and avrdude (Phillip Vogel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 18 Sep 2019 11:26:44 -0700
> From: Bruce Byfield <address@hidden>
> To: address@hidden
> Subject: [avr-gcc-list] atm32u4df and avrdude
> Message-ID: <20190918112644.415bcb48@nanday.nanday>
> Content-Type: text/plain; charset=US-ASCII
>
> I'm trying to write an article for Linux Pro Magazine on Macropad
> (http://macropad.co/), and I was hoping to find some help, since my
> experience is limited.
>
> The device comes  with instructions for Windows and macOS, but not for
> Linux. Unfortunately, it uses an atm32u4dfu, and I'm having trouble
> finding a programmer that avrdude can use to communicate with it. Can
> anyone tell me if a suitable programmer exists, and, if so, what it is?
>
> I'm not subscribed to the list, so please cc me on any reply.
>
> Thanks,
>
>
> ooooo
> Bruce Byfield (on Pacific time) 604-421-7189
> "Designing with LibreOffice": www.designingwithlibreoffice.com
> Prentice Pieces: https://prenticepieces.com/
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 18 Sep 2019 16:03:48 -0500
> From: Dave Harper <address@hidden>
> To: address@hidden
> Subject: Re: [avr-gcc-list] atm32u4df and avrdude
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> I've used the Raspberry Pi with avrdude to program AVR parts before. 
> You can find a howto article at Adafruit.com -
> https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins/configuration.
>
> Dave
>
>
> On 09/18/2019 01:26 PM, Bruce Byfield wrote:
> > I'm trying to write an article for Linux Pro Magazine on Macropad
> > (http://macropad.co/), and I was hoping to find some help, since my
> > experience is limited.
> >
> > The device comes  with instructions for Windows and macOS, but not for
> > Linux. Unfortunately, it uses an atm32u4dfu, and I'm having trouble
> > finding a programmer that avrdude can use to communicate with it. Can
> > anyone tell me if a suitable programmer exists, and, if so, what it is?
> >
> > I'm not subscribed to the list, so please cc me on any reply.
> >
> > Thanks,
> >
> >
> > ooooo
> > Bruce Byfield (on Pacific time) 604-421-7189
> > "Designing with LibreOffice": www.designingwithlibreoffice.com
> > Prentice Pieces: https://prenticepieces.com/
> >
> > _______________________________________________
> > AVR-GCC-list mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 18 Sep 2019 22:39:35 +0000
> From: Phillip Vogel <address@hidden>
> To: "address@hidden" <address@hidden>, "address@hidden"
>       <address@hidden>
> Subject: Re: [avr-gcc-list] atm32u4df and avrdude
> Message-ID:
>       <address@hidden>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You can also use an arduino as a programmer with avrdude.
>
>
>
> Sent from my Verizon, Samsung Galaxy smartphone
>
>
> -------- Original message --------
> From: Dave Harper <address@hidden>
> Date: 9/18/19 5:06 PM (GMT-05:00)
> To: address@hidden
> Subject: Re: [avr-gcc-list] atm32u4df and avrdude
>
> I've used the Raspberry Pi with avrdude to program AVR parts before.
> You can find a howto article at Adafruit.com -
> https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins/configuration.
>
> Dave
>
>
> On 09/18/2019 01:26 PM, Bruce Byfield wrote:
> > I'm trying to write an article for Linux Pro Magazine on Macropad
> > (http://macropad.co/), and I was hoping to find some help, since my
> > experience is limited.
> >
> > The device comes  with instructions for Windows and macOS, but not for
> > Linux. Unfortunately, it uses an atm32u4dfu, and I'm having trouble
> > finding a programmer that avrdude can use to communicate with it. Can
> > anyone tell me if a suitable programmer exists, and, if so, what it is?
> >
> > I'm not subscribed to the list, so please cc me on any reply.
> >
> > Thanks,
> >
> >
> > ooooo
> > Bruce Byfield (on Pacific time) 604-421-7189
> > "Designing with LibreOffice": 
> > www.designingwithlibreoffice.com<http://www.designingwithlibreoffice.com>
> > Prentice Pieces: https://prenticepieces.com/
> >
> > _______________________________________________
> > AVR-GCC-list mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <https://lists.nongnu.org/archive/html/avr-gcc-list/attachments/20190918/c15e103b/attachment.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
>
> ------------------------------
>
> End of AVR-GCC-list Digest, Vol 155, Issue 1
> ********************************************

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]