Society of Robots - Robot Forum
Software => Software => Topic started by: mstacho on February 01, 2012, 02:11:36 PM
-
Howdy,
Just trying to play around with the '644, and when using webbotlib I get an error that tells me that the device is not defined in my makefile. This is...odd because the makefile has the lines:
## General Flags
PROJECT = test644
MCU = atmega644
TARGET = test644.elf
CC = avr-gcc.exe
and a number of other references to the atmega644. I linked the libraries correctly, I think (but I'll check again, I'm open to anything...). Any thoughts?
MIKE
-
Ah, replying to myself. Fixed the problem, although I have a feeling my fix is not complete.
In the file "device.h" in the webbotlib, the device isn't defined. I had to add the lines:
/**
Define common data structures used by the device
*/
#if defined (__AVR_ATmega640__) //DID NOT ADD THIS
# include "dev/ATmega640.h" //DID NOT ADD THIS
#elif defined(__AVR_ATmega644__) //ADDED THIS!
# include "dev/ATmega644.h" //ADDED THIS!!
etc
Should I also include the UART stuff that is defined for the other chips?
MIKE