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.

TMS320F280037: Compiler Marking instead of pragma for many RAM functions

Part Number: TMS320F280037

Hi,

is there an easier way to declare many function as RAM functions, which are called after the while(1), instead declare all functions with #pragma CODE_SECTION

int main(void)
{
    //some code in flash
    
    //compiler mark like the #pragma CODE_SECTION( ..),
    //that function after that point would go into ramfunction
    
    while( 1 )
    {
        //some more code in RAM
    }
}

Thanks

David

  • Hi David,

    Currently we have the following method to declare function that would go into ramfunction - 

    #pragma CODE_SECTION(".TI.ramfunc");
    You can take reference from driverlib code from flash.h/.c files
    Thanks
    Aswin