Clock_Ip_GetClockFrequency() not enabled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clock_Ip_GetClockFrequency() not enabled

Jump to solution
138 Views
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 Kudos
1 Solution
127 Views
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

View solution in original post

0 Kudos
1 Reply
128 Views
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 Kudos