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.

TMS320F280025: Question about place the function into ram?

Part Number: TMS320F280025


Dear expert:

        When I place function into ram area by add code such as"#pragma CODE_SECTION(adcA1ISR, ".TI.ramfunc");"before the relative code,I found the RAMGS0 area is taking up more place.Why does it take up RAMGS0 but not RAMM0 or RAMM1?

  • Hi Hang,

    The placement depends on how .TI.ramfunc section is defined. Can you share the linker cmd file.

    Regards,

    Vivek Singh

  • Hi Vivek:

         .TI.ramfunc section is defined as following:

          

         The linker cmd file I used is "28002x_generic_flash_lnk.cmd",Since the TMS320F28002x has RAMM0 and RAMM1 besides RAMGS0,Could I modify the "RUN == RAMGS0" to "RUN == RAMGS0 | RAMM0 | RAMM1"?Could RAMM0 and RAMM1 be used like RAMGS0 to place application code.If RAMM0 and RAMM1 can be used to place application code,I will have more room to place my complexed algorithm so that the running speed of the relative code can be increased.

  •  The linker cmd file I used is "28002x_generic_flash_lnk.cmd",Since the TMS320F28002x has RAMM0 and RAMM1 besides RAMGS0

    FMAGS0 start address is 0xC000 where as end address of RAMM1 is 0x800 so these are not continuous address range. Are are putting this into RAMGS0 only so not sure why do you expect compiler to place it in RAMM0/RAMM1. RAMM0/RAMM1 can be used for application if not used for anything else. Generally these RAMs are used for stack but it's user choice. 

    Regards,

    Vivek Singh