![]() |
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 i don't know why this happens because up until recently it was working perfectly ! ??? |
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 |
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 |
Re: Strange ERROR.MCP file coming up Robot not programming!
Quote:
|
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.
|
Re: Strange ERROR.MCP file coming up Robot not programming!
Quote:
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) |
| All times are GMT -5. The time now is 07:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi