ATxmega16A4U / LUFA / bootloader

526 views
Skip to first unread message

Unknown

unread,
Oct 7, 2012, 8:00:57 AM10/7/12
to lufa-s...@googlegroups.com
Hi all,

did anyone use LUFA with the ATxmega16A4U already?

I'd like to write a dfu-bootloader for this device and got some
questions.

First of all, ATXMEGA16A4U seems to be supported by LUFA already,
correct?

Second seems to be a problem with my toolchain.
avr-gcc --target-help
Lists the atxmega64a1u and atxmega16a4 but there is no atxmega16a4u.
Also my avr-libc does not have anything like __AVR_ATxmega16A4U__ .

Is there any patch which adds the new xmega-u devices?

I'm pretty sure the current dfu-bootloader also needs some changes since
the self programming for the xmega devices differs from the avr8 ones.
Maybe the integration with xboot would be a good idea.

Thanks for any help :-)

Regards,
Alex

Unknown

unread,
Oct 7, 2012, 1:11:02 PM10/7/12
to lufa-s...@googlegroups.com

Dean Camera

unread,
Oct 14, 2012, 10:08:45 AM10/14/12
to lufa-s...@googlegroups.com, alexander...@googlemail.com
Alex,

Sorry for my late response.

The XMEGA devices are partially supported in LUFA, subject to the known issues list as documented here:

http://www.fourwalledcubicle.com/files/LUFA/Doc/120730/html/_page__known_issues.html

One possible toolchain that supports the newer XMEGA devices is the Atmel Toolchain, which is available in both Windows and Linux versions:

http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx
www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx

If you are using Windows, you may also need to configure some additional utilities to get a function build environment up with LUFA, see this page:

http://www.fourwalledcubicle.com/files/LUFA/Doc/120730/html/_page__compiling_apps.html

Hope that helps!
- Dean

Unknown

unread,
Oct 16, 2012, 1:51:57 PM10/16/12
to Dean Camera, lufa-s...@googlegroups.com
Thanks Dean!

I'll try my luck and will post my progress here.

Regards,
Alex

Grant Patterson

unread,
Aug 8, 2013, 12:27:54 PM8/8/13
to lufa-s...@googlegroups.com, Dean Camera, alexander...@googlemail.com
Hi folks, I'm new to LUFA / XMEGA, some experience with AVR, trying to get an ATxmega16A4U Arduino-compatible. Has there been any progress on a USB bootloader in the past year?

I'm coming at this from a few different angles: porting Atmel's DFU bootloader? Fixing avr-libc's boot.h so it deals with the SPM control register issue ("AVR processor does not provide bootloader support!")? Any ideas based on the current state of things would be great.

Thanks,
grant

Alexander Krause

unread,
Aug 8, 2013, 2:03:14 PM8/8/13
to Grant Patterson, lufa-s...@googlegroups.com, Dean Camera
Hi Grant,

I'm still using the ATXMega16 recently for some projects but since I
do not USB I did not use LUFA.

I also created a patchset for libc, avr-gcc and binutils to support
the ATXMega16. My idea was to use the dfu-bootloader and
dfu-programmer but since I do not need to update the firmware every
now and then I dropped USB support.

My board: http://ed-solutions.de/dokuwiki/hardware:misc:xm16a4u:dev

I can send you my code if you want.

Regards,
Alex

Grant Patterson

unread,
Aug 8, 2013, 2:13:48 PM8/8/13
to Alexander Krause, lufa-s...@googlegroups.com, Dean Camera
Hi Alex, thanks for the reply. What is the state of the patchset? Has it been submitted anywhere, possibly picked up by now? Does it support use of the boot section in the atxmega16, or did you not need to use that?

Mathieu Stephan

unread,
Jul 5, 2015, 9:50:04 AM7/5/15
to lufa-s...@googlegroups.com, grant.p...@gmail.com, abcmi...@gmail.com, alexander...@googlemail.com
Hello All,

Sorry for resuscitating such an old thread.
Alexander: could you send me the bootloader you made for the atxmega?

Cheers,
Mathieu
Reply all
Reply to author
Forward
0 new messages