制作[ 1 ]:进入目录'C/:MPEBAXHEX/MPLABXPROST/UBVV.x'-FB-NBjtudio/Maun-Fiel-Deult.MK-Dist/Deult/UsBVv.x.Puth.xOutStudio(2):从C:/Script文件(x86)/Microchip /MPLAB C30/bin /bin中加入目录:C//VIGNESHE/MPLABXPROST/UBVV.X.In文件…//…/Suffelal24F/Pic24FyPLIb.h:44,从UBMeN.C:/程序文件(x86)/Microchip /MPLAB C30/bin /….. /支持/外围设备24F/DMA。H:953:2:警告:“在这个目标上不建立”文件中包含从C//程序文件(X86)/ Microchip /MPLAB C30/bin / bin /…/支持/ PyPHEraly24F/Pic24FyPLIB。h:45,来自UBMeN.C:/程序文件(X86)/Microchip /MPLAB/BIN/BI/..…/Suffelal240F/DPSLP。H:137:2:警告:“C”/程序文件(X86)/Microchip /MPLAB C30/BIN/BI/…/Suffelal24F/PIC24FYPL中包含的文件“不建立在这个目标上”。iB.H:46,从UBMeN.C:/程序文件(x86)/Microchip /MPLAB/BIN/BI/..…/Suffelal24F/ECRC。H:399:2:警告:“不在这个目标上建立”文件中包含的来自C/:程序文件(X86)/Microchip /MPLAB C30/BIN/BI..…/Suffelal24F/PIC24FYPLIB。H:47,来自于UBMA。在C中:8:C/MPLA/MPLAB/30BI/BI/B/..…/Suffelal24F/EMP. H:1201:2:警告:“不建立在这个目标上”的文件包含在从UbMeN. C:15:…//..…/Microchip /ML/V2012-04-03/Microchip /包含/USB /UBSHOST。h:111:6:错误:应用程序必须出错。定义UBSImPrimalVBuSUBLASH为OTG的主机100或8mA。在文件中包含从UbMeN. C:15:…//..…/Microchip / MLA/V2012-04-03/Microchip /包含/USB /UBSHOST。h:329:“UBBEAGEL”…///…/Microchip /MLA/V2012-04-03/Microchip /包含/USB /UBSHOST之前的语法错误。H:1423:ERRo:在VBestEvest.UbMeun.C中的语法错误:在函数“主”中:警告:控件到达非虚函数的结尾。主体:C:24:错误:“UBSUpApple EngestEnEnter and EnBulEngEng:C:24:语法错误:在AdvestsUbMeun.C:25:警告:RET之前的语法错误:RETURN类型默认为“UnbUpBestEngult:”函数:UbMeNealEvestHANDELL::错误:“事件”未声明(在这个函数中首次使用):UbMe.C:26:错误(每个未声明的标识符仅在OncUsBbMe.C:26:错误:对于它出现的每个函数)。VBuSRealEdvestPosie'未声明(第一次使用此函数)UbMe.c:30:错误:“EnvivVBuxRelaseE.POWER”未声明(在该函数中首次使用):EbMeun.C:31:错误:“EnvithHubAtNo附着”未声明(在该函数中首次使用):UbMeun.C:32:错误:“EnvithUnService Type”未声明(第一次使用在T中)他的函数“UbMeun.C:33:错误:“EnvivAnNoNoToNo.Read”未被声明(第一次使用此函数):UbMn.c:34:错误:“EnvithCclipTyInTyOrror”未声明(在这个函数中首次使用):UbMeun.C:35:错误:“EnvithOutux的“内存”未声明(在这个函数中首次使用):UbMeun. C:36:错误:EndothUnSPECiFiEdError“未声明(第一次使用此函数)UbMeun.C:37:错误:“true”未声明(第一次使用此函数)UbMeun.C:41:错误:“EnvithCdcNo附着”未声明(在该函数中首次使用):UbMeun. C:42:“EndojCCDCNONE”未声明(第一次使用此函数)UbMeun. C:43:错误:EVuntCdC.CuxRead做了“未声明(第一次使用此函数)UbMn.c:44:错误:‘EnvivCdCyCuMrWrdErgEndo'(第一次使用此函数)UbMeun.C:45:错误:‘EnvithCdCdDATA.Read’doRun'未声明(第一次使用此函数)UbMeun.C:46:错误:‘EnvithCdCdDaAdWrWeWr.Error’未声明”(在这个函数中的第一次使用):UbMeun.C:47:“EnvivCdcCyRead”未声明(在这个函数中首次使用):UbMn.c:48:错误:“EnvithCdcNaKiTimeOUT”未声明(在该函数中首次使用):UbMeun.C:警告:隐式声明函数“AppHythCdBaseCeVeEnEdLeLeR'UbMeun.C:49:错误:A”dWrave'未声明(第一次使用此函数)UbMe.c:49:错误:“数据”在这个函数中(第一次使用此函数):UbMe.C:49:错误:“大小”未声明(在这个函数中首次使用):UbMeun.C:56:错误:“false”未声明(在这个函数中首次使用):UbMeun.C:58:警告:控件到达非终结符-虚函数(2):*[B:\程序文件(x86) Microchip MPLAB C30bin PIC30GCC .exe“-G-OMF = ELF-X-C-C-MCPU=24FJ256GB106- FNO短双壁”-I.//..…./..…程序文件(X86)/Microchip /XC16/V1.26/ICOR/LEGA-C“-MMD -MF构建/默认/产品ON/UBMNE.O.D.Ong/Deult/Ung/UbMeN.O.BbMeN.C NbPosi/MaFaMeCurrime.MK:106:目标“Buff/Deule/Studio/UbMeNe.O.FrimeDeD[[ 1 ] ]:***[Buffic CONF]错误2的配方
以上来自于百度翻译
以下为原文
make[1]: Entering directory 'C:/Users/vigneshed/MPLABXProjects/USBvv.X'
make -f nbproject/Makefile-default.mk dist/default/production/USBvv.X.production.hex
make[2]: Entering directory 'C:/Users/vigneshed/MPLABXProjects/USBvv.X'
In file included from c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/PIC24F_plib.h:44,
from u***main.c:8:
c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/dma.h:953:2: warning: #warning "Does not build on this target"
In file included from c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/PIC24F_plib.h:45,
from u***main.c:8:
c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/dpslp.h:137:2: warning: #warning "Does not build on this target"
In file included from c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/PIC24F_plib.h:46,
from u***main.c:8:
c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/ecrc.h:399:2: warning: #warning "Does not build on this target"
In file included from c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/PIC24F_plib.h:47,
from u***main.c:8:
c:/program files (x86)/microchip/mplab c30/bin/bin/../../support/peripheral_24F/epmp.h:1201:2: warning: #warning "Does not build on this target"
In file included from u***main.c:15:
../../../../Microchip/mla/v2012-04-03/Microchip/Include/USB/u***_host.h:111:6: error: #error The application must define USB_INITIAL_VBUS_CURRENT as 100 mA for Host or 8-100 mA for OTG.
In file included from u***main.c:15:
../../../../Microchip/mla/v2012-04-03/Microchip/Include/USB/u***_host.h:329: error: syntax error before 'USB_EVENT'
../../../../Microchip/mla/v2012-04-03/Microchip/Include/USB/u***_host.h:1423: error: syntax error before 'vbusEvent'
u***main.c: In function 'main':
u***main.c:23: warning: control reaches end of non-void function
u***main.c: At top level:
u***main.c:24: error: syntax error before 'USB_ApplicationEventHandler'
u***main.c:24: error: syntax error before 'address'
u***main.c:25: warning: return type defaults to 'int'
u***main.c: In function 'USB_ApplicationEventHandler':
u***main.c:26: error: 'event' undeclared (first use in this function)
u***main.c:26: error: (Each undeclared identifier is reported only once
u***main.c:26: error: for each function it appears in.)
u***main.c:29: error: 'EVENT_VBUS_REQUEST_POWER' undeclared (first use in this function)
u***main.c:30: error: 'EVENT_VBUS_RELEASE_POWER' undeclared (first use in this function)
u***main.c:31: error: 'EVENT_HUB_ATTACH' undeclared (first use in this function)
u***main.c:32: error: 'EVENT_UNSUPPORTED_DEVICE' undeclared (first use in this function)
u***main.c:33: error: 'EVENT_CANNOT_ENUMERATE' undeclared (first use in this function)
u***main.c:34: error: 'EVENT_CLIENT_INIT_ERROR' undeclared (first use in this function)
u***main.c:35: error: 'EVENT_OUT_OF_MEMORY' undeclared (first use in this function)
u***main.c:36: error: 'EVENT_UNSPECIFIED_ERROR' undeclared (first use in this function)
u***main.c:37: error: 'true' undeclared (first use in this function)
u***main.c:41: error: 'EVENT_CDC_ATTACH' undeclared (first use in this function)
u***main.c:42: error: 'EVENT_CDC_NONE' undeclared (first use in this function)
u***main.c:43: error: 'EVENT_CDC_COMM_READ_DONE' undeclared (first use in this function)
u***main.c:44: error: 'EVENT_CDC_COMM_WRITE_DONE' undeclared (first use in this function)
u***main.c:45: error: 'EVENT_CDC_DATA_READ_DONE' undeclared (first use in this function)
u***main.c:46: error: 'EVENT_CDC_DATA_WRITE_DONE' undeclared (first use in this function)
u***main.c:47: error: 'EVENT_CDC_RESET' undeclared (first use in this function)
u***main.c:48: error: 'EVENT_CDC_NAK_TIMEOUT' undeclared (first use in this function)
u***main.c:49: warning: implicit declaration of function 'APP_HostCDCBasicEventHandler'
u***main.c:49: error: 'address' undeclared (first use in this function)
u***main.c:49: error: 'data' undeclared (first use in this function)
u***main.c:49: error: 'size' undeclared (first use in this function)
u***main.c:56: error: 'false' undeclared (first use in this function)
u***main.c:58: warning: control reaches end of non-void function
make[2]: *** [build/default/production/u***main.o] Error 1
"C:Program Files (x86)MicrochipMPLAB C30binpic30-gcc.exe" -g -omf=elf -x c -c -mcpu=24FJ256GB106 -fno-short-double -Wall "-I../../../../Program Files (x86)/Microchip/xc16/v1.26/include/lega-c" -MMD -MF build/default/production/u***main.o.d -o build/default/production/u***main.o u***main.c
nbproject/Makefile-default.mk:106: recipe for target 'build/default/production/u***main.o' failed
make[1]: *** [.build-conf] Error 2