Society of Robots - Robot Forum
Software => Software => Topic started 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,
-
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
-
http://www.societyofrobots.com/step_by_step_atmega168_swapout.shtml
-
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?
-
Found the problem... I forgot to declare the path to AVLib in the makefile:
AVRLIB = C:/AVRlib
AVRLIB2 = C:/AVRlib/conf