Go to Post We excel at making our robots nice and colorful. - AlecMataloni [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2009, 13:26
jnutzmann jnutzmann is offline
Nutzy
FRC #2606
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rosemount High School
Posts: 5
jnutzmann is an unknown quantity at this point
Downloading code DS says "No Code"

We successfully completed all the benchtop testing, updated the Driver's Station firmware with windriver and reimaged the cRIO.

We are attempting to download just the basic code (no modifications), and are running into some issues. First, we download the code, and we noticed that no "completed" or "deployed" message is shown, so we were unsure if it was finished.

We can power it on, get it connected and it will work. But then when we try to download new code the DS displays "Battery: No Code," and the joysticks do nothing.

__________________
__________________
Jonathan Nutzmann
Team 2606 Mentor
Institute of Technology
University of Minnesota
Undergraduate
  #2   Spotlight this post!  
Unread 24-01-2009, 13:33
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Re: Downloading code DS says "No Code"

When we download the code, we download it with WindRiver and then reset the robot. Then, on the DS, it should display "Battery: No Comms" for about ten seconds. Then, for another few seconds, it will display "Battery: No Code". Then it displays "Battery: 0.0V" for us. When that message is up, the joysticks start working.
  #3   Spotlight this post!  
Unread 24-01-2009, 13:37
jnutzmann jnutzmann is offline
Nutzy
FRC #2606
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rosemount High School
Posts: 5
jnutzmann is an unknown quantity at this point
Re: Downloading code DS says "No Code"

Quote:
Originally Posted by KRibordy View Post
Then it displays "Battery: 0.0V" for us. When that message is up, the joysticks start working.
For us it just stays on "No code" and never displays a Battery voltage and the joysticks dont work.
__________________
Jonathan Nutzmann
Team 2606 Mentor
Institute of Technology
University of Minnesota
Undergraduate
  #4   Spotlight this post!  
Unread 24-01-2009, 13:52
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Re: Downloading code DS says "No Code"

You are resetting the robot after downloading the code, right?

And you're downloading the .out file to the robot, not the .cpp file, right?
  #5   Spotlight this post!  
Unread 24-01-2009, 13:54
jnutzmann jnutzmann is offline
Nutzy
FRC #2606
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rosemount High School
Posts: 5
jnutzmann is an unknown quantity at this point
Re: Downloading code DS says "No Code"

Yes we're resetting the robot and downloading the correct file
__________________
Jonathan Nutzmann
Team 2606 Mentor
Institute of Technology
University of Minnesota
Undergraduate
  #6   Spotlight this post!  
Unread 24-01-2009, 17:05
C222's Avatar
C222 C222 is offline
Computer Science Major
FRC #0852 (Athenian Robotics Collective)
Team Role: Alumni
 
Join Date: Mar 2007
Rookie Year: 2007
Location: California
Posts: 22
C222 is on a distinguished road
Re: Downloading code DS says "No Code"

We've had this problem a few times with our bot. It's usefull to have a serial connection to a terminal on the programming computer. During boot-up, if it says it "unloads" your code, there is probably part of the code the cRio didnt like. Generally, for my team, it was because of an "inline" function.
__________________
--=====|-----====|-------====|-------====|----
--=|--------------==|----------==|---------==|---
--=|---------------==|----------==|---------==|--
--=|------------==|----------==|---------==|-----
--=====|-----======|-----======|----======|-
  #7   Spotlight this post!  
Unread 24-01-2009, 19:20
Analog's Avatar
Analog Analog is offline
Registered User
AKA: Bob Most
FRC #2619 (The Charge)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Midland, Michigan
Posts: 53
Analog will become famous soon enoughAnalog will become famous soon enough
Re: Downloading code DS says "No Code"

Quote:
Originally Posted by C222 View Post
We've had this problem a few times with our bot. It's usefull to have a serial connection to a terminal on the programming computer. During boot-up, if it says it "unloads" your code, there is probably part of the code the cRio didnt like. Generally, for my team, it was because of an "inline" function.
Is there a document that tells how to use the serial interface, and what information the interface yields?
  #8   Spotlight this post!  
Unread 24-01-2009, 19:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,855
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Downloading code DS says "No Code"

Directions are found in the Control System Manual Chapter 5 Configuration in section 5.4.1, cRIO Console Serial Connection to Laptop
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 24-01-2009, 20:49
Analog's Avatar
Analog Analog is offline
Registered User
AKA: Bob Most
FRC #2619 (The Charge)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Midland, Michigan
Posts: 53
Analog will become famous soon enoughAnalog will become famous soon enough
Re: Downloading code DS says "No Code"

Quote:
Originally Posted by Mark McLeod View Post
Directions are found in the Control System Manual Chapter 5 Configuration in section 5.4.1, cRIO Console Serial Connection to Laptop
Thanks. There is also a more detailed account at NI for those following this thread:

http://zone.ni.com/devzone/cda/tut/p/id/6537
  #10   Spotlight this post!  
Unread 26-01-2009, 15:54
CrashOverride's Avatar
CrashOverride CrashOverride is offline
Registered User
FRC #1831
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Gilford, NH
Posts: 16
CrashOverride is an unknown quantity at this point
Re: Downloading code DS says "No Code"

One important item that is easily overlooked is that you MUST:

Build your project first, Select the Window menu, Select preferences...,

FIRST Downloader Preferences.
1. Team Number
2. the file to download to the Robot: (This file will have the same name as your project with the extension .out) Browse for this file in the workspace/projectname/(usually Debug) ... directory

Only after you select the correct .out file will your code download. This section does NOT change when you change projects, you must remember to change this setting every time you change to a different project name.
  #11   Spotlight this post!  
Unread 26-01-2009, 16:08
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Downloading code DS says "No Code"

We had a very similar issue before. If the cRio does not like the code, it will display the "No Code" message. Have you updated your WPILIB files yet? There is an update for WindRiver on the FIRST website that will upgrade your library files to the new revision. My understanding is that it might change some of the example projects. If the examples have the wrong code format, it might not be compatible with the cRio updates.

Go here: http://first.wpi.edu/FRC/frcupdates.html and download the workbench updates.

I think that if you can download code your connection and transfer are solid. It just sounds like it's a code problem.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #12   Spotlight this post!  
Unread 27-01-2009, 14:04
Analog's Avatar
Analog Analog is offline
Registered User
AKA: Bob Most
FRC #2619 (The Charge)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Midland, Michigan
Posts: 53
Analog will become famous soon enoughAnalog will become famous soon enough
Re: Downloading code DS says "No Code"

Its not just that it doesn't like the code, or using the wrong file in the download. Use the Rs-232 link to see exactly what the error is. This is most helpful.
Closed Thread


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
Downloading code- DS says "No Code" Bryan Herbst Programming 6 05-01-2009 19:46
"Battery: No Code" after uploading .out file to cRIO knine143 FRC Control System 1 20-12-2008 22:14
Screenshot of "code not understood" or similar error needed! Elgin Clock Programming 3 17-02-2006 22:06
Modified default code gives "code violation" scottmso Programming 8 10-02-2006 23:17
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07


All times are GMT -5. The time now is 21:52.

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