Society of Robots - Robot Forum

Software => Software => Topic started by: Zevoo on November 28, 2014, 11:15:47 AM

Title: Re: 50 dollar robot building error
Post by: Zevoo on November 28, 2014, 11:15:47 AM
So I have been following every step required to program the robot.
1. Add photovorev1.c to the project
2. Add SoRUtils
3. Set the external make file as 'makefile'
4. push rebuild solution

And I get an error:

I remember being able to build the project without problem but unfortunately I used a wrong Hexfile to program my robot so it didn't work. xD
Now that I know which one to use I cant build the code ;'( Help!
Title: Re: 50 dollar robot building error
Post by: Webbot on November 30, 2014, 05:55:38 PM
Looks like some kind of config error - last image contains a 'path not found' error.
Hard to comment further as I don't use Atmel Studio
Title: Re: 50 dollar robot building error
Post by: jkerns on November 30, 2014, 06:56:29 PM

3. Set the external make file as 'makefile'

Is it necessary to use an external makefile? Usually Atmel Studio builds just fine without playing around with makefiles. Are you following instructions for Atmel Studio or some other build environment?
Title: Re: 50 dollar robot building error
Post by: Zevoo on December 01, 2014, 09:01:45 AM
I'm just following the fifty dollar robot tutorial which tells me to include the makefile. When I remove the makefile this is what I get:
Title: Re: 50 dollar robot building error
Post by: jkerns on December 01, 2014, 10:13:21 AM
It looks like it is not finding files where it expects to find them - mismatch between where they got unzipped and where Atmel Studio is looking? Perhaps you could keep adding the .c and .h files it can't find to your project until it has found them all. Or, sort out where it is looking and where the files are actually located.
Title: Re: 50 dollar robot building error
Post by: Zevoo on December 01, 2014, 10:21:07 AM
I tried it before and it didnt seem to work but Ill try again and see if it works....

how can I change the location of where the atmel studio is suppose to be looking for the files though?
Title: Re: 50 dollar robot building error
Post by: Zevoo on December 01, 2014, 12:45:42 PM
I have first added the files that are on the picture. I built the code and it output an error SINGAL(SIG ADC) which I got a fix for before ISR(ADC vect). Rebuilt the code and it was successful. Uploaded the HEX file that was made when I built the code. Uploaded it to the robot but the robot didn't even move.  Then I realised that I didn't add the rest of the files shown on the same picture. Rebuilt the code and I got the following errors shown on the 2 picture.