Who can tell me the steps to initialize USB in detail - VxWorks

This is a discussion on Who can tell me the steps to initialize USB in detail - VxWorks ; Hi all CPU: 8247; USB Chip: PDIUSBP11AD Tornado 2.2 How to do to get that USB in Mass Stoage is OK?? Who can tell me the steps in detail? Thanks....

+ Reply to Thread
Results 1 to 4 of 4

Thread: Who can tell me the steps to initialize USB in detail

  1. Who can tell me the steps to initialize USB in detail

    Hi all

    CPU: 8247; USB Chip: PDIUSBP11AD
    Tornado 2.2

    How to do to get that USB in Mass Stoage is OK?? Who can tell me the
    steps in detail?

    Thanks.


  2. Re: Who can tell me the steps to initialize USB in detail

    Hi:

    Do you already have usb block drivers installed? If you do a devs, do
    you see any devices that start with "usb". Those would be created if
    you had a call to usbBulkDevCreate() somewhere in your user startup
    code and had the usb device drivers turned on in your project and they
    supported the device you are using.

    The whole process of getting as usb stack up is in the WRS USB
    Developer's Programmers Guide, but if you have the required bulk blk
    driver in your kernel and the usb device is already created, then the
    "final" step if just to a pBulkDosVol = dosFsDevCreate ("/UsbMsxxx/x",
    pBlkDev, 10, NONE); to create dos fs file system on it.

    Good luck,
    lc
    lichlin wrote:
    > Hi all
    >
    > CPU: 8247; USB Chip: PDIUSBP11AD
    > Tornado 2.2
    >
    > How to do to get that USB in Mass Stoage is OK?? Who can tell me the
    > steps in detail?
    >
    > Thanks.



  3. Re: Who can tell me the steps to initialize USB in detail


    LarryC wrote:
    > Hi:
    >
    > Do you already have usb block drivers installed? If you do a devs, do
    > you see any devices that start with "usb". Those would be created if
    > you had a call to usbBulkDevCreate() somewhere in your user startup
    > code and had the usb device drivers turned on in your project and they
    > supported the device you are using.
    >
    > The whole process of getting as usb stack up is in the WRS USB
    > Developer's Programmers Guide, but if you have the required bulk blk
    > driver in your kernel and the usb device is already created, then the
    > "final" step if just to a pBulkDosVol = dosFsDevCreate ("/UsbMsxxx/x",
    > pBlkDev, 10, NONE); to create dos fs file system on it.
    >
    > Good luck,
    > lc
    > lichlin wrote:
    > > Hi all
    > >
    > > CPU: 8247; USB Chip: PDIUSBP11AD
    > > Tornado 2.2
    > >
    > > How to do to get that USB in Mass Stoage is OK?? Who can tell me the
    > > steps in detail?
    > >
    > > Thanks.


    Hi

    Thanks first.
    Do you already have usb block drivers installed? Which one? Can you
    tell me the file name in the directory of target?

    When i turn on the "USB Host Stack" and "USB Host Stack Init" to
    compile the project, i find some errors.
    ldppc -X -N -e _sysInit -Ttext 00010000 \
    dataSegPad.o partialImage.o ctdt.o symTbl.o \
    -T D:\Tornado\for_ppc_2.2\target\h\tool\gnu\ldscripts \link.RAM -o
    vxWorks
    partialImage.o: In function `usbPciClassFind':
    d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:158

    : undefined reference to `pciFindClass'
    partialImage.o: In function `usbPciByteGet':
    d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:198

    : undefined reference to `pciConfigInByte'
    partialImage.o: In function `usbPciWordGet':
    d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:228

    : undefined reference to `pciConfigInWord'
    partialImage.o: In function `usbPciDwordGet':
    d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:258

    : undefined reference to `pciConfigInLong'
    partialImage.o: In function `usbPciIntConnect':
    d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:602

    : undefined reference to `pciIntConnect'
    d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:607

    : undefined reference to `pciIntDisconnect2'
    partialImage.o: In function `usbPciIntRestore':
    d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:643

    : undefined reference to `pciIntDisconnect2'
    make: *** [vxWorks] Error 0x1

    How to do?

    Why is the file "usbPciStub.c" added into the project??


  4. Re: Who can tell me the steps to initialize USB in detail

    Interesting. Those are all standard pci calls in pciConfigLib
    (pciConfiglib.c and pciConfigLib.h). The used to be in pciIoMapLib and
    some older BSP have their own version of pci access routines with "sys"
    in front of them, but yours are the regular WRS funcstions. You have
    pci included in your project? Does usbPciStub have the header for
    pciConfigLib included in?

    My bsp setup is a little differnent than yours - I just pick either
    usb1.1 or usb2.0, and the put #include USB_DEVICE and it seems to work.

    You do have to have the WRS license "usb libraries" besides the BSP
    support, unless yours is different that my setup.


    usbPciStub is sort of an facade patten that maps the regular wind river
    pciConfigLib functions (pciXXX) to functions called usbpciXXX. It's
    sort of a relic from when WRS didn't provide pci access functions, and
    each BSP vendor wrote their onw in sysLib. This layer provided a std
    usbpci interface for usb driver writers.

    You could take it out and see if you have lots of undefines for usbPci
    functions.


    Good luck,
    lc

    lichlin wrote:
    > LarryC wrote:
    > > Hi:
    > >
    > > Do you already have usb block drivers installed? If you do a devs, do
    > > you see any devices that start with "usb". Those would be created if
    > > you had a call to usbBulkDevCreate() somewhere in your user startup
    > > code and had the usb device drivers turned on in your project and they
    > > supported the device you are using.
    > >
    > > The whole process of getting as usb stack up is in the WRS USB
    > > Developer's Programmers Guide, but if you have the required bulk blk
    > > driver in your kernel and the usb device is already created, then the
    > > "final" step if just to a pBulkDosVol = dosFsDevCreate ("/UsbMsxxx/x",
    > > pBlkDev, 10, NONE); to create dos fs file system on it.
    > >
    > > Good luck,
    > > lc
    > > lichlin wrote:
    > > > Hi all
    > > >
    > > > CPU: 8247; USB Chip: PDIUSBP11AD
    > > > Tornado 2.2
    > > >
    > > > How to do to get that USB in Mass Stoage is OK?? Who can tell me the
    > > > steps in detail?
    > > >
    > > > Thanks.

    >
    > Hi
    >
    > Thanks first.
    > Do you already have usb block drivers installed? Which one? Can you
    > tell me the file name in the directory of target?
    >
    > When i turn on the "USB Host Stack" and "USB Host Stack Init" to
    > compile the project, i find some errors.
    > ldppc -X -N -e _sysInit -Ttext 00010000 \
    > dataSegPad.o partialImage.o ctdt.o symTbl.o \
    > -T D:\Tornado\for_ppc_2.2\target\h\tool\gnu\ldscripts \link.RAM -o
    > vxWorks
    > partialImage.o: In function `usbPciClassFind':
    > d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:158
    >
    > : undefined reference to `pciFindClass'
    > partialImage.o: In function `usbPciByteGet':
    > d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:198
    >
    > : undefined reference to `pciConfigInByte'
    > partialImage.o: In function `usbPciWordGet':
    > d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:228
    >
    > : undefined reference to `pciConfigInWord'
    > partialImage.o: In function `usbPciDwordGet':
    > d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:258
    >
    > : undefined reference to `pciConfigInLong'
    > partialImage.o: In function `usbPciIntConnect':
    > d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:602
    >
    > : undefined reference to `pciIntConnect'
    > d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:607
    >
    > : undefined reference to `pciIntDisconnect2'
    > partialImage.o: In function `usbPciIntRestore':
    > d:\2006-2-6-SRP\t2\4\default\D:\Tornado\for_ppc_2.2\target\con fig\ads8260\usbPciStub.c:643
    >
    > : undefined reference to `pciIntDisconnect2'
    > make: *** [vxWorks] Error 0x1
    >
    > How to do?
    >
    > Why is the file "usbPciStub.c" added into the project??



+ Reply to Thread