• AVR Freaks

Hot!PIC32MK USB CRC invalid error

Author
greenlight
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2018/11/16 00:34:06
  • Location: 0
  • Status: offline
2019/01/29 01:06:56 (permalink)
0

PIC32MK USB CRC invalid error

Dear community,
 
i am getting sometimes the following error at usb data transfer. The CRC-16 and CRC-5 is invalid. 
It is look like shift error.
The example of CRC-16 error is
invalid           0x1293 (hex)  0001001010010011 (bin)
computed      0x2527 (hex)  0010010100100111 (bin)
 
The example of CRC-5 error is
invalid           0x01 (hex)  00001 (bin)
computed      0x03 (hex) 00011 (bin)
 
I have no idea what's causing it. But it slow up my usb system due to the transmission must be reinstalled.
I'd be happy if someone had an idea how to solve it.
#1

6 Replies Related Threads

    greenlight
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2018/11/16 00:34:06
    • Location: 0
    • Status: offline
    Re: PIC32MK USB CRC invalid error 2019/02/05 01:02:14 (permalink)
    0
    i have added the measurement from the USB channel. My analyzer shows the error here. This often occurs 
     
    It is possible to switch to software calculation of crc?
    Where is the calculation of CRC in harmony code done?

    Attached Image(s)

    #2
    Howard Long
    Super Member
    • Total Posts : 676
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: online
    Re: PIC32MK USB CRC invalid error 2019/02/05 05:07:33 (permalink)
    0
    CRC is calculated in the hardware. Are you sure it's not a physical connection/signal integrity problem? The CRCs look shifted one bit.
    #3
    greenlight
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2018/11/16 00:34:06
    • Location: 0
    • Status: offline
    Re: PIC32MK USB CRC invalid error 2019/02/05 08:35:34 (permalink)
    0
    It can never be ruled out that the problem will be caused by physical connection/signal integrity.
    I have 3 boards and on all i am getting crc errors but not every transfer is faulty.
    The other point is, that the usb data are allways right only the crc which will be generated in microchip is buggy
     
    I have no idea what could be wrong. I could post image of the hardware schematic or if you need some more measurements then you would do it to search for a solution
    #4
    greenlight
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2018/11/16 00:34:06
    • Location: 0
    • Status: offline
    Re: PIC32MK USB CRC invalid error 2019/02/06 05:46:32 (permalink)
    0
    I ported my project from costumer board (pic32mk1024gpd100) to pic32mk1024gpe development board to show if i am getting the same crc errors. The Image below show the usb transfer and the detecting of the crc error which will be generate from pic32mk on the development board. If crc is really independent from the software then it is not necessary for me to port an example hid program from microchip to the pic32mk1024gpe development board.
     
    The mainquestion is now what to do. Some hid devices stop working after getting the crc errors (~ 1/1000) so the chip is less suitable for to be used in a product series. 
    Did I make a mistake somewhere and it still depends on my software or it is a general bug in pic32mk
     
    I hope some admins of the forum can help me what i should do at next.
     

    Attached Image(s)

    #5
    Mysil
    Super Member
    • Total Posts : 3326
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: PIC32MK USB CRC invalid error 2019/02/06 06:33:52 (permalink)
    0
    Hi,
    This is a User forum, and forum admins do not do support on behalf of Microchip.
    While there are members with a lot of experience in this forum, and some Microchip employees reading messages here, this is Not a official support channel.
     
    To get official support from Microchip, you should establish a 'support ticket' with all specific documentation and problem example code to reproduce the problem.
     
        Mysil
     
    #6
    greenlight
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2018/11/16 00:34:06
    • Location: 0
    • Status: offline
    Re: PIC32MK USB CRC invalid error 2019/04/25 22:13:28 (permalink)
    0
    I opened a support ticket, but Microchip couldn't give me a solution. Therefore, I recommend that anyone who wants to use USB Host Pic32 in a product should check the implementation for CRC errors.
    On the development board I also measured the errors during testing. The development board was microchip pic32MK1024GPE Development Board. For this I used the following projects microchip\harmony\v2_06\apps\usb\host\hid_basic_keyboard and
     microchip\harmony\v2_06\apps\usb\host\hid_basic_mouse_usart to do this i had to port these to pic32mk1024gpe of course

    Of course I can't say which other Pic32s could contain this error. With the current state of the Pic32mk everyone has to consider whether his requirements are sufficient. It would be desirable if Microchip Support had provided a list of Pic32 that does not contain the usb crc errors.
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5