Go to Post I am the Evil Empire of FIRST!!! - Andy Grady [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 05-02-2007, 17:27
CPress CPress is offline
2008 Team Captain
AKA: Matt Peterson
FRC #0754
Team Role: Electrical
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Matinette, WI
Posts: 26
CPress has a spectacular aura aboutCPress has a spectacular aura about
URGENT - Code Violation

Hello,

I was trying to program some things for this years robot with 2005 RC. We first originally loaded the default 2007 code onto it and it worked fine. Then we tinkered with that code and it worked after recompiling it and put it on the RC. Now, I am on a different computer using the orange VEX USB->Serial converter cable (my laptop doesn't have a serial port) and I tried to load some code I was working on and the build worked, no errors in mplab, but when I put it on the RC it says "Code Error" on the Operators interface and "Code Violation" on the RC itself. I tried to load the Default 2007 code back on to it and got the same thing. Ive been looking for about 2 hrs now and still haven't found anything at all. I'm hoping you guys can help me out.

- Matt (Team 754)
  #2   Spotlight this post!  
Unread 05-02-2007, 18:16
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: URGENT - Code Violation

Remember that the 2005 RC had a different processor than the 2006/2007 RCs.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #3   Spotlight this post!  
Unread 05-02-2007, 18:19
Jeff 801's Avatar
Jeff 801 Jeff 801 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jun 2006
Rookie Year: 2004
Location: Florida
Posts: 346
Jeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond reputeJeff 801 has a reputation beyond repute
Re: URGENT - Code Violation

also the numbers after like the pwm are in a different order
  #4   Spotlight this post!  
Unread 05-02-2007, 21:10
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: URGENT - Code Violation

Mike is right. You can't run a program compiled for the 2006 or 2007 RC on a 2004 or 2005 RC. See the "Using_a_2005_FRC.txt" file that is included with the 2007 default code for instructions on recompiling it to work.
  #5   Spotlight this post!  
Unread 05-02-2007, 23:40
kitscuzz's Avatar
kitscuzz kitscuzz is offline
Not alotta posts
AKA: Kit
FRC #1389 (Worst Case Scenario)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Home
Posts: 47
kitscuzz will become famous soon enough
Re: URGENT - Code Violation

And beyond the different proccesor, there's also less memory. There is an option in all the 2006-2007 code that enables the full usage of the memory which will quickly cause errors if not disabled in the project options.

Last edited by kitscuzz : 06-02-2007 at 00:00.
  #6   Spotlight this post!  
Unread 09-02-2007, 23:26
taberski taberski is offline
Registered User
FRC #1619 (Up-a-Creek)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Longmont, CO
Posts: 6
taberski is an unknown quantity at this point
Re: URGENT - Code Violation

I ran into the same problem today!

We're using a 2005 RC controller for some testing in an attempt to divide and conquer. I modified Kevin Watson's (frc_camera_21) to run on the 2005 RC to do some testing (following the supplied instructions for the device, linker and library) and has a successful day (this session was at home using a desktop computer with a real serial port). I demonstrated my progress to the team utilizing a laptop with a serial port.

Another member of the software team need to use this controller to test a separate piece of the software and started with the same code base. He kept getting the same errors as described above. In his case, he was using a laptop with a USB-to-Serial adapter (which he's been using for a while).

Anyway, I backed the debug process all the way down to downloading the hex file that I had successfully run earlier in the day with the same errors! By this point our work session was over until morning, so I have no platform to work with until the morning :-(

Any insight into what might be happening or what I should look for is greatly appreciated. It's as if we broke something!

Thank you,

Kevin Taberski
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
Modified default code gives "code violation" scottmso Programming 8 10-02-2006 23:17
Code Violation when testing chris_chen Programming 0 24-01-2006 20:28
Code violation using Hall effect sensor pickle Programming 9 19-01-2005 00:10
code violation...need help Vince lau Programming 4 20-02-2004 16:31
Gracious Professionalism Violation Gui Cavalcanti Championship Event 10 01-05-2002 11:54


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

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