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.

Compiler/TMS320F28374S: Copy sections from FLASH to RAM

Part Number: TMS320F28374S

Tool/software: TI C/C++ Compiler

Hi, 

I have few queries on copy sections listed below.

    1. Can we do copy sections from FLASH to RAM after entering into the main( ) function?
    2. Can I overwrite the RAM using different section as 1st section not useful? I mean can I do copy sections 2nd time on the same RAM with different section? (In my application, based on the external selection only a few functions run among 100s of function, that's why I am asking this question that the functions that are running those only need to be run on RAM based on my external selection. This external selection comes from SCI communication from another processor.) 
    3. If the 2nd question is not fulfil my application suitable then can you suggest a solution for my application?

 

**************************

Thanks and Regards,

Harish B.

  • Note that the TI compiler tools, the linker in particular, do have features which support allocating a section at one address for loading, and a different address for execution.  Related features make it easy to perform the copy from the load address to the run address.  That copy, however, never occurs automatically.  The copy occurs only when the user invokes it.  As an example, it is possible to never perform the copy of a function from the load address to the run address, then call that function, and end up executing garbage.  Nothing in the tools prevents that from occurring.

    harish boyina said:
    Can we do copy sections from FLASH to RAM after entering into the main( ) function?

    Yes

    harish boyina said:
    can I do copy sections 2nd time on the same RAM with different section?

    Yes

    Thanks and regards,

    -George