|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
Re: Compressor Code causes No Robot Code Error
Quote:
I actually did a dump of the relocation data from the elf file after building it and there were a bunch of RELOC_24 in it. After I added -mlongcall and rebuilt, they were gone -- replaced by pairs of RELOC_16 as you would expect. The only thing I'm not 100% certain is what sample project I used. I'll have to check my 'robotics' computer when I get a chance and see which sample it was. |
|
#17
|
||||
|
||||
|
Re: Compressor Code causes No Robot Code Error
The example I used was Iterative Robot Demo Main Program. We just performed the magic -mlongcall chant and did the appropriate ritual and the robot now functions as expected.
We are trying to figure out why our encoders themselves don't give us data, but we're just starting that. We are checking our wiring first again, and checking the forums, and then checking the code that's already posted above. The good news is that the Compressor code performed flawlessly after we got the Reallocation error gone. Thanks, and any suggestions on encoders would be appreciated though I may start a new post for that after we give it a good effort tonight. |
|
#18
|
|||
|
|||
|
Re: Compressor Code causes No Robot Code Error
Really the only thing I can think of off hand would be if either one of the projects doesn't have that option set by default and that's that you started with... or that you created the project from scratch. That option should have been set in all examples since last year.
|
|
#19
|
|||
|
|||
|
Re: Compressor Code causes No Robot Code Error
Quote:
This is the list of projects that I see in source control today: 2010ImageDemo BuiltinDefaultCode CameraDemo CSimpleTemplate DashboardDataExample DefaultRobot DriverStationLCDText GyroSample SimpleTemplate SimpleTracker TwoColorTrackDemo Anything you have in addition to these is probably very obsolete. If I had a recommendation, it would be to remove all of the projects in the C:\WindRiver\workspace\WorkbenchUpdate\vxworks-6.3\target\src\demo directory and then install the C++ update. Quote:
|
|
#20
|
||||
|
||||
|
Re: Compressor Code causes No Robot Code Error
Quote:
As for the code, I moved my entire last years Windriver directory over to a new directory named Windriver 2009 when I installed the new Windriver for this year. I wouldn't have expected it to add sample projects across directories like that. I know my project is up to date, but I will check it out tomorrow. I had a problem with my updater not installing correctly and had to move the files from it by hand after extracting the data manually, is it possible that a correctly running updater deletes projects that are installed by Windriver by default and since all I did was add due to installer error that it left the IterativeRobot Demo I was using? I would like to thank everyone for all their help. Tonight was a good night, one that we needed as we were getting quite distressed. |
|
#21
|
||||
|
||||
|
Re: Compressor Code causes No Robot Code Error
jhersh, We are getting this same relocation error, but only when the code has been deployed; we are able to debug the code without an apparent issues. Does this make any sense to you? Is there more than one place where this needs to be set (ie. are there separate settings used for the build or dynamic linking when it is debugged vs. when it is downloaded)?
|
|
#22
|
|||
|
|||
|
Re: Compressor Code causes No Robot Code Error
Quote:
|
|
#23
|
||||
|
||||
|
Re: Compressor Code causes No Robot Code Error
I believe that we are deploying the debug version of the code... the path to the .out file is in the debug subdirectory under the project directory.
Is it likely that the dynamic linking is handled differently on the cRIO during debug vs. when the code is deployed? Regardless, I plan to try this build option tonight and I will let you know how it works out. Thanks for your help. |
|
#24
|
|||
|
|||
|
Re: Compressor Code causes No Robot Code Error
Quote:
Quote:
Chances are you are just getting lucky when it works in debug and happens to align in a 24-bit window. Triple check that the -mlongcall flag is getting used. You should see it in the Build Console on each line (for compiling each file) as an option to "ccppc". -Joe |
|
#25
|
||||
|
||||
|
Re: Compressor Code causes No Robot Code Error
Thank you for your help... this fix worked!!!
|
|
#26
|
||||
|
||||
|
Re: Compressor Code causes No Robot Code Error
Quote:
The answer is yes. When your DKM is loaded by the debugger, it will almost certainly be loaded into a different memory region than if it is loaded by the in-kernel facilities. Edit: of course, if the module is compiled long call, it won't matter. If it's not, you have luck-of-the-draw. Last edited by gvarndell : 03-02-2010 at 10:17. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| User code won't download/run-possible causes? | nathanww | C/C++ | 3 | 21-01-2009 11:00 |
| Code error causing robot to go into programming mode. | MJD | Programming | 14 | 30-10-2007 14:21 |
| Error in code light on, trouble finding error | Bryan Herbst | Programming | 16 | 12-10-2007 21:59 |
| Code error on RC after downloading "bells and whistles" version of Kevins camera code | DanDon | Programming | 6 | 10-01-2006 18:07 |
| Compressor Code | gacp | Programming | 2 | 19-02-2005 16:18 |