本人是学生,刚刚接触这个东西。
用的CCS去写的,附件是老师给的程序。
大概是上一节课刚讲的怎么配置环境,别的就不会了。
我是把这个附件里的东西直接放到工程里面了。然后有了以下的一些报错。
文件名是在MMR1,程序是粘贴在这个文件夹里面的。
插上TM4C123G之后按了DEBUG出现的是以下这些问题。
然后ERROR是以下的这些。
Description Resource Path Location Type
#10010 errors encountered during linking; "MMR1.out" not built MMR1 C/C++ Problem
gmake: *** [MMR1.out] Error 1 MMR1 C/C++ Problem
gmake: Target 'all' not remade because of errors. MMR1 C/C++ Problem
symbol "g_pfnVectors" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" symbol "g_pfnVectors" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" MMR1 C/C++ Problem
symbol "ResetISR" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" symbol "ResetISR" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" MMR1 C/C++ Problem
然后接下来我应该怎么做
xyz549040622:
不是bug,是你对ccs工程的建立还不熟悉。建议看一看官方的的那个视频,第一讲就是讲CCS工程的建立的。
Maka Luo:
symbol "g_pfnVectors" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" symbol "g_pfnVectors" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" MMR1 C/C++ Problemsymbol "ResetISR" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" symbol "ResetISR" redefined: first defined in "./startup_ccs.obj"; redefined in "./tm4c123ge6pm_startup_ccs.obj" MMR1 C/C++ Problem
错误显示 这几个重复定义了 先把这个错误消除先。
可以先从Tivaware中例程入手学习。