Go to Post The trick is to train the rest of the team to blame electrical instead. - Al3+ [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 22-01-2005, 08:32
jskene jskene is offline
Registered User
None #0612
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Chantilly Virginia
Posts: 153
jskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to behold
Problem running compiled code

When we make any change to the default source code, compile it, and upload it to the robot, it will not run. The robot controller just hangs, with lights flickering on and off. The upload seems to go properly, with the correct acknowledgement messages etc.

When we upload the unmodified default code, everything works properly (except that the robot complains that it cannot find the camera), so the connection between the computer and robot works just fine.

We are using the latest version of the C18 compiler.

Any ideas?
  #2   Spotlight this post!  
Unread 22-01-2005, 10:07
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Problem running compiled code

It's really hard to know what "any" change is. Can you give examples?
  #3   Spotlight this post!  
Unread 22-01-2005, 11:38
jskene jskene is offline
Registered User
None #0612
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Chantilly Virginia
Posts: 153
jskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to beholdjskene is a splendid one to behold
Re: Problem running compiled code

... adding a comma to a comment line causes this problem.

It would appear that the compiler is not producing operable code, even though it gives no error messages.
  #4   Spotlight this post!  
Unread 22-01-2005, 13:34
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Problem running compiled code

I was actually having the same trouble, except that I assumed that the problem was because I was using WINE under Linux. Maybe it's not WINE's fault...

Has anyone gotten the new 2.4 compiler to work?

jskene: Could you post a md5sum of the .hex file that the linker produces without any changes to the code? I want to see if we get the same output...
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
  #5   Spotlight this post!  
Unread 22-01-2005, 16:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,862
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: Problem running compiled code

Most problems of this sort that I've run into have been due to installation mistakes, diverging from the installation defaults, or reordering/relocating folders. For instance, the MPLAB toolsuite setup.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 22-01-2005, 19:56
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Problem running compiled code

Quote:
Originally Posted by steven114
I was actually having the same trouble, except that I assumed that the problem was because I was using WINE under Linux. Maybe it's not WINE's fault...

Has anyone gotten the new 2.4 compiler to work?

jskene: Could you post a md5sum of the .hex file that the linker produces without any changes to the code? I want to see if we get the same output...
Yes, I have the new compiler working 100% correctly.

(O:\Source\FIRST\FrcCode2005v2.4) md5sum FrcCode.hex
9d4c589d007f4f1df0cd8ca0eb634269 *FrcCode.hex
  #7   Spotlight this post!  
Unread 22-01-2005, 21:29
Ralph Lambert Ralph Lambert is offline
Mentor - Team 1094
None #1094 (Channel Cats)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2002
Location: O'Fallon, MO
Posts: 37
Ralph Lambert will become famous soon enoughRalph Lambert will become famous soon enough
Re: Problem running compiled code

We are having exactly the same problem as jskene.
  #8   Spotlight this post!  
Unread 22-01-2005, 21: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: Problem running compiled code

Quote:
Originally Posted by jskene
It would appear that the compiler is not producing operable code, even though it gives no error messages.
Double-check to make sure you've selected the correct target device. If you're accidentally compiling the code for something other than a PIC18F8520, it won't run on the RC.
  #9   Spotlight this post!  
Unread 22-01-2005, 21:38
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,281
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Problem running compiled code

I had a problem on my home computer, however I re downloaded and installed the compiler at our office where we do or work and it compiles downloads and runs fine I would say do a full un install and then start over, It can't hurt to try
  #10   Spotlight this post!  
Unread 23-01-2005, 21:11
agentfat2004 agentfat2004 is offline
Registered User
#0335
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 2
agentfat2004 is an unknown quantity at this point
Re: Problem running compiled code

I have the same problem with my controller.
Simple as declaring a variable messes with the controller. Writing a code works until the controller is reset or powered off. Then the program state gets messed up
  #11   Spotlight this post!  
Unread 23-01-2005, 21:13
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Problem running compiled code

Hmm. Apparently it only happens on the EDU controller for me. The full-sized one works great.
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
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
Kevin Watson's Kick-off Demo Code! Mr. Lim Programming 27 22-01-2005 03:38
Some Blank Code That you Know works chantilly_team Programming 5 18-01-2005 22:00
Strange IR sensor movement with default tracker code wun Programming 5 19-03-2004 10:51
One final fairly massive problem with the code... authgeek1218 Programming 5 19-02-2003 16:51
Ok one problem cantwell03 Programming 3 13-02-2003 07:28


All times are GMT -5. The time now is 13:10.

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