atm32u4df and avrdude

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

atm32u4df and avrdude

Bruce Byfield
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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Reply | Threaded
Open this post in threaded view
|

Re: atm32u4df and avrdude

Dave Harper-2
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
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list


_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Reply | Threaded
Open this post in threaded view
|

Re: atm32u4df and avrdude

Phillip Vogel
You can also use an arduino as a programmer with avrdude. 



Sent from my Verizon, Samsung Galaxy smartphone


-------- Original message --------
From: Dave Harper <[hidden email]>
Date: 9/18/19 5:06 PM (GMT-05:00)
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
> Prentice Pieces: https://prenticepieces.com/
>
> _______________________________________________
> AVR-GCC-list mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list


_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Reply | Threaded
Open this post in threaded view
|

Re: atm32u4df and avrdude

martijn
In reply to this post by Bruce Byfield
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, [hidden email] wrote:

> Send AVR-GCC-list mailing list submissions to
> [hidden email]
>
> 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
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> 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 <[hidden email]>
> To: [hidden email]
> Subject: [avr-gcc-list] atm32u4df and avrdude
> Message-ID: <[hidden email]>
> 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 <[hidden email]>
> To: [hidden email]
> Subject: Re: [avr-gcc-list] atm32u4df and avrdude
> Message-ID: <[hidden email]>
> 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
> > [hidden email]
> > https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 18 Sep 2019 22:39:35 +0000
> From: Phillip Vogel <[hidden email]>
> To: "[hidden email]" <[hidden email]>, "[hidden email]"
> <[hidden email]>
> Subject: Re: [avr-gcc-list] atm32u4df and avrdude
> Message-ID:
> <[hidden email]>
>
> 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 <[hidden email]>
> Date: 9/18/19 5:06 PM (GMT-05:00)
> To: [hidden email]
> 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
> > [hidden email]
> > https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> [hidden email]
> 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
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
>
> ------------------------------
>
> End of AVR-GCC-list Digest, Vol 155, Issue 1
> ********************************************

_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: atm32u4df and avrdude

Lukas Dzunko
In reply to this post by Phillip Vogel
Hello

I personally prefer hardware programmer named "AVR Dragon"-> https://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATAVRDRAGON

You can communicate with mcpu using avrdude. Command line should looks like:

avrdude -p m32u4 -c dragon_isp -P usb

+ options for selected operation.

AVR Dragon is working well on Linux machine. There is no need to install drivers or configure system. Just invoke avrdude and it is working (you may need to use "sudo" if permissions for USB is restricted).

Regards

Lukas

On 19/09/2019 00:39, Phillip Vogel wrote:
You can also use an arduino as a programmer with avrdude. 



Sent from my Verizon, Samsung Galaxy smartphone


-------- Original message --------
From: Dave Harper [hidden email]
Date: 9/18/19 5:06 PM (GMT-05:00)
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
> Prentice Pieces: https://prenticepieces.com/
>
> _______________________________________________
> AVR-GCC-list mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list


_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list


_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list