Return to Home
  View the contents of your Cart View cart  
  0 item(s) in cart  
  Checkout  

Gimpel Software - Discussion Forum
Discussion Forum
We invite you to use this forum to communicate with other PC-lint and FlexeLint users. You do not need to log in to post a message. WARNING: Your email address will not be encrypted. We recommend that you obfuscate it as protection from web crawlers. To receive technical support directly from Gimpel Software, please follow the guidelines at http://www.gimpel.com/html/support.htm
Gimpel Software - Discussion Forum
Subject From Date & Time
Project in MPLAB X Mike September 11, 2017
7:00:59 AM
  Re: Project in MPLAB X September 11, 2017
8:43:57 AM
 
Subject: Project in MPLAB X
Date: September 11, 2017
7:00:59 AM
Name: Mike
Email: mcrookes@laserquantum.com
Message:
So I have started using the PC-Lint plugin for a
MPLAB X (harmony V1.10) project.

I have managed to progress with it to the point
where now PC-lint appears to complete but I'm
getting lots of errors which seem to be as a
result of PC-Lint not having correctly included
library header files.

So with -vf setting with a module that has a
specific issue, output as follows;

'
--- Module:  
C:\Repos\ENRFirmware\firmware\src\system_config\default\framework\driver\adc\src\drv_adc_static.c
(C)
    Including file
C:\Repos\ENRFirmware\Lint\lint-cmac.h (hdr)
    Including file
..\src\system_config\default\framework\driver\adc\drv_adc_static.h
(library)
        Including file C:\Program Files
(x86)\Microchip\xc32\v1.43\lib\gcc\pic32mx\4.8.3\include\stdbool.h
(library)
        Including file
..\src\system_config\default\system_config.h (library)
        Including file
C:\microchip\harmony\v1_10\framework\peripheral\adc\plib_adc.h
(library)
            Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\stdint.h
(library)
                Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\machine\int_types.h
(library)
                Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\machine\int_mwgwtypes.h
(library)
                Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\machine\int_limits.h
(library)
                Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\machine\int_const.h
(library)
            Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\stddef.h
(library)
                Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\machine\ansi.h
(library)
            Including file
C:\microchip\harmony\v1_10\framework\peripheral\adc\processor\adc_processor.h
(library)
        Including file
C:\microchip\harmony\v1_10\framework\peripheral\int\plib_int.h
(library)
            Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\stdint.h
(library)
            Including file c:\program files
(x86)\microchip\xc32\v1.43\bin\bin\..\..\lib\gcc\pic32mx\4.8.3\..\..\..\..\pic32mx\include\lega-c\stddef.h
(library)
            Including file
C:\microchip\harmony\v1_10\framework\peripheral\int\processor\int_processor.h
(library)
                                                 
     _
   
PLIB_ADC_ConversionClockSourceSelect(DRV_ADC_ID_1,
ADC_CLOCK_SOURCE_PERIPHERAL_BUS_CLOCK);
C:\Repos\ENRFirmware\firmware\src\system_config\default\framework\driver\adc\src\drv_adc_static.c:56:
Error 40: Undeclared identifier
'ADC_CLOCK_SOURCE_PERIPHERAL_BUS_CLOCK'

etc. etc.
'

What's notable her is that this define is in an
include from adc_processor.h which is not listed
in the verbose output. This comes from an #elif
defined include which doesn't appear to have been
registered by PC-lint.
Reply to this Message! Previous Message Next Message
 
Subject: Re: Project in MPLAB X
Date: September 11, 2017
8:43:57 AM
Message:
Are you sure you have all preprocessor switches
(including the secret compiler predefined ones)
correctly mapped to -d options in lint?
Double check by using the -scavenge option (read
the manual).
Reply to this Message! Previous Message Next Message