LUFA help?

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to build a LUFA Usbtoserial project for my Xmega AU. I have not installed Doxygen. Is that a requirement? I see some

#if !defined(__DOXYGEN__)

in the code.

I'm getting a few errors that I shouldn't be seeing. For instance MCUSR and DDRB aren't defined. Those are Mega symbols, not Xmega symbols.

So what is DOXYGEN? Will it screw up my Windows machine?

For whatever it's worth I built an ASF project for my board without any problems. Apparently ASF doesn't use doxygen and doesn't use the iox......h files. Apparently LUFA uses the iox.....h files, or maybe only if DOXYGEN is not defined. I figured nobody but me uses the iox.....h files any more because Atmel fails to define some symbols in these files, like USB for instance.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I should mention that fourwalledcubicle.com is not on line.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Doxygen is used to generate documentation from the LUFA header and source files. Since LUFA already comes with the generated documentation, there should be no need to install Doxygen unless you're altering the LUFA library itself.

The !defined(__DOXYGEN__) lines in LUFA are there so that Doxygen skips certain sections of the header/source files when generating the documentation. Normally these sections are private definitions that aren't part of the public API.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okay.

I do have some build irregularities. I may be able to kludge them away. It uses MCUSR to disable the watchdog, in case the watchdog is enabled. MCUSR is a Mega thing, not an Xmega thing. I guess the watchdog should be disabled anyway so I can comment that out.

It also uses Mega symbols for the USART and timer and the port where it turns on LEDs. I'll have to see what can be done there. I don't need the LEDs and I could get by without the USART.

Maybe there is a simpler project that just uses the USB and doesn't use the USART. That could serve my purposes okay.

My makefile seems to be set up okay.

MCU = atxmega128a4u

ARCH = XMEGA

BOARD = A3BU_XPLAINED	

I don't have an XPLAINED board but I should be able to adapt the configuration for the LED port and the USART port to match my board. Or just eliminate them. That worked well for the ASF project.

P.S. I get captchad for everything today.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As jonsole says you don't need Doxygen unless you plan to use "make doxygen". Otherwise it's a red herring.

BTW do you use AS6? If so then perhaps the easiest way to use LUFA is to go to the extension gallery and add Dean's LUFA extension. Now you get to create LUFA projects just like you can do with ASF projects.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, I will try that.

As I look around, I haven't seen any projects or demos for the Xmega. The one I was using, and every one I've looked at do a bunch of AVRs, including Megas, but no Xmegas.

There are some source files in the drivers/usb/core/xmega folder. There are some routines to use, but I guess there is no project. Actually that's just what I want in the end, but it would be comforting to see a program work before I hack it to death.

So you think there are buildable projects for Xmega available through Studio 6.1?

Maybe I have an old LUFA download. Mine is dated Feb 19, 2012.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
As jonsole says you don't need Doxygen unless you plan to use "make doxygen". Otherwise it's a red herring.
Yep, lots of herring in Norway.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I downloaded LUFA-RELEASE_130901.vsix. I clicked on it and it installed.

Now what? I started up Studio but I can't find LUFA anywhere. I don't even know where to start. Click on New Example Project from ASF, or New Project?