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.

280049的FlashApi使用

Other Parts Discussed in Thread: TMS320F280049C, C2000WARE

您好!

      使用TMS320F280049C的FlashApi时遇到以下问题:

      1. 告警提示:28004x_generic_flash_lnk.cmd", line 282: warning #10068-D: no matching section

      2. 链接时找不到FlashApi的库文件:

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)

但是实际上我已经包含了相应的头文件和库

cmd文件中相应的配置如下:

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

SECTIONS