Author Topic: Webbotlib and ATMega644: "Device not defined in your makefile"  (Read 1651 times)

0 Members and 1 Guest are viewing this topic.

Offline mstachoTopic starter

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Webbotlib and ATMega644: "Device not defined in your makefile"
« 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
Current project: tactile sensing systems for multifingered robot hands

Offline mstachoTopic starter

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Webbotlib and ATMega644: "Device not defined in your makefile"
« Reply #1 on: February 01, 2012, 02:23:27 PM »
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
Current project: tactile sensing systems for multifingered robot hands

 


data_list