Go to Post If there's one bit of advice I can give, its never underestimate the power of a hurricane. - Joshua May [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-12-2008, 07:41
programmr's Avatar
programmr programmr is offline
Registered User
AKA: Face
FRC #0522
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Staten Island, NY
Posts: 83
programmr is a jewel in the roughprogrammr is a jewel in the roughprogrammr is a jewel in the rough
Send a message via AIM to programmr
Debug Windriver issue.....

Hello, two problems i am having are 1) on the DS it says Battery: No Code and 2) when i try debugging the cRIO i get a nice screen of error messages "Unresolved Symbols on Download Module. On downloading module '/IterativeDemo/PPC603gnu/IterativeDemo/Debug/IterativeDemo.out' on target 'VxWorks6x_10.5.22.2-MPC5200', the module symbols could not be fully resolved. and then i get a nice list of unresolved symbols. What does this mean? Any help would be greatly appreciated.
__________________
"I would love to change the world but no one will give me the source code"
Reply With Quote
  #2   Spotlight this post!  
Unread 18-12-2008, 11:28
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Re: Debug Windriver issue.....

Funny you should ask this question, we had the same error pop up yesterday. When VxWorks loads a kernel module (ie your robot code) it makes sure that every function that is called by your code exists somewhere in the running kernel or the previously loaded modules. This check is not done when the code is built or linked.

Look at each symbol it is complaining about and ensure that you haven't made a typo and that the method is actually implemented in your code. Our problem yesterday was that the base class didn't have a method implemented.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-12-2008, 12:28
programmr's Avatar
programmr programmr is offline
Registered User
AKA: Face
FRC #0522
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Staten Island, NY
Posts: 83
programmr is a jewel in the roughprogrammr is a jewel in the roughprogrammr is a jewel in the rough
Send a message via AIM to programmr
Re: Debug Windriver issue.....

but i haven't edited the code at all. I just used the template, built it, and it built with no errors. Does this mean i have to actually write code for it to work, instead of just building and downloading the template?
__________________
"I would love to change the world but no one will give me the source code"
Reply With Quote
  #4   Spotlight this post!  
Unread 18-12-2008, 12:37
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Debug Windriver issue.....

Quote:
Originally Posted by programmr View Post
Hello, two problems i am having are 1) on the DS it says Battery: No Code and 2) when i try debugging the cRIO i get a nice screen of error messages...
Did you reimage the cRIO to support C++ debugging?
Reply With Quote
  #5   Spotlight this post!  
Unread 18-12-2008, 13:23
programmr's Avatar
programmr programmr is offline
Registered User
AKA: Face
FRC #0522
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Staten Island, NY
Posts: 83
programmr is a jewel in the roughprogrammr is a jewel in the roughprogrammr is a jewel in the rough
Send a message via AIM to programmr
Re: Debug Windriver issue.....

yes i did, am i doing something wrong somewhere?
__________________
"I would love to change the world but no one will give me the source code"
Reply With Quote
  #6   Spotlight this post!  
Unread 18-12-2008, 14:30
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Debug Windriver issue.....

To elaborate more on the problem that Mike referred to, we had something like this
Code:
class A
{
public:
    virtual void func(void);
};

class B : public A
{
   virtual void func(void);
};

void B::func(void)
{
}
EDIT**Dave corrected me below. See his description along with my original text**

What template are you using? What are the symbols that it complains about? Maybe posting your source and headers may help us help you.

Last edited by Dave Scheck : 18-12-2008 at 16:50.
Reply With Quote
  #7   Spotlight this post!  
Unread 18-12-2008, 15:34
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Debug Windriver issue.....

Quote:
Originally Posted by Dave Scheck View Post
Since we never created a definition for A::func(), the operating system had problems creating the virtual function table and crashed the program.
That's not quite correct... since A::func() was not implemented, the vxWorks loader could not load our compiled program because it couldn't resolve all the symbols. The compiled .out file is basically a dynamically-linked library (DLL), and one of the jobs of the vxWorks loader is to resolve all the symbols in the .out file before it starts it. It couldn't do that so it presented an error message and gave up trying to load it. That left the Rio running fine but with no user program on it (DS says "No Code"). Nothing crashed.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-12-2008, 18:44
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 591
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Debug Windriver issue.....

