Go to Post One day the code will be written first, and then a robot built around it - dag0620 [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 08-03-2006, 02:57
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Temperature sensitive controller? maybe 8.2 V related?

We have been running tests on a controller that has shown the 8.2V issue
and which has been getting intermittent code errors to try to determine if
or how our code is going wrong.

What we determined after much experimentation is that there is some sort
of hardware issue with the controller. We observed:

The code ran better when the controller was warm. We noticed that
code errors seemed to decrease when the controller had been
continuously operating for a period of time. We tested this by
cooling the controller and noticing that the incidence of code errors
went up. The cold controller would error immediately. The warm
one would error intermittently.

Older code which we thought didn't have problems was actually
seeing corruption in the data being sent to/from the OI. We noticed
this by seeing a correlation between joystick movement and feedback
LEDs that is not programmed into our code. With this in mind, we
looked at the feedback response with the code that has been
getting the code error and noticed that feedback LEDs that should be
lit continuously were blinking off intermittently.

Our theory is that the data segment that contains the txdata, rxdata, and the
status flag is somehow getting corrupted. Our map file shows this data is
located in gpr15 (above the stack? near the register access??).

We ran an experiment and changed the linker script by eliminating gpr15
(I commented it out, I'm not sure if that is the best solution). We then ran
the code on a cold processor and did not see any strange behavior. LEDs
that were supposed to be lit were lit and stayed lit. There were no strange
relationships between controls and LEDs. txdata etc are now located in gpr2
at 0x200 instead of gpr15 at 0xf00. I think I need to run more tests, but I
find these results interesting.

I now see that there are new linker scripts from Kevin and one of them marks
gpr15 as protected. Is there something known or suspected about data
integrity in gpr15? I don't have the controller here, but a quick recompile and
look at the map indicates that 18f8722beta.lkr moves the txdata into gpr2 like
the change I had made.

We need to run more tests, but I would really like to hear any comments on
our analysis.

B.T.W - we did run timing checks on our main loops including the process
data from master up() and we determined that our maximum loop time was
11ms with an average loop time less than 5ms so we are sure that we were
not getting the code errors from running too long.


Thanks for your help.

Eric Anderson - 1425 Wilsonville Robotics
  #2   Spotlight this post!  
Unread 08-03-2006, 04:09
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: Temperature sensitive controller? maybe 8.2 V related?

Awesome work, guys! That makes a lot of sense. Maybe there is an intermittent internal connection in some of the processors?

Did you try heating up your RC (with a hairdryer or heat gun) and see if the bug was completely cured?

Or, put it in the refrigerator and see if the problem occurs all the time.
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL

Last edited by Eldarion : 08-03-2006 at 04:19.
  #3   Spotlight this post!  
Unread 08-03-2006, 10:38
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: Temperature sensitive controller? maybe 8.2 V related?

Quote:
Originally Posted by Eldarion
Awesome work, guys! That makes a lot of sense. Maybe there is an intermittent internal connection in some of the processors?

Did you try heating up your RC (with a hairdryer or heat gun) and see if the bug was completely cured?

Or, put it in the refrigerator and see if the problem occurs all the time.
Actually we put it in a refrigerator for about 5-10 min when the error stopped happening and it came right back.
  #4   Spotlight this post!  
Unread 08-03-2006, 10:59
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Temperature sensitive controller? maybe 8.2 V related?

Quote:
Originally Posted by ericand
Actually we put it in a refrigerator for about 5-10 min when the error stopped happening and it came right back.
Wow, thats crazy. Could you try and heat it up with a blow dryer or heat gun and test the errors then. Before i spend alot of time has anyone looked at the chip specs to see what its working tempurature is.
  #5   Spotlight this post!  
Unread 09-03-2006, 13:19
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: Temperature sensitive controller? maybe 8.2 V related?

This looks like it is being confirmed by IFI. Stay tuned.

IFI has posted an update on their web site dealing with
the 8.2Voltage issue. Team 1425 feels that the issue that
we observed with the code errors and other random
behaviour is related (likely a different symptom of the same problem).

We are in contact with IFI and the IFI rep reported that
they reproduced the temperature sensitivity issue.

The solution posted on their site is listed as "temporary" so
I would expect future updates from them. Check out:

http://www.ifirobotics.com/docs/memory_problem_8722.pdf

Last edited by ericand : 09-03-2006 at 14:11. Reason: added more info.
  #6   Spotlight this post!  
Unread 10-03-2006, 09:09
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Temperature sensitive controller? maybe 8.2 V related?

Quote:
Originally Posted by ericand
We are in contact with IFI and the IFI rep reported that
they reproduced the temperature sensitivity issue.
Well, I finally managed to use the temperature approach (using a large can of TFE "Office Duster" to cool down the RC) and this finally allowed me to recreate the 8.2V error in our clubhouse (it was doing it all the time in the pits, but was resisting my attempts to trigger it in the clubhouse). Replacing the linker script fixed it, as does warming up the RC.

I still think our 2004 RC (un-upgraded) is going in my bag for Palmetto in case this problem rears it's ugly head again.
  #7   Spotlight this post!  
Unread 10-03-2006, 12:53
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: Temperature sensitive controller? maybe 8.2 V related?

I'm glad to hear you confirm what we observed.

Last edited by ericand : 10-03-2006 at 12:55. Reason: reply asked for tests that were already run.
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
Help On Coding 2K1 Controller GregTheGreat Programming 9 05-12-2003 18:35
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30


All times are GMT -5. The time now is 23:04.

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