Import USB Driver Code & Project Prop(Build Opt) - Add USB driver to CCS-PJ. „  „€„Ÿpdk1.0.11 „  „  „€„Ÿti „€„Ÿdrv „€„Ÿusb „  Settings.h „  usbdaudio.h „  usbdbulk.h „  usbdmsc.h „  usbhmsc.h „  USBver.h „  usb_drv.h „  usb_osal.h „  „₯„Ÿsoc „  „€„Ÿam574x „  hw_usb.h „  usb_soc.c „  usb_wrapper.c „  „€„Ÿsrc „  usb_drv.c „  „₯„Ÿdwc „  hw_depcmdpar.h „  hw_dwc_usb.h „  hw_trb_device.h „  hw_usb_depcmd.h „  usb_dwc.c „  usb_dwc_dcd.c „  usb_dwc_dcd.h „  usb_hcd_xhci.h „  usb_xhci_hcd.c „  „₯„Ÿinclude „  debug.h „  error.h „  hardware.h [copy from C:\ti\pdk_am57xx_1_0_11\packages\ti\drv\usb\example\common\hardware.h] „  hw_types.h „  types.h „  usb-ids.h „  UsbDefs.h „  usb_bulk_structs.h „  usb_dcd_interface.h „  usb_dwc.h „  usb_spec_defines.h „  usb_wrapper.h „  „₯„Ÿmusb „  musb.h „  usb_musb_dcd.h „  „€„Ÿusb_func „₯„Ÿcommon „  usbtick.c „  usb_desc.c „  „₯„Ÿdevice „  usbdaudio.c.txt [Unnecessary files] „  usbdbulk.c „  usbdcdesc.c „  usbdmsc.c „  usb_dcd_interface.c „  usb_dev_dman.c „  „₯„Ÿhost „  usbhenum_dwc.c „  usbhenum_musb.c.txt [Unnecessary files] „  usbhmsc.c „  usbhscsi.c „  „€„Ÿinclude usbaudio.h usbdbulkint.h usbdevice.h usbhost.h usbhscsi.h usblib.h usblibpriv.h usbmsc.h usb_dev_dman.h usb_dev_object.h - Project prop (Add Include path) - delete at cfg file Unnecessary ti.drv.usb.aa15fg ! // del usb // var Usb = xdc.loadPackage('ti.drv.usb'); // var usbSettings = xdc.useModule('ti.drv.usb.Settings'); // usbSettings.socType = socType; // del usb - Our CCS PJ Build opt ==== Build log (CCS) ======================== **** Build of configuration Debug for project OurProject **** "C:\\ti\\ccsv8\\utils\\bin\\gmake" -j 4 all -O Building file: "../pdk1.0.11/ti/drv/usb/src/dwc/usb_dwc_dcd.c" Invoking: GNU Compiler "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5748 -Dcore0 -DidkAM574x -DSOC_AM574x -Dgcc -I"C:/ti/pdk_am57xx_1_0_11/packages" .... Include path ... : -O2 -g -gdwarf-3 -gstrict-dwarf -c -mlittle-endian -mno-unaligned-access -fno-inline -MMD -MP -MF"pdk1.0.11/ti/drv/usb/src/dwc/usb_dwc_dcd.d" -MT"pdk1.0.11/ti/drv/usb/src/dwc/usb_dwc_dcd.o" -std=gnu99 @"configPkg/compiler.opt" -o"pdk1.0.11/ti/drv/usb/src/dwc/usb_dwc_dcd.o" "../pdk1.0.11/ti/drv/usb/src/dwc/usb_dwc_dcd.c" Finished building: "../pdk1.0.11/ti/drv/usb/src/dwc/usb_dwc_dcd.c" Building target: "OurProject.out" Invoking: GNU Linker Flags: -mtune=cortex-a15 -marm -Dam5748 -Dcore0 -DidkAM574x -DSOC_AM574x -Dgcc -O2 -g -gdwarf-3 -gstrict-dwarf -mlittle-endian -mno-unaligned-access -fno-inline -mfloat-abi=hard -Wl,-Map,"OurProject.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/bios_6_76_00_08/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 --specs=nano.specs -static C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am574x/a15_0/REV2/icss_dualemac_PRU0.bin C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/icss_emac/firmware/icss_dualemac/bin/am574x/a15_0/REV2/icss_dualemac_PRU1.bin "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" @"ccsLinker.opt" -o"OurProject.out" Finished building target: "OurProject.out" **** Build Finished **** ==== Build log (gmake) ================== This program built for Windows32 Reading makefiles... Updating goal targets.... File `comp_libs' does not exist. File `usb' does not exist. Must remake target `usb'. gmake[4]: Entering directory `C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/usb' gmake -C C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/usb -f build/makefile.mk GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for Windows32 Reading makefiles... gmake[5]: Entering directory `C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/usb' C:/ti/pdk_am57xx_1_0_11/packages/ti/build/makerules/rules_a15.mk:149: target `package/all/src/dwc' given more than once in the same rule. Updating goal targets.... File `all' does not exist. File `a15_0' does not exist. Must remake target `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release'. C:/ti/xdctools_3_50_03_33_core/bin/mkdir -p C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release Successfully remade target file `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release'. Must remake target `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/.deps'. C:/ti/xdctools_3_50_03_33_core/bin/mkdir -p C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/.deps Successfully remade target file `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/.deps'. Must remake target `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/usb_drv.oa15fg'. # Compiling am574x:a15_0:release:usb: src/usb_drv.c C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc -MD -MF C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/.deps/usb_drv.P -DMAKEFILE_BUILD -Wimplicit -Wall -Wunused -Wunknown-pragmas -ffunction-sections -fdata-sections -c -mcpu=cortex-a15 -g -mfpu=neon -mfloat-abi=hard -mabi=aapcs -mapcs-frame -D__ARMv7 -Werror -O2 -s -DNDEBUG -Dgcc -DBUILD_A15_0 -mno-unaligned-access -DSOC_AM574x -IC:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include -IC:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include/newlib-nano -I. -Isrc -Isrc/usb_func/common -Isrc/usb_func/device -Isrc/usb_func/host -Isrc/include -Isrc/usb_func/include -Isrc/musb -Isoc/am574x -Isrc/dwc -Isoc -Isoc/am574x -IC:/ti/pdk_am57xx_1_0_11/packages -IC:/ti/edma3_lld_2_12_05_30C/packages -I/apps/apps_nonbam/inc -I/ -I/common -o C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/usb_drv.oa15fg src/usb_drv.c Successfully remade target file `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/usb_drv.oa15fg'. Must remake target `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/usb_desc.oa15fg'. # Compiling am574x:a15_0:release:usb: src/dwc/usb_dwc_dcd.c C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc -MD -MF C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/.deps/usb_dwc_dcd.P -DMAKEFILE_BUILD -Wimplicit -Wall -Wunused -Wunknown-pragmas -ffunction-sections -fdata-sections -c -mcpu=cortex-a15 -g -mfpu=neon -mfloat-abi=hard -mabi=aapcs -mapcs-frame -D__ARMv7 -Werror -O2 -s -DNDEBUG -Dgcc -DBUILD_A15_0 -mno-unaligned-access -DSOC_AM574x -IC:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include -IC:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include/newlib-nano -I. -Isrc -Isrc/usb_func/common -Isrc/usb_func/device -Isrc/usb_func/host -Isrc/include -Isrc/usb_func/include -Isrc/musb -Isoc/am574x -Isrc/dwc -Isoc -Isoc/am574x -IC:/ti/pdk_am57xx_1_0_11/packages -IC:/ti/edma3_lld_2_12_05_30C/packages -I/apps/apps_nonbam/inc -I/ -I/common -o C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/usb_dwc_dcd.oa15fg src/dwc/usb_dwc_dcd.c Successfully remade target file `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/usb_dwc_dcd.oa15fg'. Must remake target `C:/ti/pdk_am57xx_1_0_11/packages/ti/binary/ti/drv/usb/usb/obj/am574x/a15/release/usb_dwc.oa15fg'.