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.

Function Moving to Ram from Flash memory, But why it takes almost same execution time?

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hi, 

I'm Using TMS320F28335 Experiment kit In that i written code for some application  having 4 to 5 source file.

I'm loading entire code into the flash memory, also i moved time critical function to RAM using "#pragma CODE_SECTION(fun_name, "ramfuncs");" After moving 3 to 4 function i debug the code and I checked .Map file of the project to verify the allocation of these function. Its Working fine and i crosschecked with the "CCS->View-> Memory Browser" and this is also shows the proper allocation of the function.

Upto this point everything is fine But when i start execution to check function Execution time its just reduces to 1 us.

As per my program "RunABCDQConversion();" function will take time as follows: 

  • code loaded into the ram = 2.5us
  • code loaded into the Flash (without #Pragma) = 5.5 us
  • code loaded into the Flash (without #Pragma) = 4.5 us

so after moving to ram Execution time reduces to 1us instead of 2.5us. This is true for all the function which moved to ram.

So what can be the solution to this problem? and why it takes almost same execution time? How to reduces it to almost time i.e. taken by RAM?

Thanks, 

pxl_29