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.

IWR1843AOP: How to get millisecond?

Part Number: IWR1843AOP
Other Parts Discussed in Thread: IWR1843

Tool/software:

I want to know how to get millisecond using Cycleprofiler_getTimeStamp api in IWR1843 AOP.

Could you please let me know what's wrong in the below code?

#define SYS_CLOCK_MHZ_4_UDS 200U
#define SYS_MILLISEC_INV_4_UDS (1.f / (float)(SYS_CLOCK_MHZ_4_UDS * 1000))

uint32_t uds_user_get_ms() {
return (uint32_t)(Cycleprofiler_getTimeStamp() * SYS_MILLISEC_INV_4_UDS);
}

BRs.

Hyunung Park