How to setup the CodeWarrior in the CodeWright IDE completly?

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

How to setup the CodeWarrior in the CodeWright IDE completly?

1,939 Views
elsalvadore
Contributor I

Hello,

 

I am using the CodeWarrior Ver. 5.9 and the CodeWright Ver. 7.5.

 

Does someone knows how to set the CodeWarrior or the CodeWright IDE, to get the "Warning Error Msgs" directly into the CodeWright IDE?


I am so far that I can start the CodeWarrior from the CodeWright, trough the settings in Project->Project Properties->Tools and the CodeWarrior generates a file, but only with the messages e. g.:

1 warning

1 error

It is to less information. I am expecting infos like the type of warnings or error and also the line number.

Thx for help.

Labels (1)
0 Kudos
Reply
6 Replies

1,343 Views
elsalvadore
Contributor I

The MCU is: MC9S0BGT32.

I have found an answer two my previous question in the doc. Compiler_HC08.chm:....

If you start the Compiler from an IDE (with '%f' given on the command line) or CodeWright (with '%b%e' given on the command line), the Compiler does not produce the err.txt error file. Instead, the Compiler writes the error messages in a special format in a file called EDOUT using the default..... Microsoft format.

Nevertheless I the msgs don not pop up in the CWright.

I also tried to generate a msg output file with the msgs, therefore I set the param:

-Env"ERRORFILE=MyErrors.txt"

in the Command Line Arguments from the Compiler for HC08. But the file was not generated sadly.

0 Kudos
Reply

1,343 Views
CrasyCat
Specialist III

Hello

If you want the compiler to generate a custom error file, you need to add the options -EnvERRORFILE=<fileName> and -WOutFileOn.

For example to generate a file called MyErrors.txt use -EnvERRORFILE=MyErrors.txt and -WOutFileOn

Regarding the format of the generated error message, there is an option -WmsgFb allowing to modify the generated error message format.

Using it you might be able to adjust the message format to what CodeWright expects.

Take a look at the MCU_HCS08_compiler.pdf for information about this option.

CrasyCat

1,343 Views
elsalvadore
Contributor I

Hi,

now there are enough informations trough activating the "verbose format" with -WmsgFbv. But at the moment when I am executing CodeWarrior from CodeWright with the following line:

C:\Freescale\CodeWarrior for Microcontrollers V6.3\bin\ide.exe c:\.....{PROJECTNAME}.mcp /t "{TARGETNAME}" /r /b /q    with the Options "No cmd shell" and "Save all files".

After the execution the content of the Errorfile is deleted.

And even if this would be fixed I would still have problem with the parser. Do I have to write a new parser in this case or can I use one of the predefined parsers of CodeWright?

Thx a lot for the support

0 Kudos
Reply

1,343 Views
elsalvadore
Contributor I

Hello CrasyCat,


thx a lot for such fast answering.

I have already found this doc. in one previos discciussion...

https://community.freescale.com/message/42878#42878

This is quit helpful, but still written for some tools from Metroworks. And my tools are from CodeWarrior. So it still a question which file you have to type in the tab "errors" in the field "Error Filename" and also the format of the output file in the field "Error Parser 1".

The result is that the found errors and warnings in CodeWarrior are not transfered to CodeWright.

But, found out yesterday that this messages are transferred directly from the CHC08.exe (the compiler from CodeWarrior) into CodeWright.

Still to do is the settings for the compiler. For the CodeWarrior IDE the settings are already finished :smileysad:

0 Kudos
Reply

1,343 Views
CrasyCat
Specialist III

Which MCU are you targeting?

CrasyCat

0 Kudos
Reply

1,343 Views
CrasyCat
Specialist III

Hello

Not sure which MCU you are targeting here.

If you are targeting a HCS12, HCS12X or a HCS08, the attached Technical note might be of interest.

It was created a couple of years back for an earlier version of CodeWright.

May be the same mechanism is still working with the new release of CodeWright.

CrasyCat

0 Kudos
Reply