This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

cdc_acm problem

hello

using the usbd_ble_uart_pca10056 demo code connected to a microchip USB_CDC pic32 microcontroller I riceve this erroro on debug interface

<info> app: USBD BLE UART example started.
<info> app: USB power detected
<info> app: USB ready
<debug> nrf_ble_gatt: Requesting to update ATT MTU to 64 bytes on connection 0x0.
<info> app: BLE NUS connected
<debug> nrf_ble_gatt: ATT MTU updated to 64 bytes on connection 0x0 (response).
<info> app: Data len is set to 0x3D(61)
<debug> app: ATT MTU exchange completed. central 0xF7 peripheral 0x40
<debug> app: Received data from BLE NUS. Writing data on CDC ACM.
<debug> app: 30 31 32 33 34 35 36 37|01234567
<debug> app: 38 39 30 31 32 33 34 35|89012345
<debug> app: 36 37 38 39 |6789
<info> app: CDC ACM unavailable, data received: 01234567890123456789

NUS seems work fine but I'm not able to understand what is going wrong on usb side

thanks for any suggestion

Andrea Gonelli

Parents
  • pic32 debug output

    with nRF

    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 obtained. Setting device address.
    USB Host Layer: Bus 0 Setting Device Address to 2.
    USB Host Layer: Bus 0 Set Address complete
    USB Host Layer: Bus 0 Post Set Address Delay completed.
    USB Host Layer: Bus 0 Device 2 Requesting Full Device Descriptor.
    USB Host Layer: Bus 0 Device 2 Full Device Descriptor obtained.
    USB Host Layer: Bus 0 Device 2 contains 1 configurations.
    USB Host Layer: Bus 0 Device 2 Short Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 Getting Full Configuration Descriptor.
    USB Host Layer: Bus 0 Device 2 Get Full Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 No errors detected in Configuration Descriptor 0.
    USB Host Layer: Bus 0 Device 2 Looking for Device Level Driver.
    USB Host Layer: Bus 0 Device 2 Setting first configuration
    USB Host Layer: Bus 0 Device 2 Obtained Configuration Descriptor header
    USB Host Layer: Bus 0 Device 2 Assigning IAD to TPL entry 1

    with MCP2200
    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 obtained. Setting device address.
    USB Host Layer: Bus 0 Setting Device Address to 2.
    USB Host Layer: Bus 0 Set Address complete
    USB Host Layer: Bus 0 Post Set Address Delay completed.
    USB Host Layer: Bus 0 Device 2 Requesting Full Device Descriptor.
    USB Host Layer: Bus 0 Device 2 Full Device Descriptor obtained.
    USB Host Layer: Bus 0 Device 2 contains 1 configurations.
    USB Host Layer: Bus 0 Device 2 Short Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 Getting Full Configuration Descriptor.
    USB Host Layer: Bus 0 Device 2 Get Full Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 No errors detected in Configuration Descriptor 0.
    USB Host Layer: Bus 0 Device 2 Looking for Device Level Driver.
    USB Host Layer: Bus 0 Device 2 Looking for Device Level CL SC P driver
    USB Host Layer: Bus 0 Device 2 Setting first configuration
    USB Host Layer: Bus 0 Device 2 Obtained Configuration Descriptor header
    USB Host Layer: Bus 0 Device 2 Assigning IAD to TPL entry 1

Reply
  • pic32 debug output

    with nRF

    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 obtained. Setting device address.
    USB Host Layer: Bus 0 Setting Device Address to 2.
    USB Host Layer: Bus 0 Set Address complete
    USB Host Layer: Bus 0 Post Set Address Delay completed.
    USB Host Layer: Bus 0 Device 2 Requesting Full Device Descriptor.
    USB Host Layer: Bus 0 Device 2 Full Device Descriptor obtained.
    USB Host Layer: Bus 0 Device 2 contains 1 configurations.
    USB Host Layer: Bus 0 Device 2 Short Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 Getting Full Configuration Descriptor.
    USB Host Layer: Bus 0 Device 2 Get Full Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 No errors detected in Configuration Descriptor 0.
    USB Host Layer: Bus 0 Device 2 Looking for Device Level Driver.
    USB Host Layer: Bus 0 Device 2 Setting first configuration
    USB Host Layer: Bus 0 Device 2 Obtained Configuration Descriptor header
    USB Host Layer: Bus 0 Device 2 Assigning IAD to TPL entry 1

    with MCP2200
    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 obtained. Setting device address.
    USB Host Layer: Bus 0 Setting Device Address to 2.
    USB Host Layer: Bus 0 Set Address complete
    USB Host Layer: Bus 0 Post Set Address Delay completed.
    USB Host Layer: Bus 0 Device 2 Requesting Full Device Descriptor.
    USB Host Layer: Bus 0 Device 2 Full Device Descriptor obtained.
    USB Host Layer: Bus 0 Device 2 contains 1 configurations.
    USB Host Layer: Bus 0 Device 2 Short Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 Getting Full Configuration Descriptor.
    USB Host Layer: Bus 0 Device 2 Get Full Configuration Descriptor Request passed.
    USB Host Layer: Bus 0 Device 2 No errors detected in Configuration Descriptor 0.
    USB Host Layer: Bus 0 Device 2 Looking for Device Level Driver.
    USB Host Layer: Bus 0 Device 2 Looking for Device Level CL SC P driver
    USB Host Layer: Bus 0 Device 2 Setting first configuration
    USB Host Layer: Bus 0 Device 2 Obtained Configuration Descriptor header
    USB Host Layer: Bus 0 Device 2 Assigning IAD to TPL entry 1

Children
No Data
Related