Quote:
Originally Posted by programmr View Post
On downloading module '/IterativeDemo/PPC603gnu/IterativeDemo/Debug/IterativeDemo.out' on target 'VxWorks6x_10.5.22.2-MPC5200', the module symbols could not be fully resolved. and then i get a nice list of unresolved symbols. What does this mean? Any help would be greatly appreciated.
Another place where you can get "nice" list if unresolved symbols is if the cRIO image version doesn't match the version of the library you are using. All the FPGA functions are in a namespace that is tied to the version of the FPGA image. When you see a giant list of ChipObject symbols undefined, it's because the program loader is looking for a newer (or older) version of those functions in the cRIO image.

If that's what you're seeing make sure that the cRIO is flashed with the same version of code as the library you're using for your C/C++ program. We are trying to keep the releases in sync so at any point in time, the two should match. And we'll say on the download page what is required for the C/C++ library.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #9   Spotlight this post!  
Unread 17-01-2009, 17:29
wadehas wadehas is offline
Registered User
FRC #1258
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Seattle
Posts: 8
wadehas is an unknown quantity at this point
Re: Debug Windriver issue.....

In trying to build the simple robot example we are seeing this issue... Unresolved symbols for nFPGA things.

How can we verify that we have matching versions of the library and the firmware?

Thanks,

-Wade Hasbrouck
Reply With Quote
  #10   Spotlight this post!  
Unread 05-02-2011, 15:13
Gmzcarlos Gmzcarlos is offline
Registered User
FRC #3583
 
Join Date: Feb 2011
Location: Texas
Posts: 8
Gmzcarlos is an unknown quantity at this point
Re: Debug Windriver issue.....

we are experiencing the same errors. WE upgraded the cRio to v20, but are still getting the same "unresolved modules" issues.
We are using the simpleRobot template without any modifications
Reply With Quote
  #11   Spotlight this post!  
Unread 05-02-2011, 21:19
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Debug Windriver issue.....

Quote:
Originally Posted by Gmzcarlos View Post
WE upgraded the cRio to v20, but are still getting the same "unresolved modules" issues.
The proper version of the cRIO image for 2011 started out at v25.

A new programming update was released a couple of days ago, with cRIO image v27.
Reply With Quote
  #12   Spotlight this post!  
Unread 05-02-2011, 22:15
Gmzcarlos Gmzcarlos is offline
Registered User
FRC #3583
 
Join Date: Feb 2011
Location: Texas
Posts: 8
Gmzcarlos is an unknown quantity at this point
Re: Debug Windriver issue.....

Thank you Alan. I found the new cRio version and will be trying it tomorrow. I'll report back the results.

In case anyone needs it, this is the link to the new CRio version

http://firstforge.wpi.edu/sf/go/proj...1_0_for_2011_f
Reply With Quote
  #13   Spotlight this post!  
Unread 06-02-2011, 13:47
Gmzcarlos Gmzcarlos is offline
Registered User
FRC #3583
 
Join Date: Feb 2011
Location: Texas
Posts: 8
Gmzcarlos is an unknown quantity at this point
Re: Debug Windriver issue.....

Ok, I updated cRio to v27. The SimpleRobot program compiles and loads correctly. So at least we are moving forward. Now, I have a different issue; nothing happens when the program runs.

I open the Driver Station and in the Diagnostics window I get the "Attempting to reuse an allocated resource" .... Now to look at others posts in the site for solution to this problem
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone install windriver on linux yet? keen101 Programming 34 10-02-2010 20:41
Strange WindRiver Error Maxpower57 Programming 1 10-12-2008 21:41
windriver projects nickmagus Programming 4 01-12-2008 23:29
Windriver Workbench Demo Videos neutrino15 Programming 8 27-11-2008 00:06


All times are GMT -5. The time now is 02:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi