Go to Post Act humble, avoid hubris, and post widely and thou shalt receivith postive rep. ;) - artdutra04 [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-14-2009, 09:39 PM
JHale JHale is offline
Registered User
no team
 
Join Date: Feb 2007
Rookie Year: 2008
Location: Nowhere
Posts: 14
JHale is an unknown quantity at this point
[Windriver] Getting error on run: Download Failed

Hey all!

I am having a lot of trouble getting Windriver to work. Everything was going good until I tried to run the code.

I clicked the little debug thing, setup the insertion point as per the manual, and hit Run. I get this error:

Code:
Download failed.

Module: C:/WindRiver/workspace/CSimpleTemplate
Target:  [info about our controller]

Possibly Caused by:  Unknown File Error: C:/WindRiver/workspace/CSimpleTemplate
It does the same thing regardless of which example we try to use.

Any help is appreciated!!
Reply With Quote
  #2   Spotlight this post!  
Unread 01-14-2009, 09:46 PM
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: [Windriver] Getting error on run: Download Failed

Download Failed Means that is did not connect to the bot.
Did you:
connect to the system in the (default location) lower left target sys box?
set the download options (enter FRC_UserCode.... and {Options=0x1000010}?
if not the second one, right click on the project on the left, and Debug/Run kernel task, and put in the info in the C_Programming_Guide.pdf (i bileve that is the name) specifies.
If you did both, can you ping the cRIO?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #3   Spotlight this post!  
Unread 01-14-2009, 09:56 PM
JHale JHale is offline
Registered User
no team
 
Join Date: Feb 2007
Rookie Year: 2008
Location: Nowhere
Posts: 14
JHale is an unknown quantity at this point
Re: [Windriver] Getting error on run: Download Failed

I don't know what you mean by ping the cRIO (with cmd prmt?).

I do connect and disconnect just fine.

Everything is set up including the advance options string. (Although it didn't appear in the manual). Am I reading an old manual?

Still no luck though.

ping cmd:

Code:
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\James>ping 10.17.99.2

Pinging 10.17.99.2 with 32 bytes of data:

Reply from 10.17.99.2: bytes=32 time<1ms TTL=64
Reply from 10.17.99.2: bytes=32 time<1ms TTL=64
Reply from 10.17.99.2: bytes=32 time<1ms TTL=64
Reply from 10.17.99.2: bytes=32 time<1ms TTL=64

Ping statistics for 10.17.99.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

Last edited by JHale : 01-14-2009 at 09:58 PM.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-14-2009, 10:09 PM
JHale JHale is offline
Registered User
no team
 
Join Date: Feb 2007
Rookie Year: 2008
Location: Nowhere
Posts: 14
JHale is an unknown quantity at this point
Re: [Windriver] Getting error on run: Download Failed

Getting further.

I no longer get the unknown error, but now I get a massive list of unresolved symbols.

Am I missing some include path?
Reply With Quote
  #5   Spotlight this post!  
Unread 01-15-2009, 07:42 AM
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: [Windriver] Getting error on run: Download Failed

Quote:
Originally Posted by JHale View Post
Getting further.

I no longer get the unknown error, but now I get a massive list of unresolved symbols.

Am I missing some include path?
When you download a module, vxWorks needs to connect all the unresolved references in your module.
For example, if your module calls a function named 'foo', then vxWorks must be able to find an address for 'foo'.
The function 'foo' might be part of the vxWorks kernel or it might come from other modules that have already been downloaded.
Include paths are a compile time issue -- where does the compiler look for header files.
Unresolved symbols is a link time issue (in this case dynamic linking) -- the linker is unable to find some data object or function.
Of course, with C++ name mangling, it can be tedious to figure out where the unresolved symbols are supposed to come from.
It may be that you need to statically link your module to some library.

Last edited by gvarndell : 01-15-2009 at 07:50 AM.
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
Getting Familiar with Programming in WindRiver kyungjin C/C++ 35 01-17-2009 01:04 PM
Getting Live Feed from Axis Camera in Windriver Inoperational C/C++ 8 01-15-2009 01:21 AM
Getting Started in Windriver C/C++ 7-11number1 C/C++ 3 01-10-2009 09:46 PM
Strange WindRiver Error Maxpower57 Programming 1 12-10-2008 09:41 PM
Basic Run Error BBFIRSTCHICK Programming 10 04-02-2003 10:43 PM


All times are GMT -5. The time now is 08:32 AM.

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