6 Replies Latest reply on Dec 15, 2013 8:53 PM by naman.jain

    Stumbling on a Building Project

    junichi.hiraoka

      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=.\CortexM3\ARM_GCC_441\Debug\main.lst -O2 -ffunction-sections -c .\main.c -o .\CortexM3\ARM_GCC_441\Debug\main.o     

       

         

      arm-none-eabi-ar.exe -rs .\CortexM3\ARM_GCC_441\Debug\P5LP_BL.a .\CortexM3\ARM_GCC_441\Debug\LED1.o .\CortexM3\ARM_GCC_441\Debug\LED2.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\LED4.o .\CortexM3\ARM_GCC_441\Debug\LED8.o .\CortexM3\ARM_GCC_441\Debug\GND1.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\GND2.o .\CortexM3\ARM_GCC_441\Debug\GND4.o .\CortexM3\ARM_GCC_441\Debug\GND8.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\Bootloadable.o .\CortexM3\ARM_GCC_441\Debug\core_cm3.o .\CortexM3\ARM_GCC_441\Debug\CyBootAsmGnu.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\CyDmac.o .\CortexM3\ARM_GCC_441\Debug\CyFlash.o .\CortexM3\ARM_GCC_441\Debug\CyLib.o .\CortexM3\ARM_GCC_441\Debug\cyPm.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\CySpc.o .\CortexM3\ARM_GCC_441\Debug\cyutils.o .\CortexM3\ARM_GCC_441\Debug\ControlReg.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\DDS_DDS.o .\CortexM3\ARM_GCC_441\Debug\PinSignal.o .\CortexM3\ARM_GCC_441\Debug\DDS_StatusPhase.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\DDsClock.o .\CortexM3\ARM_GCC_441\Debug\DDS_iDAC.o .\CortexM3\ARM_GCC_441\Debug\DDS_iDAC_PM.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\DDS_ControlPhase4.o .\CortexM3\ARM_GCC_441\Debug\DDS_ControlPhase3.o .\CortexM3\ARM_GCC_441\Debug\DDS_ControlPhase2.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\DDS_ControlPhase1.o .\CortexM3\ARM_GCC_441\Debug\DDS_ControlStrobe.o .\CortexM3\ARM_GCC_441\Debug\cyfitter_cfg.o     

       

         

      arm-none-eabi-ar.exe: creating .\CortexM3\ARM_GCC_441\Debug\P5LP_BL.a     

       

         

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

       

         

      .\CortexM3\ARM_GCC_441\Debug\P5LP_BL.map -Wl,--start-group -o .\CortexM3\ARM_GCC_441\Debug\P5LP_BL.elf .\CortexM3\ARM_GCC_441\Debug\main.o .\CortexM3\ARM_GCC_441\Debug\Cm3Start.o      

       

         

      .\CortexM3\ARM_GCC_441\Debug\P5LP_BL.a "D:\Program Files\CyPRESS\PSoC Creator\2.2\PSoC Creator\psoc\content\cycomponentlibrary\CyComponentLibrary.cylib\CortexM3\ARM_GCC_441\Debug\CyComponentLibrary.a" -Wl,--end-group     

       

         

      .\CortexM3\ARM_GCC_441\Debug\P5LP_BL.a(DDS_DDS.o): In function `DDS_SetFrequency':     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:26: undefined reference to `DDS_ControlStrobe_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:30: undefined reference to `DDS_ControlPhase1_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:31: undefined reference to `DDS_ControlPhase2_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:32: undefined reference to `DDS_ControlPhase3_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:33: undefined reference to `DDS_ControlPhase4_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:35: undefined reference to `DDS_ControlStrobe_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:37: undefined reference to `DDS_ControlStrobe_Write'     

       

         

      .\CortexM3\ARM_GCC_441\Debug\P5LP_BL.a(DDS_DDS.o): In function `DDS_Start':     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:9: undefined reference to `DDS_ControlStrobe_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/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\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:11: undefined reference to `DDS_ControlPhase2_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/DDS_DDS.c:12: undefined reference to `DDS_ControlPhase3_Write'     

       

         

      H:\Desktop\@PSoC3\@P4\P5LP_BL\P5LP_BL.cydsn/.\Generated_Source\PSoC5/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 ///