Go to Post dang. I wish my legs were as good as Dave's. - Amanda Morrison [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 26-04-2006, 13:21
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Strange ERROR.MCP file coming up Robot not programming!

Okay so all of a sudden whenever we try to program we get this strange error.mcp file that opens after the program is done downloading, the robot does NOT program, the status bar just goes to full and then this pops up:

Code:
008000 BF 00 00 00 00 00 01 00 00 00 01 00 00 00 00 00 
008010 00 01 00 00 00 00 01 00 00 00 00 00 00 01 00 00 
008020 00 01 00 00 00 03 00 00 00 00 00 00 00 00 00 00 
008050 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 
008080 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
0080A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 
0080D0 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 
008120 00 00 00 00 00 00 00 FF 00 00 00 00 00 00 00 01 
008130 01 01 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
we are using firmware 1.1 IFI loader v. 1.0.12
i don't know why this happens because up until recently it was working perfectly ! ???
__________________
Team 701
  #2   Spotlight this post!  
Unread 26-04-2006, 13:26
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Strange ERROR.MCP file coming up Robot not programming!

okay I think it may be because our program is too big? because a small program works fine ...!!?! although i did go into compile options and change it to use the 64k Large code model

i still don't understand why that should cause a problem
__________________
Team 701
  #3   Spotlight this post!  
Unread 26-04-2006, 13:37
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Strange ERROR.MCP file coming up Robot not programming!

Okay figured it out,
I don't know the reasoning behind this... but for anyone with similar problems:
DO NOT switch to large code model
switch to the Multi-Bank Stack model...
this worked for me... I had a lot of ROM data tables etc.. i'm not aware of low level stuff like memory but this worked
__________________
Team 701
  #4   Spotlight this post!  
Unread 08-05-2006, 21:46
jerry w's Avatar
jerry w jerry w is offline
Free Agent Mentor
no team (Team Krunch)
Team Role: Engineer
 
Join Date: Nov 2003
Rookie Year: 2002
Location: dunedin fl
Posts: 113
jerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud of
Re: Strange ERROR.MCP file coming up Robot not programming!

Quote:
Originally Posted by Salik Syed
Okay figured it out,
I don't know the reasoning behind this... but for anyone with similar problems:
DO NOT switch to large code model
switch to the Multi-Bank Stack model...
this worked for me... I had a lot of ROM data tables etc.. i'm not aware of low level stuff like memory but this worked
we had the same problem. thanks for the solution. here is the reason.

the stack in a pic is designed to use a single block of data memory.
using dynamic variables inside a function tells the compiler to use stack space for data storage. but, with many variables, you quickly run out of stack space. with the robot controller, there is usually more than enough data space to allow for static variables. the limit, as we discovered, is on the size of the stack. we fixed the error by making the local variables static.

in addition, the compiler must add code to setup and then cleanup the stack inside of a function. the extra code slows down processing. thus I recommend that all local variables be declared static, as a way to reduce program size and prevent stack problems.

for example...
Code:
void Camera_State_Machine(unsigned char byte)
{
	static unsigned char state = UNSYNCHRONIZED;
	static unsigned char packet_buffer[34];
	static unsigned char packet_buffer_index;
	static unsigned char packet_char_count;
jerry w
__________________
Happiest when people tell the truth... However, I am blessed with many friends.
  #5   Spotlight this post!  
Unread 29-04-2006, 23:07
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: Strange ERROR.MCP file coming up Robot not programming!

Quote:
Originally Posted by Salik Syed
we are using firmware 1.1 IFI loader v. 1.0.12
i don't know why this happens because up until recently it was working perfectly ! ???
Isn't the latest IFI loader version 1.1.0? The error.mcp dump starting at address 8000 usually means that your program size has exceeded the limit of the older IFI loader.
  #6   Spotlight this post!  
Unread 29-04-2006, 23:15
Doug G's Avatar
Doug G Doug G is offline
Coach / Teacher
FRC #0701 (Robovikes)
Team Role: Coach
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Fairfield, CA
Posts: 877
Doug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond repute
Re: Strange ERROR.MCP file coming up Robot not programming!

Our mistake, we installed Version 1.1 of IFI Loader and all is well. For some reason we thought firmware 1.1 meant version 1.1 - oops.
__________________
Work Hard, Have Fun, Make a Difference!

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
WASH Palm scouting at the Championship Mike Soukup Scouting 2 19-04-2002 15:14
Index of team's post about their robot... Ken Leung Robot Showcase 1 20-03-2002 17:10
Improving PBASIC: Request for Comments Greg Ross Programming 19 16-02-2002 22:14
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39
Robot Programming Game Brandon Martus Chit-Chat 3 10-09-2001 23:37


All times are GMT -5. The time now is 07:32.

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