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.

Dhrystone TMS570

Hi everybody,

Currently, I am running dhrystone benchmark on TMS570, I did hardware configuration and compiler optimization to obtain dhrystone score in Cortex R4:

- I am working at 36 MHz to avoid wait state

-I disabled pipeline mode in memory flash

So i would know if there any other hardware configuration in order to increase the processor performance

Thanks

  • Hi,

    The boot code must initialize the wait states (including data wait states and address wait states) and the desired pipeline mode by by initializing the FRDCNTL register to achieve the optimum system performance. This needs to be done before switchign to the final device operating frequency and the desired data and address wait states for timing can be found in the device datasheet.

    So just ensure the wait states are set correctly and you should have the best performance.

    Best regards,

    TI Forum Support

  • Hi Luc,

    according wait state configuration, I am sure that  wait state are set correctly because it shows performance rise 50  per cent, However i don't have exactly dhrystone score

    for information:  According to ECC information (spnu489) , TCRAM wrapper checks ECC, So When you  enable ECC checking on TMS570  you decrease the execution time.

    I know that ECC checking is disabled after reset, The startup provide by MDK ARM , doesn't have assembly code to disable ECC: pag 282

    ACTM_Disable_ECC

        MRC p15............

    Shoul  i add assembly code to disable ECC, knowing that it is not defined in startup code?

    I am not sure if there are any other operations  wich I sould remove whitout affecting read and write process in  Flash and Ram memories

     

    Thanks

    Best Regards

    Edna SALAZAR

  • Hi,

    Concerning the last question, I realized that I didn't initialize the  floating point unite, In fact I didn't find optimization in  assembler code which make several mathematic calculation:

    So I added the following code to Startup:

                    MRC     p15, 0, r0, c1, c0, 2      ; Read Coprocessor Access Control Register (CPACR)
                    ORR     r0, r0, #(0xF << 20)       ; Enable access to CP 10 & 11
                    MCR     p15, 0, r0, c1, c0, 2      ; Write Coprocessor Access Control Register (CPACR)
                    ISB
                   MOV     r0, #0x40000000
                   VMSR    FPEXC, r0      

    then at level compilation, I obtain the error --->Fatal error: C3900U: Unrecognized option '--float_support'.

     I found  a lot information about initialization FPU:

    http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/140632.aspx

    Keeping in mind that, (using as compiler DS-5 and/or MDK ARM uvision V4) I added  the libraries:   pf035a_api.li pf035a_api_eabi.lib pf035a_api_eabi.lib etc in Keil\ARM\CMSIS and also in my  proyect path

    Second I included libreries #include "f035.h" ...etc in main file.

    However I have the same resultnFatal error: C3900U: Unrecognized option '--float_support

    Thanks a lot for your information

  • Hi Edna,

    I posted the same in separate forum for floating point initialization. Here is the link

    http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/138479/500428.aspx#500428

    In this link you will find the information you want.

    Apart from that, please make sure before compiling, you mentioned the float_support option for both compiler and assembler.

    If you are using some makefile.mk for compiling your files, be aware of extra spaces, termination of line, etc., like that.

    you are still facing the same issue, please send me your file. I will check it here.

    Thanks and Regards

    Gowdham Natarajan

  • Edna,

    Could you update the state of this thread?
    If we answered all your question, please can you make it as "Answered Question" so we can close it.

    Thanks and Regards,

    Jean-Marc