Command Line Arguments

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

Command Line Arguments

Jump to solution
2,318 Views
JanellA
Contributor I
I am using CodeWarrior version 5.7.0 to program a ZigBee mote (MC13213, an HC08 device). I've copied and pasted C before, but this is my first time in several years actively using the language.

While I trying to determine why the code is not successfully linking, I realized I don't even understand what the command line arguments indicate. Can someone explain what the following means, please?

-B -M -WmsgSd1100 -WmsgSd1912

I believe these are the default command line arguments for CodeWarrior, but the BeeKit might have generated them for me.

Any recommends on good web or print source to learn about the linker would also be appreciated.

Thanks!
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,209 Views
CompilerGuru
NXP Employee
NXP Employee
To get help for a certain option, open the options dialog in the target preferences, select the option and press help.
That should work for the -B and -M.
The -WmsgSd1100 -WmsgSd1912 are configured messages, for those go to the Messages dialog instead of the Options dialog, select the message, and press F1.
Anyway,
-B: Generate S-Record file
-M: Generate Map File
-WmsgSd1100: disables "L1100: Segments and overlap"
-WmsgSd1912: disables "L1912: Object overlaps with another (last addr: , object address: "

-M: As a map file is created by default anyway, -M only helps if the map file is explicitly switch of in the prm, doubt that's often the case therefore this option does not hurt (or help)
-B: well if there is a *.bbl file in the project, then this bbl causes that a second srecord is generated already, so -B will create a second one. Otherwise not hurt much.
- disabling of L1100, L1912 was needed some time ago to avoid some error for overlapped peripheral registers. If they are the only things which overlap, then it does not hurt to disable the messages, but anyway, if you don't get any failures when removing the -WmsgSd options, remove them.

View solution in original post

0 Kudos
Reply
2 Replies
1,209 Views
JanellA
Contributor I
Thank you for that explanation! It was very helpful.
0 Kudos
Reply
1,210 Views
CompilerGuru
NXP Employee
NXP Employee
To get help for a certain option, open the options dialog in the target preferences, select the option and press help.
That should work for the -B and -M.
The -WmsgSd1100 -WmsgSd1912 are configured messages, for those go to the Messages dialog instead of the Options dialog, select the message, and press F1.
Anyway,
-B: Generate S-Record file
-M: Generate Map File
-WmsgSd1100: disables "L1100: Segments and overlap"
-WmsgSd1912: disables "L1912: Object overlaps with another (last addr: , object address: "

-M: As a map file is created by default anyway, -M only helps if the map file is explicitly switch of in the prm, doubt that's often the case therefore this option does not hurt (or help)
-B: well if there is a *.bbl file in the project, then this bbl causes that a second srecord is generated already, so -B will create a second one. Otherwise not hurt much.
- disabling of L1100, L1912 was needed some time ago to avoid some error for overlapped peripheral registers. If they are the only things which overlap, then it does not hurt to disable the messages, but anyway, if you don't get any failures when removing the -WmsgSd options, remove them.
0 Kudos
Reply