How to Remap...

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

How to Remap...

Jump to solution
1,631 Views
balckmamba
Contributor I

MCU:mc9s08jm16

 

in bootlaoder code I define:  unsigned char v1 @0x1880

in other source code file I define: unsigned char V2 @0x1880

 

when i buld the poject, there are errors: Segments .absSeg11(0x1880) and .absSeg22(0x1880) overlap.

 

How to fix this error?

 

I have to define two different name point to 0x1880.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,353 Views
BlackNight
NXP Employee
NXP Employee

Hello,

you have several options:

 

a) disable linker message

add -WmsgSd1100 to your linker options

 

b) use defines like this

#define VAR_ADDRESS 0x1880unsigned char var @VAR_ADDRESS;#define v1 (*((unsigned char*)VAR_ADDRESS))#define v2 (*((unsigned char*)VAR_ADDRESS))

 

hope this helps,

BK

View solution in original post

0 Kudos
Reply
11 Replies
1,353 Views
balckmamba
Contributor I

I am using CW10.0

0 Kudos
Reply
1,354 Views
BlackNight
NXP Employee
NXP Employee

Hello,

you have several options:

 

a) disable linker message

add -WmsgSd1100 to your linker options

 

b) use defines like this

#define VAR_ADDRESS 0x1880unsigned char var @VAR_ADDRESS;#define v1 (*((unsigned char*)VAR_ADDRESS))#define v2 (*((unsigned char*)VAR_ADDRESS))

 

hope this helps,

BK

0 Kudos
Reply
1,353 Views
bigmac
Specialist III

Hello,

 

Another possibility may be to define v2 as an alias for v1, within the file that uses v2.  Personally, I do not like to disable error messages that may hide an important coding error elsewhere in the code.

 

#define v2  v1  // v2 is an alias for v1

 

Regards,

Mac

 

0 Kudos
Reply
1,353 Views
balckmamba
Contributor I

I am so appreciate your repay. Thank you very much.

 

could you please kindle provide more information about :

 

"a) disable linker message

add -WmsgSd1100 to your linker options"

 

I am a new hand in using CW. I don't know how to  "disable linker message" .

 

is it a option in the CW setting? or I have to add -WmsgSd1100 into my source? 

 

Please please tell me the detail steps to disable the linker message. Thanks a lot. 

 

 

0 Kudos
Reply
1,353 Views
BlackNight
NXP Employee
NXP Employee

Hello,

sure thing.

 

Select the project, then use the menu Project > Properties.

Then see attached screenshot.

 

Hope this helps,

BK

 

PS: Screenshot is from MCU10.2. MCU10.0 is really old, I suggest that you are using 10.2 instead. But options should be the same.

0 Kudos
Reply
1,353 Views
balckmamba
Contributor I

Hello,

 

Thanks for your patient reply.

 

I am using CW10.0. And my setting interface is different from yours. 

Please help to check if the setting is correct. (see the attached pic)

 

I check the" disable user message" and add the "WmsgSd1100" into the rectangle.

 

Another question: I click "check update" and  a pop dialoge said:' There are no update sites to search. Do you wish to open the "Available Software Sites" preferences.

 

0 Kudos
Reply
1,353 Views
BlackNight
NXP Employee
NXP Employee

Hello,

about the linker option: add it to the 'other flags' in MCU10 prior 10.2 (see attached screenshot).

 

BK

0 Kudos
Reply
1,353 Views
balckmamba
Contributor I

Hello.

 

Does it mean I have to add -WmsgSD1100 to two places?

 

(1) Poject -> Properties -> C/C++Build ->Setting -> Message: check Disable user message, add  -WmsgSD1100 into other falg rectangle.

 

(2)  Poject -> Properties -> C/C++Build ->Setting -> Linker -> General -> add  -WmsgSD1100 into other falg rectangle.

 

 

 

more question: I found there is a "-WmsgFob"%f%e:%l:%k..."exist the "other falg rectangle"

 

what's that ? Can  i delete it ?

0 Kudos
Reply
1,353 Views
BlackNight
NXP Employee
NXP Employee

Hello,

add it only once, into the linker settings.

 

And keep the other options like "-WmsgFob"%f%e:%l:%k..." (this one formats the error messages, see the description in the manual).

 

BK

0 Kudos
Reply
1,353 Views
balckmamba
Contributor I

ok. Got it....

 

I can't thank you more.

 

Have a nice weekend...

0 Kudos
Reply
1,353 Views
BlackNight
NXP Employee
NXP Employee

Hello,

on upgrading to 10.2:

You cannot upgrade from 10.0 to 10.x from within eclipse/CodeWarrior.

The update you tried only applies for service packs and fixes.

 

To get MCU10.2 you need to download it from here:

http://www.freescale.com/cwmcu10

You still can keep your current installation (no need to uninstall).

 

Hope this helps,

BK

0 Kudos
Reply