This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379S: Code coverage

Part Number: TMS320F28379S
Other Parts Discussed in Thread: C2000WARE

Hello,

I'm using a target with TMS320F28379 microcontroller.

I'm using Code Composer studio v11.x and compiler c2000 v21.6.0

I follwed all steps explain on the link bellow:

https://software-dl.ti.com/ccs/esd/documents/application_notes/appnote-code_coverage_compiler.html

But on all Excel file, the "Frequency" colum stay to 0 for all function. I'm sure some fonction was called during my execution (main start point!)

I wait the function call _TI_stop_pprof_collection was finished by placing a breakpoint immediatly after (take about 5minutes!)

But at the end, the excel file indicate to me no function covered:

Example of my main:

void main(void)
{
  /******************************************************************************/
  /* Initialize System Control:                                                 */
  /* PLL, WatchDog, enable Peripheral Clocks                                    */
  /* This function is found in the F28M3Xx_SysCtrl.c file.                      */
  /******************************************************************************/
  InitSysCtrl();
  
  /******************************************************************************/
  /*    Call Flash Initialization to setup flash wait states                     */
  /*    !!! This function must reside in RAM  !!!!                              */
  /******************************************************************************/
  InitFlash_Bank0();    /* Call the flash wrapper init function */
  InitFlash_Bank1();

Excel file:

filename,"funcname",line number,column number,frequency count,"comment"
C:\Projet\Serad\Variateurs\Rio40SE\trunk\Rio40SE\Ccs_Project\Analyse/main.c,"_main",123,3,0,"InitSysCtrl()"
C:\Projet\Serad\Variateurs\Rio40SE\trunk\Rio40SE\Ccs_Project\Analyse/main.c,"_main",129,3,0,"InitFlash_Bank0()"

I suppose the column "frequency count" represent the number of time CPU pass by this step..

But in my case, all files are filled with "0" in this column.

Is somebody could see what is my mistake?

Is there easier file analys result?

  • Hello,

    Tried out the steps in that app note. I used CCS 11.1 and C2000 compiler v21.6.0. I used a 28x device but different variant (F280049). I seemed to get valid coverage data (the "frequency count" values were valid). I believe the feature itself works as expected.

    To investigate what happened on your end, I would need a full test case. Can you provide one? I believe you provided your project via private e2e message in the past. But this time I will need something I can actually run. Since I do not have your exact target, I doubt I can actually run the program to completion. If you can reproduce the issue on a simpler example (maybe one of the generic examples from C2000Ware) and provide that project, I can take a closer look.

    Thanks

    ki

  • Hello,

    The probem is on the same project I provide you.

    I will try to use a simple project from C2000Ware

  • Thanks.

    Two things to also check:

    -Is optimization enabled?

    -Is .ppdata allocated in writable memory? 

    ki

  • Hello

    Optimization was not enabled

    ppdata was placed on RAM section.

    Like the result is no easilly readable (Excel file), I test with a third part tool which give the result in % and we can see the C code file where descision/transition is not covered.

    It is very friendly use.

    Thank for your support.

  • Thank you for the additional information.

    Please let me know what the result is when you try with a simple project from C2000Ware.