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.
在通过官方Flash库对内部Flash进行读写时候,为什么我添加并包含了Flash2803x_API_Config.h和Flash2803x_API_Library.h这两个文件,还会提示如下错误呢?
Description Resource Path Location Type
unresolved symbol _Flash28_API_LoadStart, first referenced in ./user/Flash.obj TEST C/C++ Problem
Description Resource Path Location Type
unresolved symbol _Flash28_API_LoadEnd, first referenced in ./user/Flash.obj TEST C/C++ Problem
是否有将你需要的Flash API library添加到工程中
有例程:C:\ti\controlSUITE\libs\utilities\flash_api\2803x\v100a
FLASH读写这些函数还没问题。
就是用了这句话,才出现的
memcpy(&Flash28_API_LoadStart, &Flash28_API_LoadEnd, (Uint32)&Flash28_API_RunStart);
是这几个变量没定义吗?这几个变量在 Flash2803x_API_Library.h里面有声明为全局变量啊。
那个是声明,声明不是定义,你的cmd文件中加上:
Flash28_API:
{
-lFlash28335_API_V210.lib(.econst)
-lFlash28335_API_V210.lib(.text)
} LOAD = FLASHD,
RUN = RAML0,
LOAD_START(_Flash28_API_LoadStart),
LOAD_END(_Flash28_API_LoadEnd),
RUN_START(_Flash28_API_RunStart),
PAGE = 0