Re: [avr-gcc-list] atm32u4df and avrdude
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, avr-gcc-list-requ...@nongnu.org wrote: > Send AVR-GCC-list mailing list submissions to > avr-gcc-list@nongnu.org > > 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 > avr-gcc-list-requ...@nongnu.org > > You can reach the person managing the list at > avr-gcc-list-ow...@nongnu.org > > 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 > To: avr-gcc-list@nongnu.org > 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, > > > o > 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 > To: avr-gcc-list@nongnu.org > Subject: Re: [avr-gcc-list] atm32u4df and avrdude > Message-ID: <002a4617-17a7-ad5f-4d20-269d6cb3b...@gmail.com> > 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, > > > > > > o > > Bruce Byfield (on Pacific time) 604-421-7189 > > "Designing with LibreOffice": www.designingwithlibreoffice.com > > Prentice Pieces: https://prenticepieces.com/ > > > > _______ > > AVR-GCC-list mailing list > > AVR-GCC-list@nongnu.org > > https://lists.nongnu.org/mailman/listinfo/avr-gcc-list > > > > > -- > > Message: 3 > Date: Wed, 18 Sep 2019 22:39:35 + > From: Phillip Vogel > To: "d...@dlharper.net" , "avr-gcc-list@nongnu.org" > > Subject: Re: [avr-gcc-list] atm32u4df and avrdude > Message-ID: > > > >
Re: [avr-gcc-list] atm32u4df and avrdude
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 Date: 9/18/19 5:06 PM (GMT-05:00) To: avr-gcc-list@nongnu.org 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, > > > o > 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 > AVR-GCC-list@nongnu.org > https://lists.nongnu.org/mailman/listinfo/avr-gcc-list ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] atm32u4df and avrdude
You can also use an arduino as a programmer with avrdude. Sent from my Verizon, Samsung Galaxy smartphone Original message From: Dave Harper Date: 9/18/19 5:06 PM (GMT-05:00) To: avr-gcc-list@nongnu.org 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, > > > o > 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 > AVR-GCC-list@nongnu.org > https://lists.nongnu.org/mailman/listinfo/avr-gcc-list ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
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, o Bruce Byfield (on Pacific time) 604-421-7189 "Designing with LibreOffice": www.designingwithlibreoffice.com Prentice Pieces: https://prenticepieces.com/ ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list