Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

TMS320F280039C: how can I copy Flash library FAPI_F28003x_EABI functions to RAM

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

I define the function, which calls the library functions, to be stored before start in the FLASH and copy during start of the program to RAM.

  • *the function itself is copied to the RAM and the PC goes to the memory address in RAM.
  • But when I call for example the function Fapi_initializeAPI(...) in this function the program goes on in the FLASH address range.

how can I define the library functions in such a way that they are also copied to the RAM during startup of the program?

Thanks

  • Hi

    You can refer our Flash API usage  "flashapi_ex1_programming" example in C200ware located at <c2000ware install path\driverlib\f28003x\examples\flash>

    Regards,

    Rajeshwary

  • the example shows how to define the library in the cmd file in such a way that the called functions are also copied to internal RAM.


    GROUP
    {
    .TI.ramfunc
    { -l "..\FAPI_F28003x_EABI_v1.58.10.lib"}

    } LOAD = FLASH_BANK0_SEC1,
    RUN = RAMLS,
    LOAD_START(RamfuncsLoadStart),
    LOAD_SIZE(RamfuncsLoadSize),
    LOAD_END(RamfuncsLoadEnd),
    RUN_START(RamfuncsRunStart),
    RUN_SIZE(RamfuncsRunSize),
    RUN_END(RamfuncsRunEnd),
    ALIGN(8)

    this task can be closed now and thank you for your help