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.
Tool/software: TI C/C++ Compiler
I want to run my program completely out of RAM. At startup, the code is copied from Flash memory to RAM.
My program has grown large enough such that it will not fit in the 8K contiguous H0 area.
Is there some way I can arrange for part of the code to be transferred to the H0 area and part of the code to be transferred to another area (L0, for example) as part of the startup process?
I have targeted the TMS320F2811.
Ashley Scott said:Is there some way I can arrange for part of the code to be transferred to the H0 area and part of the code to be transferred to another area (L0, for example) as part of the startup process?
Instead of one single .text section for all of the code, you could split it up into two sections (say .text1 and .text2). Take a look at this page for information on how to form multiple output sections.
Then set up each section to load to Flash but run from either H0 or L0 RAM. See section 8.8.2 of the C28x Assembly Language Tools Users Guide.
Hope this helps.