ATMega324PB Xpro example code does not compile

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

I got the ATMega324PB Xplained Pro board and I just wanted to see how it worked with Atmel Studio.
 

On my new laptop I installed Atmel Studio fresh, then plugged in the board. It popped up as the 324PB as it should have, and so I looked at the example projects they have to offer.

One of them is the "Remorse" application which appears to give you a translation from/to Morse code over the UART.

 

However, when I tried to run it, I got many compilation errors. The first several were that header files which were in the "utils" folder were unrecognized by the IDE. For example, many files had the line

#include "complier.h"

If I clicked on it and said go to implementation it would open the right file, but the compiler could not find it until I changed it to

#include "utils/compiler.h"

I chased these for a bit until I could find no more, but then I got all sorts of warnings that constants were missing; again, some of them I could find in various sub-folders, but some of them appeared to be missing from the actual AVR library files.

 

So my question is, is this board still too new to work properly with AVR Studio? Did I screw something up? (this is why I used a clean install, I was hoping it would work "out of the box")

 

Thanks in advance for anyone's help.

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

Hi,

 

I tried compiling this just now and it compiles fine on my machine apart from some warnings (witch in it self is not good, but no errors). I believe I have the latest ASF 3.31.

 

Not certain if this is it but did you do a full install when you installed Atmel Studio? I see now that they have options to not install AVR stuff.

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

Actually, I was able to get the errors to go away; I restarted my machine and re-added the sample project and it somehow found the headers. I had this problem before in Atmel Studio, and have had similar weirdness in Visual Studio proper with some .Net projects, so I'll chock that up to IDE quirkiness.

However, those warnings are quite disconcerting to me and they make me think that the register map for the 324PB is bad.

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

Definitely strange. The only thing I can think of here is some kind of path issue but not sure of that.