Go to Post Girlfriend? What is that? A rare Pokemon? - DanielPlotas [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 21-01-2006, 18:52
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Easy C, loader problem

After we download code from EasyC to the robot controller we have to press reset for the feedback LEDs to go back to green. The Program State LED remains orange and the RC Mode LED remains red. They are all blinking regularly. Is our code getting properly downloaded onto the robot controller?
  #2   Spotlight this post!  
Unread 21-01-2006, 19:51
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 751
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Easy C, loader problem

What happens if you start a new competition template, and download that into the controller? Don't add anything to the template code and just download it.

What happens then?
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
  #3   Spotlight this post!  
Unread 22-01-2006, 08:07
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Easy C, loader problem

Does the program LED flicker when the software says the program is downloading?
  #4   Spotlight this post!  
Unread 23-01-2006, 07:51
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: Easy C, loader problem

We tried downloading a blank template and the same thing happened. The program LED flickers when the program is downloading. However, when the program should be done downloading it doesn't change color and continues to flicker.
  #5   Spotlight this post!  
Unread 23-01-2006, 07:58
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Easy C, loader problem

Quote:
Originally Posted by gabrielse
We tried downloading a blank template and the same thing happened. The program LED flickers when the program is downloading. However, when the program should be done downloading it doesn't change color and continues to flicker.
Can you try the IFI loader and see if you get the same results? You can look at the location of the .hex file that the EasyC loader is trying to download and download that file with the IFI Loader. That will tell help isolate the problem. Make sure that you close the EasyC loader when using the IFI loader to make sure there are no serial port conflicts.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #6   Spotlight this post!  
Unread 23-01-2006, 09:06
intelitek_Chris intelitek_Chris is offline
Registered User
no team
 
Join Date: Dec 2005
Location: Manchester
Posts: 19
intelitek_Chris will become famous soon enoughintelitek_Chris will become famous soon enough
Re: Easy C, loader problem

What year is your controller from? This may happen with the 2004 Controller, but shouldn't with the newer 2005, or 2006 controllers.
  #7   Spotlight this post!  
Unread 23-01-2006, 10:11
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: Easy C, loader problem

Quote:
Originally Posted by intelitek_Chris
What year is your controller from? This may happen with the 2004 Controller, but shouldn't with the newer 2005, or 2006 controllers.
It is the 2006 controller. Would reinstalling the firmware help? If so, where could I get it?
  #8   Spotlight this post!  
Unread 23-01-2006, 10:55
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 751
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Easy C, loader problem

Quote:
Originally Posted by gabrielse
It is the 2006 controller. Would reinstalling the firmware help? If so, where could I get it?

You can get the Master Code here:
http://www.ifirobotics.com/rc.shtml

Scroll down to the bottom of the page.

If that doesn't fix it, call Ifirobotics SOON. Sounds like a problem to me.
If this is the NEW 2006 controller...
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
  #9   Spotlight this post!  
Unread 23-01-2006, 13:05
intelitek_Chris intelitek_Chris is offline
Registered User
no team
 
Join Date: Dec 2005
Location: Manchester
Posts: 19
intelitek_Chris will become famous soon enoughintelitek_Chris will become famous soon enough
Re: Easy C, loader problem

If, after replacing the master code, you still have problems there are a few other remedies to keep in mind. BTW, you can replace the master code directly from the intelitek loader, by selecting options, and download master code from the loader menu.

I am going to assume that the code you are downloading to the controller works properly after you reset it; I see no reason why it shouldn't. Please let us know if the code does not execute after a reset.

It could be that the serial port you are using is not working 100% correctly. It is entirely possible that your code is downloading at a slightly different speed than it should be, and as a result the controller misses the last bit of information that signs off, and tells the controller that the download is complete. This would probably happen more frequently with laptop computers, which have notoriously finicky com ports. If this really becomes a problem for you, I would suggest switching computers to a desktop system, and trying a different serial cable.
  #10   Spotlight this post!  
Unread 01-02-2006, 20:35
David Fort David Fort is offline
Registered User
FRC #1001
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2003
Location: Cleveland, OH
Posts: 26
David Fort is on a distinguished road
Re: Easy C, loader problem

just wanted to let folks know that we turned on Easy C for the first time tonight and experienced the same problem with loader as described here.

(it has been working with the regular IFI loader, although there are sometimes that it needs to be asked to download several times).

After download,
Program light blinks on RC
Code error light on OI

Reset on the RC sometimes gets things working, but plenty of things haven't been working (like Arcade block using pwm 13), so blinking lights create suspicion.
  #11   Spotlight this post!  
Unread 01-02-2006, 23:17
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 751
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Easy C, loader problem

You folks that are having download problems...

Are you using a USB to RS232 convertor?

I hope not....
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
  #12   Spotlight this post!  
Unread 01-02-2006, 23:22
Dillon Compton Dillon Compton is offline
Jack-Of-All-Trades
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Malvern, PA
Posts: 186
Dillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud of
Send a message via AIM to Dillon Compton
Re: Easy C, loader problem

I've used a usb convertor to download code to the bot a good dozen times with easyc, and have yet to experience problems. Good luck to you all, though.
__________________
www.metalmoose.com
  #13   Spotlight this post!  
Unread 01-02-2006, 23:30
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 751
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Easy C, loader problem

Not all USB convertors are created equal. Becareful using them. Use a "real" serial port when in doubt.




Quote:
Originally Posted by Dillon Compton
I've used a usb convertor to download code to the bot a good dozen times with easyc, and have yet to experience problems. Good luck to you all, though.
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
  #14   Spotlight this post!  
Unread 02-02-2006, 07:44
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Easy C, loader problem

Quote:
Originally Posted by David Fort
Reset on the RC sometimes gets things working, but plenty of things haven't been working (like Arcade block using pwm 13), so blinking lights create suspicion.
PWM ports 13-16 should not be used with EasyC. Those ports are controlled exclusively by the user processer (i.e. the PWM pulse widths are timed by the user processor) and are not compatible with programs using interrupts heavily.

The problem is that when the IFI function Generate_PWMs is called to generate the values for 13-16 it disables interrupts for about a millisecond. When this happens, any sensors like encoders, the camera, and timers, start loosing data and missing counts. In a non-interrupt environment, there is little problem with doing this, but when our robots have fast devices like the camera which receives 11500 bytes/sec (and without hardware buffers) data will be lost.

BTW, you can use one of those for camera power to free up another port is you aren't already doing that.

You also implied that other things aren't working... please post what you're seeing so that we might be able to help or fix them.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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
easy button looneylin General Forum 30 02-02-2006 11:12
IFI Loader and PROG button Dave... Programming 3 20-02-2005 12:03
chain ridding up and off sprocket problem... davidhoare Technical Discussion 4 04-02-2004 10:13
Victor problem Andy Baker Electrical 15 24-06-2003 09:49
MnM EASY Question of the Day Winners! Mike Bonham General Forum 22 03-05-2002 21:21


All times are GMT -5. The time now is 01:54.

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