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.

AM2634-Q1: [MCAL]How to set GptChannelTickFrequency on EB configurator

Part Number: AM2634-Q1

Dear Champs,

My customer is trying to set external watchdog of PMIC using MCAL GPT module, but could not find how they can set it in EB configurator.

Their target is to set GptChannelTickFrequency at multiple of 1000 as it should be divisible by 1000.

Could you please help how GptChannelTickFrequency can be set in MCAL v9.0?

They checked EB configurator, but the field was 'grayed out' and can not be modified.

Thanks and Best Regards,

SI.

  • Hi SI,

    Output tick frequency can be calculated by using below.


    RTI_CLK_FREQUENCY/(1+Preload value).
    Preload value max can be 31.

    Please refer gpt userguide on how to calculate this.

    https://software-dl.ti.com/mcu-plus-sdk/esd/PLATFORM_SW_MCAL/AM263x/09.00.01/modules/gpt.html#example-usage-gpt

    BR,

    Sunil

  • Hi Sunil,

    Thanks for the info. it seems customer should change Preload value, but it was not modified in EB TresOS tool as I mentioned.

    Could you please let me know how they can modify Preload vallue in EB TresOS configuration tool?

    Thanks and Best Regards,

    SI.

  • Hi SI,

    Please find the details below. We will update same in the User guide.

    Gpt-channel tick frequency is considered to be a prescaler value.It needs to be configured under GptDriverConfiguration container of configuration plugin.

    It is defined as GptModule<module_number>CounterBlk0Frequency and GptModule<module_number>CounterBlk0Frequency. Here "module_number" defines the rti register number.

    There are 2 counter blocks GPT_RTI_COUNTER0 and GPT_RTI_COUNTER1 which can be mapped as shown in image below.

    For example,if we are configuring 5th channel,So channel id is 4 and it belongs to RTI1 timer section and counter block is GPT_RTI_COUNTER0.
    So the respective prescaler value,i.e.,GptChannelTickFrequency shall be "GptModule1CounterBlk0Frequency" in configuration file.

    BR,

    Sunil