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.

CODECOMPOSER: Add this to CSS user guide

Part Number: CODECOMPOSER


HI

Please add this reply from KI to the CSS documentation. GEL expression to read/reset CPU clock in CCS4 - Code Composer Studio forum - Code Composer StudioTm︎ - TI E2E support forums

More specific the chapter 7.9.8.16. GEL_EnableClock()

That would have saved me a lot of time.

  • Hi Martin,

    I'm not sure what the exact request is. GEL_EnableClock is documented in the link you provided.

    If you are referring to CLK, we no longer recommend using CLK since it not always tied to the profile clock on all devices. Hence the profile clock is always recommended,

    Thanks

    ki

  • Hi KI

    In the current documentation for GEL_EnableClock  it says "Enables or disables the profile clock."

    And that's it...

    This forced me to search if there was some other get function like GEL_GetClock / GEL_ReadProfileClock or something in that direction.but no luck there, I later ended up on a page from the old wiki about how to read and reset it from the GUI in CCS. But I needed the GEL version of this, and was clueless until I found that old post in the forum.

    Next step would of course have been a deep dive into reference/datasheet/C2800 references a.s.o. to see if i could get a clue there.

    So conclusion is that the doc for GEL_EnableClock definitely should contain some information on how to read and reset the profile clock from a Gel script. And not leave the reader hanging there.

    And if some other virtual register is more recommended today, well yes that should be reflected there.

    BTW: it appears that the CLK gives a reasonable result on a f28379D, that I am currently working with.

    Edit: I see that links are very hard to spot here, but the "a page to old wiki" is a link to that page ;-)

  • I believe there should be some APIs to reset and configure the clock but they don't appear to be documented. Perhaps they were never implemented. I'll need to investigate.

  • Other than GEL_EnableClock, there is only one other profile clock related GEL function called GEL_SetClockEvent([string event]). This one is not documented and it is to specify the event to count. The default is CPU cycles but some devices allow you to count other events also.

    GEL is typically not used to automate profiling (configure and read clock from a script). DSS has much more comprehensive APIs for the profile clock.