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.

TMS320F28335: TMS320F28388D:

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

If I want to load some functions of "driverlib" to the RAM, what should I do?

For example, I am using the function "SCI_writeCharArray()" which is "..\driverlib\sci.h" of C2000ware.

What will be the #pragma CODE_SECTION(???, ".TI.ramfunc") ?

Thanks and regards

Wen Li

  • Hi Wen Li,

    If you are using the sci.c file directly, instead of using the prebuilt driverlib.lib, you can add the pragma as follows in the sci.h/.c file:

    #pragma CODE_SECTION(SCI_writeCharArray, ".TI.ramfunc")

    If you are using driverlib.lib, you can update the linker cmd as follows to make all SCI functions as ramfuncs:

       GROUP
       {
    	   .TI.ramfunc
    	   { -l driverlib.lib<sci.obj>(.text)}
    
       }	LOAD = FLASH3,
    	    RUN = RAMLS0,
    	    LOAD_START(RamfuncsLoadStart),
    	    LOAD_SIZE(RamfuncsLoadSize),
    	    LOAD_END(RamfuncsLoadEnd),
    	    RUN_START(RamfuncsRunStart),
    	    RUN_SIZE(RamfuncsRunSize),
    	    RUN_END(RamfuncsRunEnd),
    	    ALIGN(8)
    

    Regards,

    Veena