Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   The download it does nothing (http://www.chiefdelphi.com/forums/showthread.php?t=80280)

unobtainium-42 15-01-2010 21:39

The download it does nothing
 
I was pleasantly surprised this year to find that WindRiver (seems to) be working properly. I have some problems that might/might not be related to Wind River.

The sample projects and my alterations compile :) and the FRC downloader seems properly configured with team number & .out file. When I use download it seems to finish successfully. But when I reset the robot, the code hasn't changed. Any idea why it would do that?

I have also properly configured the camera and connected it to the cRIO but the little yellow light on the Ethernet port does not blink and nothing shows up on-screen. Does the robot code need to activate the camera somehow? If so, the previous problem would keep me from finding out. I know almost nothing about the camera and my teammates want it to align the robot for this year's game ::ouch::

Also, why does the Camera to dashboard example not produce a .out file?

bradleat 16-01-2010 02:07

Re: The download it does nothing
 
I have some of these same problems, although I cannot debug anything either. But some builds don't produce a .out file and the FIRST downloader does nothing. I am going to try a different computer soon

keehun 16-01-2010 02:15

Re: The download it does nothing
 
It took me a very very long time and the setup seems to be very fragile, at least to me. For like the first couple hours of hair-pulling, I realized that it was "Downloading To" a localhost connection that you can see in the lower-left corner. I honestly can't recall what fixed it but your first try may be to remove that localhost connection and only have the robot connection. I will try to look in to it more.

unobtainium-42 16-01-2010 17:54

Re: The download it does nothing
 
I deleted the Local Host but it didn't fix the problem. I did some more work today that seemed to confirm the download wasn't working. I tried to use the Run and Debug configurations, but they terminated instantly and the Robot Code light turned red. Interestingly, when I ran the debugger for one project it stopped in a different one :ahh:

I agree, the setup is very fragile. Why is it that every year I have to jump through dozens of hoops just to get this thing to work? Is this some sort of plot by the GDC?

byteit101 16-01-2010 17:57

Re: The download it does nothing
 
Did you set up the Remote System as per the C programming Manual? http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf

garyk 16-01-2010 19:34

Re: The download it does nothing
 
Quote:

Originally Posted by unobtainium-42 (Post 900102)
I was pleasantly surprised this year to find that WindRiver (seems to) be working properly. I have some problems that might/might not be related to Wind River.

The sample projects and my alterations compile :) and the FRC downloader seems properly configured with team number & .out file. When I use download it seems to finish successfully. But when I reset the robot, the code hasn't changed. Any idea why it would do that?

I have also properly configured the camera and connected it to the cRIO but the little yellow light on the Ethernet port does not blink and nothing shows up on-screen. Does the robot code need to activate the camera somehow? If so, the previous problem would keep me from finding out. I know almost nothing about the camera and my teammates want it to align the robot for this year's game ::ouch::

Also, why does the Camera to dashboard example not produce a .out file?

Make sure you are downloading the correct *.out file - if you are downloading the same (wrong) one, the symptom will be that the code never changes.

Please see http://www.chiefdelphi.com/forums/sh...0&postcount=19 and scroll down to "But, we're not done" to be sure you are getting the correct file.

unobtainium-42 16-01-2010 23:00

Re: The download it does nothing
 
It was worth a check. Yes, the file path is correct.

Run still does nothing.

I re-imaged the cRIO again and it has no robot code. Let's see if I can change that.

unobtainium-42 16-01-2010 23:32

Re: The download it does nothing
 
I used the C:/windriver workspace with only one project and it works. Auto-completion also started working. Before, I was using a workspace on the D:/ drive.

Run/Debug still halt instantly. Here's the trace from the Console Out:


Code:

Break at 0x0219d2c4: FRC_UserProgram_StartupLibraryInit  Task: 0x2217cf8 (tFRC_
UserProgram_StartupLibraryInit)
WPILib was compiled from SVN revision 2069
task 0x218a5c0 (FRC_DriverStation) deleted: errno=0 (0) status=0 (0)
task 0x1d62d08 (FRC_RobotTask) deleted: errno=0 (0) status=0 (0)
!!!  Error: Default code was still running... It was unloaded for you... Please
 try again.
task 0x2217cf8 (tFRC_UserProgram_StartupLibraryInit) deleted: errno=0 (0) status
=0 (0)

Using "Undeploy" first did nothing. What's going on?

byteit101 17-01-2010 09:36

Re: The download it does nothing
 
Quote:

Error: Default code was still running... It was unloaded for you... Please
try again
Did you reboot? there is code running, but you need to reboot between sessions


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

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