Society of Robots - Robot Forum

Software => Software => Topic started by: vidam on April 01, 2008, 08:22:56 PM

Title: Photovore Code
Post by: vidam 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,

Title: Re: Photovore Code
Post by: superchiku 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
Title: Re: Photovore Code
Post by: Admin on April 06, 2008, 11:00:30 AM
http://www.societyofrobots.com/step_by_step_atmega168_swapout.shtml
Title: Re: Photovore Code
Post by: vidam 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?
Title: Re: Photovore Code
Post by: vidam 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