Other Parts Discussed in Thread: C2000WARE
Tool/software: TI C/C++ Compiler
Hello!
The following problems were encountered when using the FlashApi of TMS320F280049C:
1. warning 28004x_generic_flash_lnk.cmd", line 282: warning #10068-D: no matching section
2. The FlashApi library file could not be found when linking:
undefined first referenced symbol in file
Fapi_checkFsmForReady()
Fapi_doBlankCheck(unsigned long *, unsigned long, Fapi_FlashStatusWordType *)
Fapi_doVerify(unsigned long *, unsigned long, unsigned long *, Fapi_FlashStatusWordType *)
Fapi_getFsmStatus()
Fapi_initializeAPI(volatile FMC_REGISTERS *, unsigned long)
Fapi_issueAsyncCommandWithAddress(Fapi_FlashStateCommandsType, unsigned long *)
Fapi_issueProgrammingCommand(unsigned long *, unsigned int *, unsigned int, unsigned int *, unsigned int, Fapi_FlashProgrammingCommandsType)
Fapi_setActiveFlashBank(Fapi_FlashBankType)
But actually I have included the corresponding header files and libraries.
The corresponding configuration in the cmd file is as follows:
PAGE 0 :
......
RAMGS1 : origin = 0x00E000, length = 0x002000
RAMGS2 : origin = 0x010000, length = 0x002000
RAMGS3 : origin = 0x012000, length = 0x002000
/* Flash sectors */
FLASHA : origin = 0x080002, length = 0x001FFE /* on-chip Flash */
FLASHB : origin = 0x082000, length = 0x002000 /* on-chip Flash */
......
SECTIONS
{
......
Flash28_API:
{
//-l F021_ROM_API_F28004x_FPU32.lib
-l F021_API_F28004x_FPU32.lib
}
LOAD = FLASHB,
RUN = RAMGS3,
LOAD_START(_Flash28_API_LoadStart),
LOAD_SIZE(_Flash28_API_LoadSize),
LOAD_END(_Flash28_API_LoadEnd),
RUN_START(_Flash28_API_RunStart),
RUN_SIZE(_Flash28_API_RunSize),
RUN_END(_Flash28_API_RunEnd),
PAGE = 0