View Single Post
  #8   Spotlight this post!  
Unread 10-02-2004, 10:58
ErichKeane ErichKeane is offline
Registered User
FRC #3210
Team Role: Mentor
 
Join Date: Nov 2003
Rookie Year: 2004
Location: Hillsboro, OR
Posts: 113
ErichKeane is just really niceErichKeane is just really niceErichKeane is just really niceErichKeane is just really niceErichKeane is just really nice
Send a message via AIM to ErichKeane
Re: IFI loader help!

Quote:
Originally Posted by ShadowKnight
Ok, so i've been trying to download code to the EDUbot for about 2 weeks, but it doesn't work. When I tried to download, a box would pop up saying:

ERROR '6'
Overflow

I would also get back a file called ERROR.MCP, filled with a buncha hex numbers. And the program light would stay yellow. I have IFI_Loader v. 1.0.7 and the memory isn't a problem, the .map file says 41% is used.

I tried copying my code into the default code function by function, and it starts messing up when i get to my absolute value function. For some reason, this works:

short long abs(short long num)
{
return num;
}

but this doesn't:

short long abs(short long num)
{
if (num < 0) return -num;
else return num;
}


Help me please!
Few things i would try. First, make absolutely sure you have the most recent version of the IFI Loader, from InnovationFirst

Second, try instead of return -num;, try return 0-num; Only because in the past it has given me weird errors because of the - sign as an opposite.

Other than that, check the piece of code above it, if a {} is not closed correctly, it may cause errors. BTW, do you have the function prototype listed in the top of the code?