Clock_Ip_GetClockFrequency() not enabled

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Clock_Ip_GetClockFrequency() not enabled

ソリューションへジャンプ
213件の閲覧回数
Hareesh
Contributor I

Hi NXP team,

We are using S32K344 EVK board and S32 design studio v3.5.

We want to use Clock_Ip_GetClockFrequency() function from  ..../RTD/include/Clock_Ip.h file  to calculate time in millisecs as per below code.

void BCC_MCU_WaitMs(uint16_t delay)
{
    g_sysClk = (g_sysClk) ? g_sysClk : BCC_MCU_GetSystemClockFreq();

    uint32_t cycles = (uint32_t) BCC_GET_CYCLES_FOR_MS(1U, g_sysClk);

    /* Advance to next multiple of 4. Value 0x04U ensures that the number
     * is not zero. */
    cycles = (cycles & 0xFFFFFFFCU) | 0x04U;

    for (; delay > 0U; delay--) {
        BCC_WAIT_FOR_MUL4_CYCLES(cycles);
    }
}

 

But in my SDK the Clock_Ip_GetClockFrequency() function is not enabled. How to enable this function?(Please find the attached image for your reference)

Please assist me to resolve this issue.

 

Thanks and regards,

Hareesh

0 件の賞賛
返信
1 解決策
202件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Hareesh 

To enable the get clock frequency API, you have to activate it in the clock tool of Config Tools. 

VaneB_0-1716920261633.png

B.R.

VaneB

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
203件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @Hareesh 

To enable the get clock frequency API, you have to activate it in the clock tool of Config Tools. 

VaneB_0-1716920261633.png

B.R.

VaneB

0 件の賞賛
返信