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.

LAUNCHXL-F280025C: CCS tool

Part Number: LAUNCHXL-F280025C

Hello Team, 

I am trying to measure the time of my program:

firstly i load the program and measure it 

secondly i tried to do the cpu reset from the tool and my program runs again and then it measures the time

the time measured in first case and second case are different although the code is same .I am not able to understand why is it so . Could you please help me ?

Thanks 

Ushma 

  • Hi Ushma,

    I would suggest to consider the measurement you made after the CPU reset - This way you get the measurement without the influence of the "program load" operation; this operation involves loading code in to the device's RAM to configure the system/PLL etc to program the flash.  

    Thanks and regards,

    Vamsi

  • Hello Vamsi, 

    in the first case the time taken by the program is 28ms 

    in the second case time taken is 104ms 

    with your input in the second case the time should be lesser than the time in the first case , but it is not the case . after the CPU reset the time taken is much more than the first case.

    Thanks 

    Ushma Cholera 

  • Hello Vamsi ,

    To be little more precise , i have used this option to do cpu reset 

    one more point : 

    1. program starts two fucntions are done

    2.GPIO set to high

    3. fucntion which i have to measure time is executed

    4. GPIO set to low

    so the time measurement i have done with GPIO  after the program starts 

    this time of the function should not be impacted by CPU reset  right ?

    could you please guide me more on this ?

    thanks 

    UShma 

  • Ushma,

    Flash plugin is like any other application.  It will leave the device is in a used state.  Hence CPU reset is suggested after the flash load.  

    Not sure what you are trying to compare - For your application context, you need to do a reset and then do the measurements/benchmarking.

    Hope your application is taking care of choosing the correct clock source and PLL configuration as needed.  

    Please let me know if you have any questions.

    Thanks and regards,

    Vamsi 

  • Hello Vamsi, 

    the clock i checked it is 100 Mhz .There are two different ways in which  i have executed the same code 

    first procedure :

    0: program flash with debug probe 

    1: program jumps to start address 

    2: two fucntions are executed (clock set to 100 mhz,etc  )

    3: GPIO set to high 

    4: function executed ( for which the time i want to measure )

    5.GPIO set to low 

    GPIO pin shows the time taken for the function in step 4  is 28ms 

    second procedure(where i dont flash the code again but stop the execution from the first procedure and follow the steps as mentioned below ) :

    0: pressed 

    1: pressed 

    2: program jumps to start address 

    3: two fucntions are executed (clock set to 100 mhz,etc  )

    4: GPIO set to high 

    5: function executed ( for which the time i want to measure )

    5.GPIO set to low 

    GPIO pin shows the time taken for the function in step 4  is 104ms 

    Could you please guide me before or after which step the cpu reset must be done also how it is done with setting register or with this symbol 

    ?

    Thanks 

    Ushma cholera 

  • Ushma,

    After you load the code to flash, do a power cycle with flash boot configuration and measure the time.

    Thanks and regards,

    Vamsi

  • Hello Vamsi, 

    what is power cycle with flash boot configuration means ?

  • Ushma,

    Configure the boot mode GPIOs for flash boot (please check TRM's BootROM chapter).

    Power cycle -> Turn off the power and then turn on.  Instead of debug reset, POR/XRSn is best when you want to do benchmarking and hence suggested power cycle.

    Thanks and regards,

    Vamsi

  • Hi Ushma,

    Can I close this post?  

    Thanks and regards,
    Vamsi