Unable to compile with PC-Lint 9 plugin under CW 5.9.0 for HCS12XE

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

Unable to compile with PC-Lint 9 plugin under CW 5.9.0 for HCS12XE

Jump to solution
1,854 Views
mroczeks
Contributor IV

Hi All,

I have recently got Gimpel's PC-Lint 9.
I am trying to enable it under Code Warrior 5.9.0 for HCS12X devices.
First I read readme.txt file from \Freescale\CWS12v5.1\Lint\lnt\CodeWarrior directory.
I installed PC-Lint into \Freescale\CWS12v5.1\Lint directory.
I have the following files present as described in readme.txt file:
- Bin\plugins\Compiler\PCLintCompiler.dll: Compiler plug-in
- Bin\plugins\Linker\PCLintLinker.dll: Linker plug-in
- Bin\plugins\Preference Panel\PCLintOptions.dll: options preference panel
- Bin\plugins\Preference Panel\PCLintSettings.dll: settings preference panel
- Lint\lnt\CodeWarrior\*.lnt: Lint configuration files

I opened my existing project. Created a new target by clonning existing target.
I opened new target's settings (Alt + F7) and choosed PCLint Linker of Linker menu of Target Setting panel.
Then I made my settings as in attached PCLint Main Settings.jpg and PCLint Options.jpg files.

 
When I try to compile a project only a number of warning messages appear.
These warning messages include many project files paths but no useful information (as for me now).
I noticed that my previous target had more panels under settings menu like compiler and linker options, see attached Standard Settings.jpg file.

Futhermore after compile no abs or map file is generated.
Any idea of what I am missing here?

Apart from setting PC-Lint under my CW I also run this PC-Lint configuration wizzard that generated some extra files for Metrowerks and CodeWarrior. Trying to use them does not help neither. 

Labels (1)
0 Kudos
1 Solution
976 Views
mroczeks
Contributor IV

Forgot to add solution which I figured out some time ago :smileywink:

 

You are most probably running Win 7 which by default launches your CodeWarrior in user mode. You have to launch your Code Warrior in administration mode (right click on an icon and 'Run as administrator' or something like that).

 

It helped in my case :smileyhappy:

 

View solution in original post

0 Kudos
9 Replies
976 Views
mroczeks
Contributor IV

Anyone?

Guys, I can't believe no one is using Pc-Lint as a plugin here :smileywink:

0 Kudos
976 Views
mroczeks
Contributor IV

Found some time to go deeper into PcLint...

I read some parts of Lint's manual, run configuration utility and was able to lint test files and c and header files of some simple HCS12XE Project from under command line...So far so good.

But I can't enable PcLint as a Code Warrior plugin.

Have a look at my configuration screenshots and output of make process. I do not get any reasonable messages, nor abs file is produced out of make process...

 

I've seen people on this forum using PcLint plugin so I am hopefully waiting for your help!

 

0 Kudos
976 Views
CrasyCat
Specialist III

Hello

 

According to the screen shot you have sent it looks like PC-Lint is started and is parsing the source files/

 

There were no errors or Warnings generated by PC-Lint.

 

When you build your application with PC-Lint all you are doing is checking the syntax of the ANSI C source files within the application. This will not generate object or executable file.

 

In order to generate executable file you need to switch back to HCs12 Linker in the Target Panel and rebuild.

 

CrasyCat

0 Kudos
976 Views
mroczeks
Contributor IV

Thanks a lot for reply!

 

I did some syntax error in the code to make sure it is containing an error. Stadard target did show an error message. Then I switched back to PcLint Target and got no error messages :/

 

 

I also linted project files from under command line and it showed a lot of messages.

 

Have no idea where the problem really is.

0 Kudos
976 Views
CrasyCat
Specialist III

Hello

 

  I am able to use V8 without any trouble in CodEwarrior for HC12 V5.1.

  I do not have PC-Lint V9 installed on my system so I cannot check with that version.

 

  I noticed something strage though. In your Lint command line you are using co-mwe_base.lnt instead of co-mwhc12.lnt.

 

  Is the file co-mwhc12.lnt available in your installation Lint\lnt\CodeWarrior folder?

 

  If you are still unable to get it to work, I may recommend you to submit a service request through our on line support

  web site.

 

  Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.

 

CrasyCat

0 Kudos
976 Views
mroczeks
Contributor IV

Thanks for reply.

 

Lint is using co-mwe_base.lnt because I set Additional Options of PCLint Options panel to point to std.lnt file generated with Lint's configure utility and attached wrong screenshot of PCLint Options panel - SORRY!

 

Anyway, with Additional Options being blank (as on screenshot) or set to point to std.lnt file I am getting same messages (with just compiler file included being either co-mwhc12.lnt or co-mwe_base.lnt respectively).

 

Service Request submited (with link to this thread too). Hopefuly they will be able to help me. I will let know about results.

 

Szymon

0 Kudos
976 Views
oli_
Contributor I

Hi,

  same problem here is there any solution?

 when I use codewarrior to lint any file i can only see the used command but no results.

 The very same command seems to work fine when i use it in the command-line.

 

cheers

  oli

 

I am using CodeWarrior HC08 5.1 and PCLint 9 

0 Kudos
977 Views
mroczeks
Contributor IV

Forgot to add solution which I figured out some time ago :smileywink:

 

You are most probably running Win 7 which by default launches your CodeWarrior in user mode. You have to launch your Code Warrior in administration mode (right click on an icon and 'Run as administrator' or something like that).

 

It helped in my case :smileyhappy:

 

0 Kudos
976 Views
oli_
Contributor I

Thank you very much for the hint.

0 Kudos