Author Topic: compile problems  (Read 3146 times)

0 Members and 1 Guest are viewing this topic.

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
compile problems
« on: September 13, 2009, 03:37:06 AM »
help,
 I bought the axon, and am trying to set up the software according to the instructions here but I can not get it to compile, I selected the avr gcc, the avr simulator and the atmega640, named the project "Axon", copied all the unzipped files from the source code into the Axon folder, added source files hardware.c and control.c and the header SoR_Utils.h, configured the external makefile, and tried to compile the code with rebuild all.
went over and over the instructions many times. used the default downloads in the instructions.
I have checked the file path several times and all seems ok but keep getting the dreaded error:

gcc plug-in: Error: Object file not found on expected location C:\Axon\Axon.elf

where am I going wrong???
I am not a  programmer......DUH obviously.


running XP SP3 on sony GRX560 notebook

thanks,
Chuck

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #1 on: September 13, 2009, 10:04:42 AM »
Hmmmm are you sure your main file is also called Axon.c? No mistakes using caps?


Quote
running XP SP3

http://www.societyofrobots.com/axon/axon_FAQ.shtml#boot_slow

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #2 on: September 13, 2009, 11:11:54 AM »

here is a screen shot can you see anything?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #3 on: September 13, 2009, 11:47:06 AM »
Hmmmm and the project file and makefile are all in the same folder?

And in the makefile, do you see this?
Code: [Select]
# Target file name (without extension).
TARGET = Axon

My next thought is just delete the entire project and start over again. And use the exact folder/file names I used just to be sure . . .

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #4 on: September 13, 2009, 12:36:17 PM »
same problem, checked make file target=Axon
used your directories -- c:\my_robots\Axon
I'm losing my mind..........
btw while clearing out some of my old trial directories Ii found a file named "Axon.hex" does that mean I was successful once and I didn't know it?
one time I used V4.17.666 of the studio and latest WinAvr

got to be something simple

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #5 on: September 13, 2009, 01:02:19 PM »
ok the Axon hex file is in the source zip.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #6 on: September 13, 2009, 01:16:32 PM »
When you go to Build->Configuration Options, is it selecting the makefile in the correct directory?

(I'm running out of ideas)

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #7 on: September 13, 2009, 02:26:14 PM »
WOW Stumped the star.............
yes the makefile i select is in the my_robots\Axon folder

when I unzip the source files into the Axon folder it asks to over write 2 files Axon.c which i do and Axon.aps also is this a problem? I have tried both ways.........

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #8 on: September 13, 2009, 02:34:52 PM »
also tried it on my other notebook running Vista home same issue.........
btw is the Axon.hex file in the zip the same file i should end up with if i compile successfully.

it would get me started if i just upload it to the Axon so i could try your simple Photovore bot or is it not the code for that??

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #9 on: September 13, 2009, 02:38:53 PM »
Nope, you don't want to overwrite the aps file with the one in the zip (thats the project file).

Yea, the Axon.hex should be the photovore code.

I'm pretty stumped here . . . you're the first with this prob!

Ok how about this, use the included project file in the zip (skip the create project wizard). It should work in the My_Robots/Axon directory.

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #10 on: September 13, 2009, 02:58:18 PM »
no luck.... I'm going to rest my brain a while I have been trying to get this to work for a week about 4hrs a day.......................
you however may feel free to keep making suggestions............LOL
or I will just have to send you any code i create and have you compile it............JUST KIDDING


Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
Re: compile problems
« Reply #11 on: September 13, 2009, 03:22:44 PM »
Zip up your entire Axon folder and upload it please. I'll take a look at it
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #12 on: September 13, 2009, 04:40:34 PM »
Thanks,
hope you find it.
Chuck

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
Re: compile problems
« Reply #13 on: September 13, 2009, 04:53:06 PM »
Builds fine for me.
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #14 on: September 13, 2009, 05:13:48 PM »
airman00, whats your AVRStudio/WinAVR versions?

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
Re: compile problems
« Reply #15 on: September 13, 2009, 05:15:24 PM »
AVRstudio 4.17 build 666
WinAVR I have no idea, but its the old WinAVR ( from like 2 years ago)
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #16 on: September 13, 2009, 05:21:04 PM »
well i guess I'm just NUTS!!!

I also tried V4.17.666 and had no luck.
will keep trying

thanks guys

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #17 on: September 13, 2009, 05:23:45 PM »
Builds fine for me.

Compiled fine for me too.

On an interesting note, it appears AVR Studio now allows spaces in the file name . . .

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #18 on: September 13, 2009, 05:31:17 PM »
must be the air here in Pa.
it won't work for me.......... >:(

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
Re: compile problems
« Reply #19 on: September 13, 2009, 05:45:02 PM »
must be the air here in Pa.
it won't work for me.......... >:(
try doing it over from scratch

You may have checked off the wrong option in Project Options.
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #20 on: September 13, 2009, 06:34:12 PM »
you have no idea how many times I have done it over from scratch even reinstalled everything but will keep trying till i get it.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #21 on: September 13, 2009, 06:53:24 PM »
Just a thought . . .

Anything unusual about your PC/laptop? Multiple users setup? Something happening with permissions? Anti-virus being whack?

The fact that you tried it on two different computers/OSs leads me to believe there is a dumb mistake happening somewhere . . . :P

Probably best to get some sleep, then come back to it with a refreshed brain. I always nap when I can't figure out a problem, and after the nap, I usually figure it out right away.

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #22 on: September 13, 2009, 09:46:34 PM »
OK..... tried again on my other notebook (vista) AVR Stuido V4.17.666.
removed the Axon.hex file that came over with the source zip.
got a successful compile.......... :o

thanks for all your help guys.
stand by you got me hooked so I will have a lot of stupid questions....... :-\

Chuck

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #23 on: September 14, 2009, 06:59:15 AM »
great!

Questions are only stupid if the answer shows up on the first page of a google search :P

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #24 on: September 14, 2009, 11:33:47 AM »
thanks again.....
BTW 1st stupid question: with the code I just compiled which ports on the Axon are the sensors and wheels assigned to?

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #25 on: September 15, 2009, 09:21:57 AM »
Quote
BTW 1st stupid question: with the code I just compiled which ports on the Axon are the sensors and wheels assigned to?

was this one of those questions too stupid to answer?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #26 on: September 15, 2009, 01:09:19 PM »
Its all in the documentation:
http://www.societyofrobots.com/axon/axon_function_list.shtml#hardware_defines
http://www.societyofrobots.com/axon/axon_function_list.shtml#adc

It also explicitly says it all in the source code comment blocks :P

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #27 on: September 15, 2009, 03:49:37 PM »
AH HA, see you assume I have any clue as to what all that gibberish says....... ;D.....LOL
I will keep trying to get a handle on it.

I will read as much documentation as it takes I guess.
thanks
Chuck

Offline chuckelsTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: compile problems
« Reply #28 on: September 15, 2009, 04:00:08 PM »
Quote
servo(PORTH,2,700);

WOW Too embarrassed for words.... :'(

guess I should have looked at the pins on the board... this code means the servo would be connected to pin H2(left edge of the board about half way down)....?? correct?

Dumb Ass!!

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: compile problems
« Reply #29 on: September 15, 2009, 04:55:50 PM »
Quote
servo(PORTH,2,700);
this code means the servo would be connected to pin H2(left edge of the board about half way down)....?? correct?
yup yup :P

 


Get Your Ad Here