在通过官方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
user5089339:
回复 Seven Han:
例程貌似打不开。我看我工程里都有这些文件,但还是出现问题。
在通过官方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
Seven Han:
回复 user5089339:
我用ccs7试了下打开例程,是没有问题的,可以编译。
在通过官方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
user5089339:
回复 Seven Han:
FLASH读写这些函数还没问题。
就是用了这句话,才出现的
memcpy(&Flash28_API_LoadStart, &Flash28_API_LoadEnd, (Uint32)&Flash28_API_RunStart);
是这几个变量没定义吗?这几个变量在 Flash2803x_API_Library.h里面有声明为全局变量啊。
在通过官方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
user5089339:
回复 Seven Han:
嗯,是的原来如此。CMD文件我用的是自己的。
我还以为这几个变量是在封装好的库里面定义好了的,只需要在引用文件里声明下就好了。
十分感谢!