Society of Robots - Robot Forum
Software => Software => Topic started by: Jdog on May 09, 2011, 09:01:48 PM
-
Hi, I recently switched over to Ubuntu and am trying to get my Axon working. I followed this tutorial: http://www.societyofrobots.com/robotforum/index.php?topic=8216.0 (http://www.societyofrobots.com/robotforum/index.php?topic=8216.0)
I am able to load files that I have previously compiled on my windows perfectly. I'm running into problems though when I try to edit those files and recompile them. I ran into the same problem as Ryltar in http://www.societyofrobots.com/robotforum/index.php?topic=10792.0. (http://www.societyofrobots.com/robotforum/index.php?topic=10792.0.) and am now using his makefile which lets me run make. But when I run it and then upload the new hex, the changes I've made to the software do not show up.
Here is the output when I run make:
turdferg@turdferg-desktop:~/Documents/Robotics/my_robots/Axon/helloWorldUbuntu$ make
-------- begin --------
avr-gcc (GCC) 4.3.4
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:
avr-size: unrecognized option '--mcu=atmega640'
Usage: avr-size [option(s)] [file(s)]
Displays the sizes of sections inside binary files
If no input file(s) are specified, a.out is assumed
The options are:
-A|-B --format={sysv|berkeley} Select output style (default is berkeley)
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex
-t --totals Display the total sizes (Berkeley only)
--common Display total size for *COM* syms
--target=<bfdname> Set the binary file format
@<file> Read options from <file>
-h --help Display this information
-v --version Display the program's version
avr-size: supported targets: elf32-avr elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
Size after:
avr-size: unrecognized option '--mcu=atmega640'
Usage: avr-size [option(s)] [file(s)]
Displays the sizes of sections inside binary files
If no input file(s) are specified, a.out is assumed
The options are:
-A|-B --format={sysv|berkeley} Select output style (default is berkeley)
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex
-t --totals Display the total sizes (Berkeley only)
--common Display total size for *COM* syms
--target=<bfdname> Set the binary file format
@<file> Read options from <file>
-h --help Display this information
-v --version Display the program's version
avr-size: supported targets: elf32-avr elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
Errors: none
-------- end --------
Does anyone know why this is happening? Any help is greatly appreciated :)
-
Hi. Can you post the source code of the files you're using as well as the makefile?
In the meantime, take a look at this option:
http://www.societyofrobots.com/robotforum/index.php?topic=13796.0 (http://www.societyofrobots.com/robotforum/index.php?topic=13796.0)
-
But when I run it and then upload the new hex, the changes I've made to the software do not show up.
This may or may not be a problem, but sometimes I have this problem when I'm a bit sleepy . . .
Check the creation time/date of your .hex file to make sure you are uploading the most recently compiled .hex. Sometimes I upload another .hex with the same file name and get really confused for 20+ minutes . . .