Society of Robots - Robot Forum

Software => Software => Topic started by: soninja8 on June 05, 2011, 04:15:49 PM

Title: Please Help!
Post by: soninja8 on June 05, 2011, 04:15:49 PM
Ok, so im doing the $50 robot, I have already made the MC, and tested it with the hold_servo.hex and it works. But I try to make the Photovore_v1.hex on AvrStudio 4, and I click build all, and it says everything went ok with 0 errors, but all thats in the folder named Photovore_v1 is Photovore_v1.aps.....I Have tried so many different appoaches, but I cant see to generate a Photovore_v1.hex file!!!!!!!!

Please Help!!!
Title: Re: Please Help!
Post by: adanvasco on June 05, 2011, 06:56:32 PM
Check the path on AVR Studio. Or just do a search for *.hex or Photovore*.*
Title: Re: Please Help!
Post by: soninja8 on June 05, 2011, 07:19:15 PM
I have, everything is correct according to admin's instruction...
Title: Re: Please Help!
Post by: adanvasco on June 05, 2011, 07:38:23 PM
Are you using the makefile provided by Admin? Can you compare you project config options with the attached image? If using your own makefile, make sure to check the "Create Hex File" box. If that does not helps, can you paste the whole output of AVR Studio? I mean the verbose response on the build window.
Title: Re: Please Help!
Post by: soninja8 on June 05, 2011, 09:39:56 PM
how do you get the makefile to have no extension? mine is C:\My_Robots\Photovore_1\Makefile
Title: Re: Please Help!
Post by: adanvasco on June 05, 2011, 11:01:56 PM
The makefile doesn't have and doesn't need an extension. It's just a text file with instructions for the compiler. If you right click on it while holding the shift key, you can choose to open it with any text editor or your OS will ask you otherwise. The name is also usually all lowercase, which doesn't matter if you use Windows.
Title: Re: Please Help!
Post by: soninja8 on June 06, 2011, 12:49:47 AM
I meant like in that pic, it shows just makefile....but when i do it, it says C:\My_Robots\Photovore_1\makefile
Title: Re: Please Help!
Post by: Gertlex on June 06, 2011, 07:19:36 AM
Where is your axon.c file? (or whatever .c file contains your code?)
Title: Re: Please Help!
Post by: adanvasco on June 06, 2011, 08:46:52 AM
I'm not sure why yours look different. What version of AVR Studio and Windows are you using? Also, did you do a search for *.hex? If so, make sure to search the whole drive.
Can you also open your .aps (Photovore_1.aps) file with notepad and post the content here?
Title: Re: Please Help!
Post by: soninja8 on June 06, 2011, 01:21:46 PM
Ok, I'm using Avr Studio 4, the one that admin said to. I'm using windows 7 64bit. I did search .hex in my whole computer, but the only one that comes up is the one is the Photovore_v1 file that admin provided to make the usable Photovore_v1.hex file: http://www.societyofrobots.com/step_by_step_robot_step4.shtml (http://www.societyofrobots.com/step_by_step_robot_step4.shtml) on this page.

This is whats in the Photovore_v1.aps file:
<AVRStudio><MANAGEMENT><ProjectName>Photovore_v1</ProjectName><Created>06-Jun-2011 12:11:32</Created><LastEdit>06-Jun-2011 12:11:33</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>06-Jun-2011 12:11:32</Created><Version>4</Version><Build>4, 18, 0, 685</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile></ObjectFile><EntryFile></EntryFile><SaveFolder>C:My_RobotsPhotovore_v1</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET>AVR Simulator</CURRENT_TARGET><CURRENT_PART>ATmega8.xml</CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM>Auto</COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES/><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>NO</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE></EXTERNALMAKEFILE><PART>atmega128</PART><HEX>1</HEX><LIST>1</LIST><MAP>1</MAP><OUTPUTFILENAME>Photovore_v1.elf</OUTPUTFILENAME><OUTPUTDIR>default</OUTPUTDIR><ISDIRTY>0</ISDIRTY><OPTIONS/><INCDIRS/><LIBDIRS/><LIBS/><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG></AVRGCCPLUGIN><IOView><usergroups/><sort sorted="0" column="0" ordername="1" orderaddress="1" ordergroup="1"/></IOView><Files></Files><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio>
Title: Re: Please Help!
Post by: soninja8 on June 06, 2011, 01:25:17 PM
Where is your axon.c file? (or whatever .c file contains your code?)

Its in that file admin provided: Photovore_v1
Title: Re: Please Help!
Post by: adanvasco on June 06, 2011, 06:37:23 PM
Hi there. Look between the lines <SaveFolder></SaveFolder> of your .aps file. Yours look like this: <SaveFolder>C:My_RobotsPhotovore_v1</SaveFolder> while mine look like this: <SaveFolder>C:\Robotics\Photovore_Robot\Source_Code\</SaveFolder>

Obviously the path "C:My_RobotsPhotovore_v1" does not exist. I'm no Windows user/expert but, at least a backslash or slash is missing between the folder names.

Try recreating your project from scratch or correct the path on your .aps file and see if that makes the difference.

