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.

AM2434: R5F performance

Part Number: AM2434
Other Parts Discussed in Thread: SYSCONFIG

I'm trying to evaluate the performance of an R5F core.

How do I find out the R5F core clock frequency?

How do I change that clock frequency?

I have managed to place some code into R5F_TCMA by putting the function definitions between

#pragma clang section text=".mytext"

and

#pragma clang section text=""

but I did not notice any change in execution time (compared to MSRAM). Is that to be expected?

Where would I put my code and the data that is accessed by that code in order to achieve best execution speed on an R5F core?

Best regards,

Johannes

  • Hi Johannes,

    The R5F core frequency was set to 800Mhz by default in both GEL file or SBL_NULL. You should see the CCS console display (when GEL file is used) or UART display (SBL_NULL is used). Of course you can change the GEL file or the SBL_NULL to change the R5F core frequency from 800Mhz to your target frequency.

    As of the performance,

    1. The cache plays a big role when the code and data are in MSRAM. For a fair comparison, you need to turn the cache off for MSRAM and then the same code when you put it into TCM. You can change it in example.syscfg (MPU settings) via SysConfig.

    2. Your target function may be calling other functions (like sinf. cosf etc) which may still reside in MSRAM.

    3. The data your target function accessing may still reside in MSRAM

    You will need to look into the MAP file closely to make sure all the code and data related to your target function are put into the TCM.

    Best regards,

    Ming