• AVR Freaks

Hot!PIC32MZ2064DAG176 USB Host MSD support

Author
vvvarmab
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2011/02/20 22:23:35
  • Location: 0
  • Status: offline
2020/08/08 08:32:52 (permalink)
0

PIC32MZ2064DAG176 USB Host MSD support

Hi, I am new to Harmony and MZ and limited understanding on USB.
We have a custom board with "PIC32MZ2064DAG176" and we have customized msd_basic example to access USB stick access from the board.
When i enabled the debug messages here is the ones i am seeing from console.
 
USB Host Layer: Entering USB_HOST_Initialize().
USB Host Layer: Exiting USB_HOST_Initialize() successfully.
USB Host Layer: Bus 0 About to Open Root Hub Driver.
USBHS Driver: Driver Not yet ready to be opened in DRV_USBHS_Open().
USB Host Layer: Bus 0 Root Hub Driver Opened.
USB Host Layer: Bus 0 Enabling Root Hub operation.
USB Host Layer: Bus 0 Root Hub Operation Enabled.
USB Host Layer: Bus 0 Updating Attached Device states.
USB Host Layer: Bus 0 Device Attach detected. Starting Enumeration.
USB Host Layer: Bus 0 Device Reset Complete.
USB Host Layer: Bus 0 Requesting Device Descriptor.
USB Host Layer: Bus 0 Device Descriptor Request Failed. Trying again.
USB Host Layer: Bus 0 Device Attach detected. Starting Enumeration.
USB Host Layer: Bus 0 Device Reset Complete.
USB Host Layer: Bus 0 Requesting Device Descriptor.
USB Host Layer: Bus 0 Device Descriptor Request Failed. Trying again.
USB Host Layer: Bus 0 Device Attach detected. Starting Enumeration.
USB Host Layer: Bus 0 Device Reset Complete.
USB Host Layer: Bus 0 Requesting Device Descriptor.
USB Host Layer: Bus 0 Device Descriptor Request Failed. Trying again.
USB Host Layer: Bus 0 Device Attach detected. Starting Enumeration.
USB Host Layer: Bus 0 Device Reset Complete.
USB Host Layer: Bus 0 Requesting Device Descriptor.
USB Host Layer: Bus 0 Device Request Failed 3 times. Device not supported.
 
we are ending up with the status "irp->status = USB_HOST_IRP_STATUS_ERROR_DATA;" in the function "_DRV_USBHS_HOST_ControlTransferProcess"
We tried 5 5 different USBs (16GB and 32GB). All are throwing similar errors.
Can someone has experience in making the USB host work on "PIC32MZ2064DAG176"
Any guidance on further debugging it?
Thanks.
#1

1 Reply Related Threads

    ric
    Super Member
    • Total Posts : 28299
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC32MZ2064DAG176 USB Host MSD support 2020/08/10 03:22:59 (permalink)
    3 (2)
    Is your design based on any of the example boards?
    You haven't done something as simple as reversed the "D-" and "D+" connections?
     
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5