Where is the "segment .absSeg0" defined?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where is the "segment .absSeg0" defined?

3,774 Views
sypii
Contributor I
Because the higher area of FLASH has been used by the monitor program and this area is block protected, I have to redirect the interrupt vectors to an unprotected area. When interrupt occurs, the monitor will get the target address saved in the vectors and jump to this address to execute the subroutine. But when I redirect an interrupt vector as following in the PRM file,
VECTOR ADDRESS 0xEFFC SWI
 
I got this Link error:
L1119: Vector allocated at absolute address 0xEFFC overlaps with sections placed in segment .absSeg0
 
I use this command just to specify the target address saved at 0xEFFC to the address of subroutine SWI.
I didn't find the defination of segment .absSeg0 in the PRM file and other files, where is this segment defined? How can I solve this problem?
 
Thank you very much!
 
Yang.
Labels (1)
Tags (1)
0 Kudos
9 Replies

817 Views
CompilerGuru
NXP Employee
NXP Employee
I think the linker is using such section names for absolutely allocated sections with no actual names.
For example ORG sections from the assembler, or absolutely allocated objected from C with the @ operator.
Anyway, I would suggest you comment your VECTOR ADDRESS, link, and then check the map file what gets allocated at 0xEFFC. The map file has  a section where all objects are listed sorted by address so that you be easy to spot.

Daniel
0 Kudos

817 Views
sypii
Contributor I
Another question, when I use this macro to simplify the initialization code in Start08.c,
#define __ONLY_INIT_SP
I got a warning as following:
L1107: Object _startupData not found

What does this mean? In help document, this warning is described as this:
An object referenced in the PRM file or in the application is not found anywhere in the application.
The definition of _startupData has been canceled when __ONLY_INIT_SP was defined, I couldn't find where this object was referenced, but why does this warning appeared?
 
Thank you!
 
Yang.
0 Kudos

817 Views
CrasyCat
Specialist III
Hello
 
If you are building with -D__ONLY_INIT_SP you can ignore the message
L1107: Object _startupData not found.
 
This message just informs you that there is no startup data structure available in the application.
As you are not going through the ANSI C startup, you do not need a startup structure.
 
If you do not want to see the message at all you can disable it using following linker option:
-WmsgSd1107
 
CrasyCat
0 Kudos

818 Views
sypii
Contributor I
OK! Thank you, CrasyCat!
0 Kudos

818 Views
LiveMike
Contributor II

"If you do not want to see the message at all you can disable it using following linker option:

-WmsgSd1107"
How do you do this exactly?  I'm a n00b :smileyhappy:
-Mike
0 Kudos

818 Views
J2MEJediMaster
Specialist I

Under CodeWarrior for MCUs v10.2:

 

1) Choose Project > Properties.

    A Properties for Project xxx window appears.

2) Choose C/C++ Build > Settings

    The Settings view appears.

3) Choose ARM LInker > Input, then check Suppress Link Warnings.

 

---Tom

0 Kudos

818 Views
LiveMike
Contributor II

Tom,

 

Thanks.  I had guessed that much, but found nothing.  After reading your reply, I still found nothing; but I decided to dig deeper.  My apologies for not saying I'm using CodeWarrior 6.1, which I'm sure has different menus.  This is what I found:

 

Edit > Standard Settings...

"Target Settings Panels" Target > Linker for HC08

"Command Line Arguments" Box [Here is where I assume I could add "-WmsgSd1107".]

 

But, I decided to create a new project with different settings, and this "Warning" no longer appears :smileyhappy:

 

Thanks,

-Mike

0 Kudos

818 Views
J2MEJediMaster
Specialist I

That is correct. The Command Line Options box is where you would enter the argument. You can also click on the Messages button which displays a panel where you can enable/disable/warn various messages. When you are done with this panel, click OK and the IDE automatically generates the proper arguments and inserts them into the Command Line Options box.

 

---Tom

0 Kudos

818 Views
sypii
Contributor I
Hello,Daniel
Thanks a lot for your help! I will try your suggestion.
 
Yang.
0 Kudos