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.

TMS320F280025: Code optimization and the difference between code executon in ram and flash?

Part Number: TMS320F280025
Other Parts Discussed in Thread: C2000WARE

Dear expert:

     After I compile my code,the advice take place as following:

     

    if I change the relative setting as it's decription,Will it increase the running speed of my code?

    Additionally,When debug my code in ram and in flash,the time gap is very different between them,in ram:

in flash:

   Does it mean that if I assign some important code in ram,my project will be more efficient?When I assign the ADCA interrupt function in ram as following:

   Does it mean the application in the ADCA interrupt is also assigned in ram along with ADCA interrupt function?

    Fianlly I want to ask that does the code optimization and the code executon in ram can have a double effect on the runing speed of code?

  • if I change the relative setting as it's decription,Will it increase the running speed of my code?

    In nearly all cases, yes.  It will never make it slower.

    Does it mean that if I assign some important code in ram,my project will be more efficient?

    In nearly all cases, yes.  By important, I presume you mean the functions that execute most often.

    Does it mean the application in the ADCA interrupt is also assigned in ram along with ADCA interrupt function?

    I presume you use a linker command file that came from TI, such as one from C2000Ware.  In that case, this means the function adcA1ISR will load in FLASH.  During system startup, it is copied from FLASH to RAM.  Then, whenever it is invoked, it executes from RAM.

    does the code optimization and the code executon in ram can have a double effect on the runing speed of code?

    In nearly all cases, yes.

    Thanks and regards,

    -George