Go to Post I have many ideas, every last one of them involves finding something more productive to do with your time. - Andrew Schreiber [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 11-02-2004, 15:17
Tridelvior Tridelvior is offline
Windbringer
#0348
Team Role: Programmer
 
Join Date: Jan 2004
Location: Norwell, Massachusetts
Posts: 13
Tridelvior is an unknown quantity at this point
Non Overlay and absolute? Help.

I keep getting this message when I try to build the project

Quote:
Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file.
Errors : 1

BUILD FAILED: Wed Feb 11 14:01:32 2004
__________________
Team 348 Programmer/Animator/Slacker

Minion #341
  #2   Spotlight this post!  
Unread 11-02-2004, 15:57
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Non Overlay and absolute? Help.

That's an interesting one.
That's declared in ifi_startup.c and is the RESET_VECTOR

The error occurs if:
Code:
#pragma code _entry_scn=RESET_VECTOR
occurs more than once.

Did you by any chance #include "ifi_startup.c" anywhere?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2004 at 15:59.
  #3   Spotlight this post!  
Unread 11-02-2004, 16:41
Tridelvior Tridelvior is offline
Windbringer
#0348
Team Role: Programmer
 
Join Date: Jan 2004
Location: Norwell, Massachusetts
Posts: 13
Tridelvior is an unknown quantity at this point
Exclamation Re: Non Overlay and absolute? Help.

Hmm..thats interesting.

Now I've got the same error but different place.

Quote:
Error - section 'InterruptVectorLow' type is non-overlay and absolute but occurs in more than one input file.

Its now within the user_routines_fast.c (Thats the only place where "#pragma code InterruptVectorLow" is.)


Quote:
#pragma code InterruptVectorLow = LOW_INT_VECTOR
void InterruptVectorLow (void)
{
_asm
goto InterruptHandlerLow /*jump to interrupt routine*/
_endasm
}
This probably has an obvious answer..but what does it mean?
__________________
Team 348 Programmer/Animator/Slacker

Minion #341

Last edited by Tridelvior : 11-02-2004 at 16:43.
  #4   Spotlight this post!  
Unread 11-02-2004, 16:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Non Overlay and absolute? Help.

Quote:
Originally Posted by Tridelvior
Hmm..thats interesting.

Now I've got the same error but different place.




Its now within the user_routines_fast.c (Thats the only place where "#pragma code InterruptVectorLow" is.)




This probably has an obvious answer..but what does it mean?
Don't #include any of your .c files.
Now you have #include "user_routines_fast.c" somewhere...

The real answer is to #include .h files only.
.h files usually only reference things that will be defined elsewhere and the names won't conflict if they are mentioned in more than one file. It just lets the different files know they are talking about the same "thing."

.c files on the other hand actually create "things" and if you try creating the same thing twice (by including the .c file) the compiler won't know which of two routine "x"'s you really wanted it to execute.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2004 at 17:06.
  #5   Spotlight this post!  
Unread 11-02-2004, 17:23
Tridelvior Tridelvior is offline
Windbringer
#0348
Team Role: Programmer
 
Join Date: Jan 2004
Location: Norwell, Massachusetts
Posts: 13
Tridelvior is an unknown quantity at this point
Exclamation Re: Non Overlay and absolute? Help.

Thanks that helped but now I'm getting:

Quote:
C:\ARGH\user_routines.c:189:Warning [2058] call of function without prototype
C:\ARGH\user_routines.c:191:Error [1203] too few arguments in function call
and the error seems to be within the user_routines.c

Quote:
pGenerate_Pwmsrintf("Port1 Y %3d, X %3d, Fire %d, Top %d\n",(int)p1_y,(int)p1_x,(int)p1_sw_trig,(int)p1_ sw_top); /* printf EXAMPLE */

Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
aww jeez
__________________
Team 348 Programmer/Animator/Slacker

Minion #341
  #6   Spotlight this post!  
Unread 11-02-2004, 17:47
Tridelvior Tridelvior is offline
Windbringer
#0348
Team Role: Programmer
 
Join Date: Jan 2004
Location: Norwell, Massachusetts
Posts: 13
Tridelvior is an unknown quantity at this point
Talking Re: Non Overlay and absolute? Help.

After a fun round of re-downloading the default code i have finally gotten it to work. Thank you very much for your help. I know who to contact if I have any more difficulties.
__________________
Team 348 Programmer/Animator/Slacker

Minion #341
  #7   Spotlight this post!  
Unread 12-02-2004, 09:52
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Non Overlay and absolute? Help.

Quote:
Originally Posted by Tridelvior
After a fun round of re-downloading the default code i have finally gotten it to work. Thank you very much for your help. I know who to contact if I have any more difficulties.
It's always more fun to debug someone else's code.
It's always your own code that drives you nuts!

Good Luck!
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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


All times are GMT -5. The time now is 02:08.

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