TI中文支持网
TI专业的中文技术问题搜集分享网站

280049的FlashApi使用

您好!

      使用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

Susan Yang:请问您是否有参考www.ti.com/…/spnu628a.pdf?

The Flash API Library is provided in C2000Ware at C2000Ware_x_xx_xx_xx\libraries\flashapi\f28004x.

您添加了F021_API_F28004x_FPU32.lib or F021_ROM_API_F28004x_FPU32.lib?

您好!

      使用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

zhaoheng li:

回复 Susan Yang:

参考了spnu628a文档,并且已经把C2000Ware_x_xx_xx_xx\libraries\flashapi\f28004x的lib文件(F021_API_F28004x_FPU32.lib和 F021_ROM_API_F28004x_FPU32.lib)添加到了工程的对应目录下,并且已经在链接的选项中把文件夹包含进来了,直接包含这两个lib文件的安装位置也尝试过,但是时钟提示找不到这个库,链接的时候也找不到这个库对应的接口函数。感觉很奇怪

您好!

      使用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

Susan Yang:

回复 zhaoheng li:

那您看一下TI flash例程的设置方式

路径为 C:\ti\c2000\C2000Ware_1_00_06_00\driverlib\f28004x\examples\flash

//// Include Flash API include file//#include "F021_F28004x_C28x.h"

您好!

      使用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

zhaoheng li:

回复 Susan Yang:

请问工程下的这个F021_API_F28004X_FPU32.lib是引用了位置"${FlashAPI_LIB_ROOT}"以后自动到这个目录下的?还是手动拷贝到这个目录下的?

我的工程确实也包含了F021_API_F28004X_FPU32.lib所在的目录,但是并没有自动将这个库文件放到工程根目录下

您好!

      使用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

Susan Yang:

回复 zhaoheng li:

您可以右键点击工程名称,选择 Add files

赞(0)
未经允许不得转载:TI中文支持网 » 280049的FlashApi使用
分享到: 更多 (0)