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

0 Members and 1 Guest are viewing this topic.

Offline mstachoTopic starter

  • Supreme Robot
  • *****
  • Posts: 357
  • 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: 357
  • 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

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
4081 Views
Last post November 28, 2006, 09:08:18 AM
by Admin
2 Replies
3131 Views
Last post March 25, 2009, 12:12:53 AM
by pomprocker
1 Replies
350 Views
Last post July 31, 2011, 08:24:48 AM
by corrado33
0 Replies
304 Views
Last post June 19, 2012, 05:53:17 PM
by Proctor


Get Your Ad Here