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.

TDA4VM: How to check the R5F MCU1_0 CPU frequency?

Part Number: TDA4VM

Hi, experts:

    I want to know, how can we be sure that the cpu(R5f mcu1_0) is running at 1Ghz clk freq?

   I use k3conf tools dumped the clk freq,it shows that mcu1_0 is running at 1Ghz:

J7EVM@QNX:/# k3conf dump clock 250 
|--------------------------------------------------------------------------------|
| VERSION INFO                                                                   |
|--------------------------------------------------------------------------------|
| K3CONF | QNX                                                                   |
| SoC    | J721E SR2.0                                                           |
| SYSFW  | ABI: 3.1 (firmware version 0x0015 '21.1.1--v2021.01a (Terrific Lla)') |
|--------------------------------------------------------------------------------|

|-------------------------------------------------------------------------------------------------------------------------------------------|
| Device ID | Clock ID | Clock Name                                                                     | Status          | Clock Frequency |
|-------------------------------------------------------------------------------------------------------------------------------------------|
|   250     |     0    | DEV_MCU_R5FSS0_CORE0_CPU_CLK                                                   | CLK_STATE_READY | 1000000000      |
|   250     |     1    | DEV_MCU_R5FSS0_CORE0_CPU_CLK_PARENT_K3_PLL_CTRL_WRAP_WKUP_0_CHIP_DIV1_CLK_CLK  | CLK_STATE_READY | 1000000000      |
|   250     |     2    | DEV_MCU_R5FSS0_CORE0_CPU_CLK_PARENT_K3_PLL_CTRL_WRAP_WKUP_0_CHIP_DIV1_CLK_CLK2 | CLK_STATE_READY | 333333333       |
|   250     |     3    | DEV_MCU_R5FSS0_CORE0_INTERFACE_CLK                                             | CLK_STATE_READY | 1000000000      |
|-------------------------------------------------------------------------------------------------------------------------------------------|
    

but For the same function(Os_TimerPfrtIsr) in autosar, the running time in tda4 r5f (1Ghz) seems to be longer than another chip with lower frequency (533Mhz).

(MCU1_0 runs the autosar operating system, We integrated Gliwa to test the cpu load)

Is there any way to determine the main frequency of the CPU ? 

    

  • Hi,

    The k3conf tool's output should confirm that the core is running at 1GHz, this output comes by querying the Device Manager using the TISCI_MSG_GET_CLOCK API.

    You may also check this by running "k3conf dump processor".

    but For the same function(Os_TimerPfrtIsr) in autosar, the running time in tda4 r5f (1Ghz) seems to be longer than another chip with lower frequency (533Mhz).

    Which memory are you running this function from? For best performance this should be running from the OCM RAM (On-chip-RAM) in the MCU domain which starts from 0x41C0_0000 and extends till 1MB.

    Regards

    Karan

  • Which memory are you running this function from? For best performance this should be running from the OCM RAM (On-chip-RAM) in the MCU domain which starts from 0x41C0_0000 and extends till 1MB.

    We are using the DDR memory,we will try to run the same function from OCRAN section and test the cpu load again. 

    Other than that, can you give us some way to reduce cpu load? or what do we need to check?

  • Hi

    Access latency for MCU R5F from DDR is around 278.4 ns as compared to OCM RAM which is 54.3 ns.

    Moving from DDR to MCU R5F should make the CPU load much lower.

    See below:

    Regards

    Karan

  • Hi,Karan, thanks a lot!

        I moved some section from DDR to OCRAM and the CPU load did drop from 60% to 45%, but not as we expected(we need BSW cpu load lower than 30%). Is there any other way to reduce CPU load? For example, to improve the cache hit rate? How to Check the Cache Hit Ratio?

  • Closing this thread as this discussion is being carried on in another private thread.

    Regards

    Karan