By the way, if you're making the $50 robot you should not have an axon.c file.
Title: Re: Please Help!
Post by: soninja8 on June 06, 2011, 07:11:04 PM
Deleted By User
Title: Re: Please Help!
Post by: soninja8 on June 06, 2011, 07:18:28 PM
Wait, I think I might have gotten it, It produced a Photovore_v1.hex file....Is this it?
:1000000012C021C020C01FC01EC01DC01CC01BC00C
:100010001AC019C018C017C016C015C020C213C01E
:1000200012C011C010C011241FBECFE5D4E0DEBF46
:10003000CDBF10E0A0E6B0E001C01D92A136B1072F
:10004000E1F7AED021C2DCCFDF93CF93CDB7DEB7DF
:10005000E4E3F0E01082E5E3F0E01082E1E3F0E0B9
:100060008FEF8083E7E3F0E087EC8083CF91DF912F
:100070000895DF93CF9300D000D0CDB7DEB769836A
:100080007A838B839C830BC089819A81AB81BC81ED
:100090000197A109B10989839A83AB83BC838981C4
:1000A0009A81AB81BC810097A105B10569F70F90DA
:1000B0000F900F900F90CF91DF910895DF93CF9322
:1000C000CDB7DEB7A2E3B0E0E2E3F0E080818F7E5F
:1000D0008C93CF91DF910895DF93CF93CDB7DEB7A7
:1000E000A2E3B0E0E2E3F0E0808180618C93CF9105
:1000F000DF910895DF93CF9300D000D0CDB7DEB766
:1001000069837A838B839C83A2E3B0E0E2E3F0E02F
:10011000808181608C9389819A81AB81BC81BC0193
:10012000CD01A7DFA2E3B0E0E2E3F0E080818E7FC3
:100130008C9368EC70E080E090E09BDF0F900F9074
:100140000F900F90CF91DF910895DF93CF9300D060
:1001500000D0CDB7DEB769837A838B839C83A2E31B
:10016000B0E0E2E3F0E0808182608C9389819A8143
:10017000AB81BC81BC01CD017CDFA2E3B0E0E2E356
:10018000F0E080818D7F8C9368EC70E080E090E0FF
:1001900070DF0F900F900F900F90CF91DF91089527
:1001A000DF93CF9300D000D000D0CDB7DEB71E8252
:1001B0001D821C821B8288E090E09A83898344DF41
:1001C0005BD085E098D081E0AAD086DF85E037D18A
:1001D000882F90E09E838D8384E031D1882F90E03A
:1001E0009C838B832D813E818B819C818217930719
:1001F000B4F42D813E818B819C81281B390B898130
:100200009A81821793075CF46CE270E080E090E0E2
:1002100071DF6CE270E080E090E097DF27C02B8117
:100220003C818D819E8182179307B4F42B813C81A0
:100230008D819E81281B390B89819A8182179307B2
:100240005CF469E170E080E090E054DF69E170E027
:1002500080E090E07ADF0AC069E170E080E090E041
:1002600049DF6CE270E080E090E06FDF64EF71E006
:1002700080E090E0FEDEAACFDF93CF93CDB7DEB76C
:10028000A6E2B0E0E6E2F0E0808180688C93A6E22E
:10029000B0E0E6E2F0E080818F7D8C9386E02BD0A9
:1002A00081E03DD0A7E2B0E0E7E2F0E080818F7D21
:1002B0008C93A6E2B0E0E6E2F0E0808188608C9367
:1002C000109260007894CF91DF910895DF93CF93DF
:1002D000CDB7DEB7A6E2B0E0E6E2F0E08081877F4E
:1002E0008C93A6E2B0E0E6E2F0E080818F778C9319
:1002F000CF91DF910895DF93CF930F92CDB7DEB703
:100300008983A6E2B0E0E6E2F0E08081982F987F52
:100310008981892B8C930F90CF91DF910895DF9382
:10032000CF930F92CDB7DEB78983A7E2B0E0E7E2C3
:10033000F0E08081282F2F738981882F90E000249E
:10034000969587950794969587950794982F802D75
:10035000822B8C930F90CF91DF910895DF93CF93F1
:100360000F92CDB7DEB78983A7E2B0E0E7E2F0E015
:100370008081982F907E89818F71892B8C930F902B
:10038000CF91DF910895DF93CF93CDB7DEB7A6E28B
:10039000B0E0E6E2F0E0808180618C93A6E2B0E01C
:1003A000E6E2F0E0808180648C93CF91DF91089544
:1003B000DF93CF93CDB7DEB7E6E2F0E080818074C3
:1003C000CF91DF910895DF93CF930F92CDB7DEB732
:1003D000898310926000A7E2B0E0E7E2F0E080815C
:1003E000982F907E89818F71892B8C93A6E2B0E043
:1003F000E6E2F0E0808180618C93A6E2B0E0E6E284
:10040000F0E0808180648C93E6E2F0E08081882FC8
:1004100090E0807490700097B9F7E4E2F0E080819A
:10042000282F30E0E5E2F0E08081882F90E0982FDF
:100430008827822B932B0F90CF91DF910895DF9324
:10044000CF930F92CDB7DEB789838981BCDF9695B4
:100450008795969587950F90CF91DF9108951F927C
:100460000F920FB60F9211248F93DF93CF93CDB7D6
:10047000DEB78FEF80936000CF91DF918F910F9067
:0C0480000FBE0F901F901895F894FFCF4E
:00000001FF
Title: Re: Please Help!
Post by: Gertlex on June 06, 2011, 10:36:13 PM
It's a hex file, therefore it's not human-readable.

Yes.

When I asked where that file was, I meant what folder, but whatever...
Title: Re: Please Help!
Post by: adanvasco on June 06, 2011, 11:27:13 PM
You got it!
Title: Re: Please Help!
Post by: soninja8 on June 07, 2011, 01:47:17 AM
Yeah it works on my robot....it follows light, but I still have to fine out  why one servo is going faster than the other when it senses the same amount of light...
Thanks so much!!

For all the people doing this who might get stuck on the same problem: delete the photovore_v1.hex that is in the file provided by admin that contains all the resources to make the real photovore_v1.hex file......what it does is it prevents avr studio from thinking its just a copy....
Title: Re: Please Help!
Post by: brainwave on June 09, 2011, 02:04:03 AM
and next time....choose a better subject that 'please help'!!!!