cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 5, 3 & 1

PrMa_264311
New Contributor II

 Hello,

   

I've run into some interesting bugs in my code migrating from Creator 3.0 to 3.1. So, to get a better handle on things (and perhaps discover some latent bugs) I am wanting to use PC-Lint. It doesn't appear to be natively supported by the Creator IDE. So, any of you had experience utilizing PC-Lint with Creator 3.1? I'm trying to get an idea of complexity and caveats.

   

Thanks!

4 Replies
ETRO_SSN583
Esteemed Contributor

The heap and stack size were reduced in 3.1, try restoring to 3.0 levels 4K and 16K respectively.

   

3.1 default settings are now 128 bytes and 2K.

   

 System tab in Fitterxxxxx*.cydwr file, workspace explorer near the top.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Expert II

Into Crerator is integrated Clang which will do some checkings and flags lines in question while typing. Remarkable is for me to see that if(a=b)" (I'm coming from PASCAL world) gets flagged and reminds me to change that line.

   

 

   

Bob

PrMa_264311
New Contributor II

Dana, I have checked the heap and stack sizes. Those were set in a previous project and hadn't changed. But good thing to remember!

   

Thanks Bob, I didn't know what the static analysis too was called. Clang catches most things I'm worried about, and maybe that's sufficient. I'm guessing the culprit is more deep seated than a simple coding error. I've noticed that the issue arrises when the CyBoot 4.20 component is used (rather than 4.11). My guess is it's a constant or definition with regards to the FLASH routines. But just in case, I wanted a static code analysis tool output. 

   

So on that note, have any of you noticed a difference between Clang and PC-Lint?

0 Likes
Bob_Marlowe
Expert II

I would suggest you to google for "GCC lint", some interesting results.

   

 

   

Bob

0 Likes