Cypress技术william hill官网
直播中

刘晓燕

7年用户 197经验值
私信 关注
[问答]

未定义的参考误差

大家好
我在一个建筑项目上绊倒了。
我正在使用我的组件,但是在项目中有这些API例程,但是
未定义的参考误差。
API例程具有模块实例名的前缀。
到目前为止,这个项目已经成功建成。
我做了一些改变,之后问题就发生了。
设备是PSoC5LP,创建者2.2SP1
有人有什么建议,请告诉我。
---------Bug启动:09/22/2013 13:09:46项目:P5LPYBL,配置:ARM GCC 4.4.1调试------------
代码生成步骤是最新的。
ARMNE-EABI- GCC.EXE-I.WNO主- I/衍生的源/ PSoC5-MCPU= CORTEX-M3-MTEMP- Wall
-G-D调试-瓦城,-ALH= .CORTEXM3ARMGGCGU414Debug MUL.LS-O2-FFUNCTONE部分-C.M.C.O.CORTEXM3ARMYGCCU414\Debug Maul.O
ARMNE-EABI- AR.EXE-RES.CORTEXM3ARMGCGCUSP141 调试 P5LPYBL ..CORTEXM3ARMGGCGU.41DECGEDEL1.O.CORTEXM3ARMYGCCU414Debug Le2.2.o
CORTEXM3cARMGCGC414Debug Re4.O.CORTEXM3ARMYGCCU414Debug Le.8. O.CORTEXM3ARMYGCCU414\Debug GND1.O
CORTEXM3CCUC414Debug GND2.O.CORTEXM3ARMYGCCU414Debug GND4.O.CORTEXM3ARMYGCCU414Debug GND8.O
CORTEXM3CCUM414Debug  BooTooBuld.O.CordExp3ARMGGCGU.41Debug CaleE.CM3.0.O.CORTEXM3ARMYGCCU414\Debug CyBoOTasMGNU.O
CORTEXM3\CARDMAC.O.CORTEXM3ARMYGCCU414Debug CyFlash .O.CORTEXM3ARMXGCCU414Debug [CYLIB .O.CORTEXM3ARMYGCCY41\Debug CYPM.O
CORTEXMGCUC44 1 调试 CYSPC .O.CORTEXM3ARMGGCGU414Debug CyTURL.O.CORTEXM3ARMYGCCU414\Debug MulkReq.O
CORTEXMGCKY44 1 调试 DDSYDDS .O.CORTEXM3ARMGGCGU414Debug PoSoCult.O.CORTEXM3ARMXGCCU414\Debug  DDSSSTATESUBSTEX.O
CORTEXMGCUX41Debug DDSCLoC.O.CORTEXM3ARMGGCGU.44 1 调试 DDSYIDAC.O.CORTEXM3ARMYGCCU4401 调试DDSYIDACYPM.O
CORTEXMGCKY44 1 调试 DDSY控制阶段4.O.CORTEXM3  ARMGGCGU.44 1 调试 DDSX控制阶段3.3.O.CORTEXM3ARMYGCCUC44 1 调试 DDSX控制阶段2.O
CORTEXMGCUC4141 调试 DDSX控制阶段1.O.CORTEXM3  ARMGGCGC44 1 调试 DDSX控制TROBBE。
ARMNONE-EABI AR.EXE:创建.CORTEXM3ARMGGCCU414DEXGP5LPYBL A
ARMNE-EABI- GCC.EXE-MPONGROUN= ARMV7 M -MFIX-CORTEX-M3-LDRD -T。
CORTEXMGCUC.41\Debug p5LppL.MAP-WL,启动组-O..CORTEXM3ARMGGCGU414Debug  P5LPBL.ELF.CORTEXM3ARMGGCGU414Debug MU.O.CORTEXM3ARMGGCCU414Debug CM3START.O
CORTEXM3ARMGCGCU414DEXGP5LPYBL。a“D:程序文件 CyPress  PSOC创建者 2.2  PSOC创建者 PSoC 内容 CysCuttoCultCysCultCudio.CYLBCORTEXM3ARMGCGCUX41Debug  CysCultCultual.A“-Wl,-EnthGROUP组”
CORTEXM3ARMGCGCUSP141 调试 P5LPYBL A(DDSYDDS,O):在函数“DDS1设置频率”中:
h:桌面@ pSOC3@ p4p5Lppbl  p5Lpybl。CysN//派生的源:pSOC5/DDSYDDS。C:26:未定义的引用“DDSX控制StrubEyWrad”
h:桌面@ pSOC3@ p4p5Lppbl  p5Lpybl。CysN//派生的源:pSOC5/DDSYDDS。C:30:“DDSX控制阶段1写”未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:31:对` dds_controlphase2_write '未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:32:对` dds_controlphase3_write '未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:33:对` dds_controlphase4_write '未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:35:对` dds_controlstrobe_write '未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:37:对` dds_controlstrobe_write '未定义的引用
    p5lp_bl CortexM3 arm_gcc_441调试,(dds_dds。O):在功能` dds_start”:
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:九:以` dds_controlstrobe_write '未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:10:对` dds_controlphase1_write '未定义的引用
命令' arm-none-eabi-gcc .exe”失败,退出代码“1”。
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:11:对` dds_controlphase2_write '未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:12:对` dds_controlphase3_write '未定义的引用
H:桌面”“ p5lp_bl PSoC3 P4  p5lp_bl。cydsn /。 generated_source  psoc5 / dds_dds。C:13:对` dds_controlphase4_write '未定义的引用
LCD返回1退出状态
---------------建立失败:9月22日2013年13:09:54 ---------------
/很抱歉长期挂牌/ /

以上来自于百度翻译


     以下为原文
   Hello Everyone      

     I am stumbling on a Building project.      

     I am using my component, however there are these API routines in the project but      

     UNDEFINED REFERENCE ERROR had occure.      

                        

     API routines have prefix of instance name of module.      

     Until now, this project was build successfully but      

     I had make some changes, after then the problem has become happening.      

                        

     Device is PSoC5LP, Creator 2.2sp1      

     Someone have any suggestion, please let me know.      

                       

                       

     --------------- Build Started: 09/22/2013 13:09:46 Project: P5LP_BL, Configuration: ARM GCC 4.4.1 Debug ---------------      

     The code generation step is up to date.      

     arm-none-eabi-gcc.exe -I. -Wno-main -I./Generated_Source/PSoC5 -mcpu=cortex-m3 -mthumb -Wall       

     -g -D DEBUG -Wa,-alh=.CortexM3ARM_GCC_441Debugmain.lst -O2 -ffunction-sections -c .main.c -o .CortexM3ARM_GCC_441Debugmain.o      

     arm-none-eabi-ar.exe -rs .CortexM3ARM_GCC_441DebugP5LP_BL.a .CortexM3ARM_GCC_441DebugLED1.o .CortexM3ARM_GCC_441DebugLED2.o       

     .CortexM3ARM_GCC_441DebugLED4.o .CortexM3ARM_GCC_441DebugLED8.o .CortexM3ARM_GCC_441DebugGND1.o       

     .CortexM3ARM_GCC_441DebugGND2.o .CortexM3ARM_GCC_441DebugGND4.o .CortexM3ARM_GCC_441DebugGND8.o       

      .CortexM3ARM_GCC_441DebugBootloadable.o .CortexM3ARM_GCC_441Debugcore_cm3.o .CortexM3ARM_GCC_441DebugCyBootAsmGnu.o       

     .CortexM3ARM_GCC_441DebugCyDmac.o .CortexM3ARM_GCC_441DebugCyFlash.o .CortexM3ARM_GCC_441DebugCyLib.o .CortexM3ARM_GCC_441DebugcyPm.o       

     .CortexM3ARM_GCC_441DebugCySpc.o .CortexM3ARM_GCC_441Debugcyutils.o .CortexM3ARM_GCC_441DebugControlReg.o       

     .CortexM3ARM_GCC_441DebugDDS_DDS.o .CortexM3ARM_GCC_441DebugPinSignal.o .CortexM3ARM_GCC_441DebugDDS_StatusPhase.o       

      .CortexM3ARM_GCC_441DebugDDsClock.o .CortexM3ARM_GCC_441DebugDDS_iDAC.o .CortexM3ARM_GCC_441DebugDDS_iDAC_PM.o       

      .CortexM3ARM_GCC_441DebugDDS_ControlPhase4.o .CortexM3ARM_GCC_441DebugDDS_ControlPhase3.o .CortexM3ARM_GCC_441DebugDDS_ControlPhase2.o       

     .CortexM3ARM_GCC_441DebugDDS_ControlPhase1.o .CortexM3ARM_GCC_441DebugDDS_ControlStrobe.o .CortexM3ARM_GCC_441Debugcyfitter_cfg.o      

     arm-none-eabi-ar.exe: creating .CortexM3ARM_GCC_441DebugP5LP_BL.a      

     arm-none-eabi-gcc.exe -mthumb -march=armv7-m -mfix-cortex-m3-ldrd -T .Generated_SourcePSoC5cm3gcc.ld -Wl,-Map,      

      .CortexM3ARM_GCC_441DebugP5LP_BL.map -Wl,--start-group -o .CortexM3ARM_GCC_441DebugP5LP_BL.elf .CortexM3ARM_GCC_441Debugmain.o .CortexM3ARM_GCC_441DebugCm3Start.o       

     .CortexM3ARM_GCC_441DebugP5LP_BL.a "D:Program FilesCyPRESSPSoC Creator2.2PSoC CreatorpsoccontentcycomponentlibraryCyComponentLibrary.cylibCortexM3ARM_GCC_441DebugCyComponentLibrary.a" -Wl,--end-group      

      .CortexM3ARM_GCC_441DebugP5LP_BL.a(DDS_DDS.o): In function `DDS_SetFrequency':      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:26: undefined reference to `DDS_ControlStrobe_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:30: undefined reference to `DDS_ControlPhase1_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:31: undefined reference to `DDS_ControlPhase2_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:32: undefined reference to `DDS_ControlPhase3_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:33: undefined reference to `DDS_ControlPhase4_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:35: undefined reference to `DDS_ControlStrobe_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:37: undefined reference to `DDS_ControlStrobe_Write'      

      .CortexM3ARM_GCC_441DebugP5LP_BL.a(DDS_DDS.o): In function `DDS_Start':      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:9: undefined reference to `DDS_ControlStrobe_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:10: undefined reference to `DDS_ControlPhase1_Write'      

      The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.        

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:11: undefined reference to `DDS_ControlPhase2_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:12: undefined reference to `DDS_ControlPhase3_Write'      

      H:Desktop@PSoC3@P4P5LP_BLP5LP_BL.cydsn/.Generated_SourcePSoC5/DDS_DDS.c:13: undefined reference to `DDS_ControlPhase4_Write'      

     collect2: ld returned 1 exit status      

     --------------- Build Failed: 09/22/2013 13:09:54 ---------------      

                       

      // sorry for long listing ///        

                       

回帖(6)

王琳

2019-7-11 13:02:59
我假设您重新生成的代码与清单的第一行相反。我见过像你这样的错误,当钳工从设计中去掉未连接的硬件部件(甚至是内部部件)。参见。检查您的布线和连接未使用的输入引脚到一个未使用的引脚(数字高或低将被优化),并继续类似的输出。鲍伯

以上来自于百度翻译


     以下为原文
          I assume you have the code generated anew in opposite to the firstlines of your listing. I have seen errors like yours when the fitter removes unconnected hardware-parts from the design to which other parts (even internal ones!) refer to. Check your wiring and connect unused input-pins to an unused pin (digital high or low will be optimized out) and proceed with outputs similarily.   
   
Bob ^^^^^^^^^^   
举报

姜钰

2019-7-11 13:19:47
关键问题是:你改变了什么使它停止工作?您能撤消这些更改,并重新运行吗?

以上来自于百度翻译


     以下为原文
  The key question is: what did you change to make it stop working? Can you undo these changes, and get it working again?
举报

刘晓燕

2019-7-11 13:38:36
Bob Marlowe先生是对的,这几乎是一个非常复杂的问题,我使用Verilog模块。这些控制寄存器连接到该输入,合成优化器已经删除这些寄存器和API,但实际上我仍然需要它。所以,我必须考虑另一个没有问题的设计。谢谢您。

以上来自于百度翻译


     以下为原文
          Mr.Bob Marlowe is right almost   
This is very complex problem, I'm using Verilog module.   
These control register were connected to that input   
And Synthesis optimizer has remove these registers and APIs   
Nonetheless still I need it actually.   
   
So on, I have to consider another design that have no problem.   
Thank you.   
举报

刘晓燕

2019-7-11 13:57:59
HI HLI是的,我有一个备份,可以回滚到最后一个状态,但改进也需要做。有什么改进?我已经把这些寄存器从2增加到4,谢谢。

以上来自于百度翻译


     以下为原文
          Hi HLi   
Yes I have a back up and can be roll back to last status but   
Improvement also need to do.   
What improvement? I have increase these registers from 2 to 4   
Thank you.   
举报

更多回帖

发帖
×
20
完善资料,
赚取积分