Author Topic: Photovore Code  (Read 2274 times)

0 Members and 1 Guest are viewing this topic.

Offline vidamTopic starter

  • Supreme Robot
  • *****
  • Posts: 423
  • Helpful? 1
  • Robotronics.org
Photovore Code
« on: April 01, 2008, 08:22:56 PM »
Hello:

How can I modify Photovore program http://www.societyofrobots.com/step_by_step_robot_step4.shtml to run on my Robostix that is based on the ATMega 2651?

Thanks in advance,


Offline superchiku

  • Supreme Robot
  • *****
  • Posts: 953
  • Helpful? 5
  • cooll
Re: Photovore Code
« Reply #1 on: April 02, 2008, 01:19:31 AM »
just see if the correct registers are defined and the correct pins are set as o/p

aslo see the crystal and internal timer settings
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,652
  • Helpful? 169
    • Society of Robots

Offline vidamTopic starter

  • Supreme Robot
  • *****
  • Posts: 423
  • Helpful? 1
  • Robotronics.org
Re: Photovore Code
« Reply #3 on: May 29, 2008, 12:46:42 PM »
I changed the makefile in the photovore code makefile so as to use the environment variable set in windows to for AVRlib.

# List C source files here. (C dependencies are automatically generated.)
SRC = $(TARGET).c $(AVRLIB)/a2d.c
#SRC = $(TARGET).c timer.c uart.c buffer.c rprintf.c
EXTRAINCDIRS = $(AVRLIB)

and when I try to compile the code I get this error:

make: *** No rule to make target `Photovore_v1.elf', needed by `elf'.  Stop.
Build failed with 1 errors and 0 warnings...

When I change it back to the original way it compiles fine. Not sure why I can't change the makefile to find the system environment variable location.

Any ideas?

Offline vidamTopic starter

  • Supreme Robot
  • *****
  • Posts: 423
  • Helpful? 1
  • Robotronics.org
Re: Photovore Code
« Reply #4 on: May 29, 2008, 01:30:09 PM »
Found the problem... I forgot to declare the path to AVLib in the makefile:

AVRLIB = C:/AVRlib
AVRLIB2 = C:/AVRlib/conf


 


Get Your Ad Here

data_list