XK-AUDIO-316MC-AB UAC2 USB ERRORS

Technical discussions around xCORE processors (e.g. xcore-200 & xcore.ai).
maxmatteo
Member++
Posts: 20
Joined: Wed Dec 30, 2020 8:11 pm
Location: Hamburg

XK-AUDIO-316MC-AB UAC2 USB ERRORS

Post by maxmatteo »

Hey there,

i am using the latest software (9.0.0) to flash my xmos xk-audio-316-mc-ab board.

But unforunately i dont see any USB Audio Device. tried on linux & macos

xtag and device are okay

Code: Select all

➜  ~ xrun -l

Available XMOS Devices
----------------------

  ID	Name			Adapter ID	Devices
  --	----			----------	-------
  0 	XMOS XTAG-4         	UBFUD97V	XS3A[0]
  

flashing also works:

Code: Select all

➜  app_usb_aud_xk_316_mc git:(9596ec0) xflash --verbose  bin/2AMi8o8xxxxxx/app_usb_aud_xk_316_mc_2AMi8o8xxxxxx.xe
XFlash_Options::ListDevices : xrun --list-devices devl-fb16c1b9
XFlash_Application found _start :80000 on Node 0
XFlash_Application found _DoSyscall :87bb4 on Node 0
XFlash_Application found _DoException :800c4 on Node 0
XFlash_Application found _start :80000 on Node 0
XFlash_Application found _DoSyscall :8251c on Node 0
XFlash_Application found _DoException :800c4 on Node 0
XFlash::DoXFlash
XFlash::DoImageProgramming
XFlash::GetDeviceInfo
XFlash_DeviceInfo::GetDeviceInfo_User
XFlash_DeviceInfo::PrintDeviceInfo
  Site 0 (bootFlash) info:
    _device_size 0x400000
    _device_page_size 0x100
    _regular_sector_sizes true
    _device_sector_size 0x1000
    _device_protection_available false
    _device_divider 3
    _device_first_user_sector 0x0
    _device_search_limit 0x400000
XFlash::BuildFlashBinaryFile
XFlash_Builder_S2L::BuildStage2Loaders Factory
Stage2_Loader::Compile : xcc -Wno-bidirectional-buffered-port -Wno-timing -Wno-unused-function -Xmapper --dontenablesodlinks -Xmapper --nochaninit -Xmapper --noinitialtidy -Xmapper --image-base -Xmapper 0x80080 -Xmapper --image-size -Xmapper 0x7ff80 -Xmapper --wno110 -Xmapper --wno226 -Xmapper --wnoXN -std=gnu99 -O2 -target=XU316-1024-FB265-C32 -x none "/Applications/XMOS_XTC_15.3.0/target/app/xs3a/stage2loader_SQI.o" -lstage2loader -lsqiaccess -lquadspi -llocks -o s2l-n0-9e2fe354
Stage2Loader found DEVICE_SECTOR_WORD_SIZE : 0x81650 on Node 0
Stage2Loader found pllConfig : 0x815f8 on Node 0
Stage2Loader found otp_disable : 0x81654 on Node 0
Stage2Loader found debug_stop : 0x81658 on Node 0
Stage2Loader found s2l_record_timings : 0x81644 on Node 0
Stage2Loader found s2l_search_by_address : 0x81648 on Node 0
Stage2Loader found s2l_num_addresses : 0x8164c on Node 0
Stage2Loader found s2l_search_addresses : 0x815b8 on Node 0
Stage2Loader found flash_ports : 0x815c8 on Node 0
Stage2Loader found clock_config : 0x815d8 on Node 0
Stage2Loader found qe_config : 0x815f0 on Node 0
Stage2Loader found spanning_routing_id : 0x8250c on Node 0
Stage2Loader found spanning_table : 0x81388 on Node 0
Stage2Loader found num_spanning_tables : 0x82510 on Node 0
Stage2Loader found routing_table : 0x81ab8 on Node 0
Stage2Loader found num_routing_tables : 0x82514 on Node 0
Stage2Loader found link_info : 0x81c48 on Node 0
Stage2Loader found links_table : 0x81e28 on Node 0
Stage2Loader found num_link_tables : 0x82518 on Node 0
Stage2Loader found galaxian_table : 0x82328 on Node 0
Stage2Loader found num_galaxian_tables : 0x8251c on Node 0
Stage2Loader found pll_table : 0x823a0 on Node 0
Stage2Loader found debug_stop : 0x82524 on Node 0
Stage2Loader found secondaryPllConfig : 0x823c0 on Node 0
Stage2Loader found ddrConfig : 0x823d0 on Node 0
Stage2Loader found ddrEnable : 0x82520 on Node 0
XFlash_Builder_Image::BuildImages Factory
XFlash_Builder_Image::BuildImageTable
  master node = 0
    node = 0
XFlash_Builder_Image::BuildImageTable num cores for image table = 2
XFlash_Builder_Image::CalculateBufferSize Starting calculation _total_image_size=0
XFlash_Builder_Image::CalculateBufferSize Add Image Header _total_image_size=38
XFlash_Builder_Image::CalculateBufferSize Add Switch Setup header _total_image_size=40
XFlash_Builder_Image::CalculateBufferSize Add Per Core header _total_image_size=80
XFlash_Builder_Image::CalculateBufferSize_SwitchSetup _total_image_size=25ac
XFlash_Builder_Image::CalculateBufferSize_Application application size = b1dc _total_image_size = d788
XFlash_Builder_Image::CalculateBufferSize_Application application size = 31a4 _total_image_size = 1092c
XFlash_Builder_Image::BuildImageTable allocated image buffer size = 1092c
XFlash_Builder_Image::WriteBuffer_ImageHeader
XFlash_Builder_Image::WriteBuffer_SwitchSetup current switch setup table offset : 38
XFlash_Builder_Image::WriteBuffer_SwitchSetup current application data offset : 80
XFlash_Builder_Image::WriteBuffer_SwitchSetup size : 2528
XFlash_Builder_Image::WriteBuffer_SwitchSetup aligned_size : 252c
XFlash_Builder_Image::WriteBuffer_SwitchSetup init_vec_shift : 0
XFlash_Builder_Image::WriteBuffer_Application
XFlash_Builder_Image::WriteBuffer_Application for node : 0
XFlash_Builder_Image::WriteBuffer_Application for core : 0
XFlash_Builder_Image::WriteBuffer_Application current core table offset : 40
XFlash_Builder_Image::WriteBuffer_Application current application data offset : 25ac
XFlash_Builder_Image::WriteBuffer_Application size : b1d8
XFlash_Builder_Image::WriteBuffer_Application aligned_size : b1dc
XFlash_Builder_Image::WriteBuffer_Application init_vec_shift : 0
XFlash_Builder_Image::WriteBuffer_Application chan end : 80020002
XFlash_Builder_Image::WriteBuffer_Application for core : 1
XFlash_Builder_Image::WriteBuffer_Application current core table offset : 60
XFlash_Builder_Image::WriteBuffer_Application current application data offset : d788
XFlash_Builder_Image::WriteBuffer_Application size : 31a0
XFlash_Builder_Image::WriteBuffer_Application aligned_size : 31a4
XFlash_Builder_Image::WriteBuffer_Application init_vec_shift : 0
XFlash_Builder_Image::WriteBuffer_Application chan end : 80030002
XFlash_Builder_Image::WriteBuffer_SwMem
XFlash_Builder_Image::WriteBuffer_SwMem for node : 0
XFlash_Builder_Image::WriteBuffer_SwMem for core : 0
XFlash_Builder_Image::WriteBuffer_SwMem current core table offset : 40
XFlash_Builder_Image::WriteBuffer_SwMem current application data offset : 1092c
XFlash_Builder_Image::WriteBuffer_SwMem for core : 1
XFlash_Builder_Image::WriteBuffer_SwMem current core table offset : 60
XFlash_Builder_Image::WriteBuffer_SwMem current application data offset : 1092c
XFlash_Builder_Image::WriteBuffer_ExtMem
XFlash_Builder_Image::WriteBuffer_ExtMem for node : 0
XFlash_Builder_Image::WriteBuffer_ExtMem for core : 0
XFlash_Builder_Image::WriteBuffer_ExtMem current core table offset : 40
XFlash_Builder_Image::WriteBuffer_ExtMem current application data offset : 1092c
XFlash_Builder_Image::WriteBuffer_ExtMem for core : 1
XFlash_Builder_Image::WriteBuffer_ExtMem current core table offset : 60
XFlash_Builder_Image::WriteBuffer_ExtMem current application data offset : 1092c
XFlash_Builder_Image::WriteBuffer_CRC
XFlash_Builder_Binary::BuildBinary
XFlash_Builder_Binary::CalculateBufferSize_Factory
XFlash_Builder_Binary::CalculateBufferSize_Factory : Adding s2l size word (4)4
XFlash_Builder_Binary::CalculateBufferSize_Factory : Adding s2l app (1668) 166c
XFlash_Builder_Binary::CalculateBufferSize_Factory : Adding s2l crc (4)1670
XFlash_Builder_Binary::CalculateBufferSize_Factory : Adding factory app (1092c) 11f9c
XFlash_Builder_Binary::CalculateBufferSize_Factory : Adding sector padding (64) 12000
XFlash_Builder_Binary::CalculateBufferSize_Factory : First User Sector offset = 12000
XFlash_Builder_Binary::GetSearchLimitPadding : current size (12000) 0
XFlash_Builder_Binary::CalculateBufferSize_Data
XFlash_Builder_Binary::BuildBinary : Allocating buffer - 12000
XFlash_Builder_Binary::GetSearchLimitPadding : current size (12000) 0
XFlash_Builder_Binary::WriteBufferToBinary : flash_bin_node0
XFlash_Builder_Storage_PPB::BuildStorage
XFlash_Programmer_Write::DoWrite
XFlash_Programmer_Write::IssueCompileCommand
xcc -w -Xmapper --dontenablesodlinks -Xmapper --errdemote130 -Xmapper --errdemote131 -x xn "target-xn-v0-4623f538" -O2 -lquadflash -llocks -D xnPORT_SQI_CS0=PORT_SQI_CS -D xnPORT_SQI_SCLK0=PORT_SQI_SCLK -D xnPORT_SQI_SIO0=PORT_SQI_SIO -x xc "fw-accdd270" -o "fw-5a2acc5d"
XFlash_Utils::BuildRunCommand : xrun --io fw-5a2acc5d
Site 0 has started.
Site 0 has ID   0xef4016.
Site 0 erase    0x00000000.
Site 0 write    0x00000000.
Site 0 write    0x00000100.
Site 0 write    0x00000200.
Site 0 write    0x00000300.
Site 0 write    0x00000400.
Site 0 write    0x00000500.
Site 0 write    0x00000600.
Site 0 write    0x00000700.
Site 0 write    0x00000800.
Site 0 write    0x00000900.
Site 0 write    0x00000a00.
Site 0 write    0x00000b00.
Site 0 write    0x00000c00.
Site 0 write    0x00000d00.
Site 0 write    0x00000e00.
Site 0 write    0x00000f00.
Site 0 erase    0x00001000.
Site 0 write    0x00001000.
Site 0 write    0x00001100.
Site 0 write    0x00001200.
Site 0 write    0x00001300.
Site 0 write    0x00001400.
Site 0 write    0x00001500.
Site 0 write    0x00001600.
Site 0 write    0x00001700.
Site 0 write    0x00001800.
Site 0 write    0x00001900.
Site 0 write    0x00001a00.
Site 0 write    0x00001b00.
Site 0 write    0x00001c00.
Site 0 write    0x00001d00.
Site 0 write    0x00001e00.
Site 0 write    0x00001f00.
Site 0 erase    0x00002000.
Site 0 write    0x00002000.
Site 0 write    0x00002100.
Site 0 write    0x00002200.
Site 0 write    0x00002300.
Site 0 write    0x00002400.
Site 0 write    0x00002500.
Site 0 write    0x00002600.
Site 0 write    0x00002700.
Site 0 write    0x00002800.
Site 0 write    0x00002900.
Site 0 write    0x00002a00.
Site 0 write    0x00002b00.
Site 0 write    0x00002c00.
Site 0 write    0x00002d00.
Site 0 write    0x00002e00.
Site 0 write    0x00002f00.
Site 0 erase    0x00003000.
Site 0 write    0x00003000.
Site 0 write    0x00003100.
Site 0 write    0x00003200.
Site 0 write    0x00003300.
Site 0 write    0x00003400.
Site 0 write    0x00003500.
Site 0 write    0x00003600.
Site 0 write    0x00003700.
Site 0 write    0x00003800.
Site 0 write    0x00003900.
Site 0 write    0x00003a00.
Site 0 write    0x00003b00.
Site 0 write    0x00003c00.
Site 0 write    0x00003d00.
Site 0 write    0x00003e00.
Site 0 write    0x00003f00.
Site 0 erase    0x00004000.
Site 0 write    0x00004000.
Site 0 write    0x00004100.
Site 0 write    0x00004200.
Site 0 write    0x00004300.
Site 0 write    0x00004400.
Site 0 write    0x00004500.
Site 0 write    0x00004600.
Site 0 write    0x00004700.
Site 0 write    0x00004800.
Site 0 write    0x00004900.
Site 0 write    0x00004a00.
Site 0 write    0x00004b00.
Site 0 write    0x00004c00.
Site 0 write    0x00004d00.
Site 0 write    0x00004e00.
Site 0 write    0x00004f00.
Site 0 erase    0x00005000.
Site 0 write    0x00005000.
Site 0 write    0x00005100.
Site 0 write    0x00005200.
Site 0 write    0x00005300.
Site 0 write    0x00005400.
Site 0 write    0x00005500.
Site 0 write    0x00005600.
Site 0 write    0x00005700.
Site 0 write    0x00005800.
Site 0 write    0x00005900.
Site 0 write    0x00005a00.
Site 0 write    0x00005b00.
Site 0 write    0x00005c00.
Site 0 write    0x00005d00.
Site 0 write    0x00005e00.
Site 0 write    0x00005f00.
Site 0 erase    0x00006000.
Site 0 write    0x00006000.
Site 0 write    0x00006100.
Site 0 write    0x00006200.
Site 0 write    0x00006300.
Site 0 write    0x00006400.
Site 0 write    0x00006500.
Site 0 write    0x00006600.
Site 0 write    0x00006700.
Site 0 write    0x00006800.
Site 0 write    0x00006900.
Site 0 write    0x00006a00.
Site 0 write    0x00006b00.
Site 0 write    0x00006c00.
Site 0 write    0x00006d00.
Site 0 write    0x00006e00.
Site 0 write    0x00006f00.
Site 0 erase    0x00007000.
Site 0 write    0x00007000.
Site 0 write    0x00007100.
Site 0 write    0x00007200.
Site 0 write    0x00007300.
Site 0 write    0x00007400.
Site 0 write    0x00007500.
Site 0 write    0x00007600.
Site 0 write    0x00007700.
Site 0 write    0x00007800.
Site 0 write    0x00007900.
Site 0 write    0x00007a00.
Site 0 write    0x00007b00.
Site 0 write    0x00007c00.
Site 0 write    0x00007d00.
Site 0 write    0x00007e00.
Site 0 write    0x00007f00.
Site 0 erase    0x00008000.
Site 0 write    0x00008000.
Site 0 write    0x00008100.
Site 0 write    0x00008200.
Site 0 write    0x00008300.
Site 0 write    0x00008400.
Site 0 write    0x00008500.
Site 0 write    0x00008600.
Site 0 write    0x00008700.
Site 0 write    0x00008800.
Site 0 write    0x00008900.
Site 0 write    0x00008a00.
Site 0 write    0x00008b00.
Site 0 write    0x00008c00.
Site 0 write    0x00008d00.
Site 0 write    0x00008e00.
Site 0 write    0x00008f00.
Site 0 erase    0x00009000.
Site 0 write    0x00009000.
Site 0 write    0x00009100.
Site 0 write    0x00009200.
Site 0 write    0x00009300.
Site 0 write    0x00009400.
Site 0 write    0x00009500.
Site 0 write    0x00009600.
Site 0 write    0x00009700.
Site 0 write    0x00009800.
Site 0 write    0x00009900.
Site 0 write    0x00009a00.
Site 0 write    0x00009b00.
Site 0 write    0x00009c00.
Site 0 write    0x00009d00.
Site 0 write    0x00009e00.
Site 0 write    0x00009f00.
Site 0 erase    0x0000a000.
Site 0 write    0x0000a000.
Site 0 write    0x0000a100.
Site 0 write    0x0000a200.
Site 0 write    0x0000a300.
Site 0 write    0x0000a400.
Site 0 write    0x0000a500.
Site 0 write    0x0000a600.
Site 0 write    0x0000a700.
Site 0 write    0x0000a800.
Site 0 write    0x0000a900.
Site 0 write    0x0000aa00.
Site 0 write    0x0000ab00.
Site 0 write    0x0000ac00.
Site 0 write    0x0000ad00.
Site 0 write    0x0000ae00.
Site 0 write    0x0000af00.
Site 0 erase    0x0000b000.
Site 0 write    0x0000b000.
Site 0 write    0x0000b100.
Site 0 write    0x0000b200.
Site 0 write    0x0000b300.
Site 0 write    0x0000b400.
Site 0 write    0x0000b500.
Site 0 write    0x0000b600.
Site 0 write    0x0000b700.
Site 0 write    0x0000b800.
Site 0 write    0x0000b900.
Site 0 write    0x0000ba00.
Site 0 write    0x0000bb00.
Site 0 write    0x0000bc00.
Site 0 write    0x0000bd00.
Site 0 write    0x0000be00.
Site 0 write    0x0000bf00.
Site 0 erase    0x0000c000.
Site 0 write    0x0000c000.
Site 0 write    0x0000c100.
Site 0 write    0x0000c200.
Site 0 write    0x0000c300.
Site 0 write    0x0000c400.
Site 0 write    0x0000c500.
Site 0 write    0x0000c600.
Site 0 write    0x0000c700.
Site 0 write    0x0000c800.
Site 0 write    0x0000c900.
Site 0 write    0x0000ca00.
Site 0 write    0x0000cb00.
Site 0 write    0x0000cc00.
Site 0 write    0x0000cd00.
Site 0 write    0x0000ce00.
Site 0 write    0x0000cf00.
Site 0 erase    0x0000d000.
Site 0 write    0x0000d000.
Site 0 write    0x0000d100.
Site 0 write    0x0000d200.
Site 0 write    0x0000d300.
Site 0 write    0x0000d400.
Site 0 write    0x0000d500.
Site 0 write    0x0000d600.
Site 0 write    0x0000d700.
Site 0 write    0x0000d800.
Site 0 write    0x0000d900.
Site 0 write    0x0000da00.
Site 0 write    0x0000db00.
Site 0 write    0x0000dc00.
Site 0 write    0x0000dd00.
Site 0 write    0x0000de00.
Site 0 write    0x0000df00.
Site 0 erase    0x0000e000.
Site 0 write    0x0000e000.
Site 0 write    0x0000e100.
Site 0 write    0x0000e200.
Site 0 write    0x0000e300.
Site 0 write    0x0000e400.
Site 0 write    0x0000e500.
Site 0 write    0x0000e600.
Site 0 write    0x0000e700.
Site 0 write    0x0000e800.
Site 0 write    0x0000e900.
Site 0 write    0x0000ea00.
Site 0 write    0x0000eb00.
Site 0 write    0x0000ec00.
Site 0 write    0x0000ed00.
Site 0 write    0x0000ee00.
Site 0 write    0x0000ef00.
Site 0 erase    0x0000f000.
Site 0 write    0x0000f000.
Site 0 write    0x0000f100.
Site 0 write    0x0000f200.
Site 0 write    0x0000f300.
Site 0 write    0x0000f400.
Site 0 write    0x0000f500.
Site 0 write    0x0000f600.
Site 0 write    0x0000f700.
Site 0 write    0x0000f800.
Site 0 write    0x0000f900.
Site 0 write    0x0000fa00.
Site 0 write    0x0000fb00.
Site 0 write    0x0000fc00.
Site 0 write    0x0000fd00.
Site 0 write    0x0000fe00.
Site 0 write    0x0000ff00.
Site 0 erase    0x00010000.
Site 0 write    0x00010000.
Site 0 write    0x00010100.
Site 0 write    0x00010200.
Site 0 write    0x00010300.
Site 0 write    0x00010400.
Site 0 write    0x00010500.
Site 0 write    0x00010600.
Site 0 write    0x00010700.
Site 0 write    0x00010800.
Site 0 write    0x00010900.
Site 0 write    0x00010a00.
Site 0 write    0x00010b00.
Site 0 write    0x00010c00.
Site 0 write    0x00010d00.
Site 0 write    0x00010e00.
Site 0 write    0x00010f00.
Site 0 erase    0x00011000.
Site 0 write    0x00011000.
Site 0 write    0x00011100.
Site 0 write    0x00011200.
Site 0 write    0x00011300.
Site 0 write    0x00011400.
Site 0 write    0x00011500.
Site 0 write    0x00011600.
Site 0 write    0x00011700.
Site 0 write    0x00011800.
Site 0 write    0x00011900.
Site 0 write    0x00011a00.
Site 0 write    0x00011b00.
Site 0 write    0x00011c00.
Site 0 write    0x00011d00.
Site 0 write    0x00011e00.
Site 0 write    0x00011f00.
Site 0 has finished successfully.

XFlash_Programmer_Write::IssueResetCommand : xrun --reset

but after that i dont see any audio device at all (only my xtag adapter)

Code: Select all

lsusb -v

Bus 000 Device 001: ID 05e3:0610
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            9 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x05e3
  idProduct          0x0610
  bcdDevice            6.56
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 [unknown]
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x002a
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000006
      BESL Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           8 micro seconds
    bU2DevExitLat         190 micro seconds
  Container ID Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType      4
    bReserved               0
    ContainerID             {9f4b56f0-1df6-11e0-ac64-0800200c9a66}
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x00e0
    Ganged power switching
    Ganged overcurrent protection
    TT think time 32 FS bits
    Port indicators
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
   Port 3: 0000.0503 highspeed power enable connect
   Port 4: 0002.0301 C_ENABLE lowspeed power connect
can't get debug descriptor: No such file or directory
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled

Bus 000 Device 002: ID 05e3:0626
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.20
  bDeviceClass            9 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x05e3
  idProduct          0x0626
  bcdDevice            6.56
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 [unknown]
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0
      iInterface              1 GenesysLogic
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes           19
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Feedback
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval               8
        bMaxBurst               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x002a
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000006
      BESL Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           8 micro seconds
    bU2DevExitLat         190 micro seconds
  Container ID Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType      4
    bReserved               0
    ContainerID             {9f4b56f0-1df6-11e0-ac64-0800200c9a66}
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             4
  wHubCharacteristic 0x0000
    Ganged power switching
    Ganged overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    576 milli Ampere
  bHubDecLat          0.4 micro seconds
  wHubDelay          1508 nano seconds
  DeviceRemovable    0x00
 Hub Port Status:
   Port 1: 0000.02a0 5Gbps power Rx.Detect
   Port 2: 0000.02a0 5Gbps power Rx.Detect
   Port 3: 0000.02a0 5Gbps power Rx.Detect
   Port 4: 0000.02a0 5Gbps power Rx.Detect
can't get debug descriptor: No such file or directory
Device Status:     0x0001
  Self Powered

Bus 000 Device 003: ID 20b1:f7d5
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 [unknown]
  bDeviceSubClass       255 [unknown]
  bDeviceProtocol       255
  bMaxPacketSize0        64
  idVendor           0x20b1
  idProduct          0xf7d5
  bcdDevice            0.06
  iManufacturer           1
  iProduct                2
  iSerial                 3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 [unknown]
      bInterfaceSubClass    255 [unknown]
      bInterfaceProtocol    255
      iInterface              3 XD00FTAGUBFUD97V
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          255 [unknown]
  bDeviceSubClass       255 [unknown]
  bDeviceProtocol       255
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: No such file or directory
Device Status:     0x0001
  Self Powered

any hints on what is wrong or todo?

thanks max
MaximLiadov
XCore Addict
Posts: 179
Joined: Mon Apr 16, 2018 9:14 am

Post by MaximLiadov »

I would review PDF xcore.ai Multichannel Audio Platform Hardware Manual
Chapter 12 USB Device
As a USB device, the board is connected to the host by the USB micro B connector marked “USB DEVICE”. The board can be configured in firmware as a bus or self powered USB device. In addition to the firmware, two jumpers should be configured on the board to support the relevant mode.
maxmatteo
Member++
Posts: 20
Joined: Wed Dec 30, 2020 8:11 pm
Location: Hamburg

Post by maxmatteo »

i have the required jumpers correctly: PWR SRC is on BUS (aka usb device powered) and the VBUS DET is not FITTED (OFF)

hooked up the usb device port, but i do not see any device..
MaximLiadov
XCore Addict
Posts: 179
Joined: Mon Apr 16, 2018 9:14 am

Post by MaximLiadov »

I would check cable connections and change the USB port to a standard USB2.0 without a hub in between. Also make sure it's not just a charging cable.

I would possibly run the firmware with xrun with printf added to make sure the hardware works as expected. You can also print to console at vbus detection time.

To debug the firmware on Linux, you can get detailed information in /var/log/kern.log Sometimes it helps.
maxmatteo
Member++
Posts: 20
Joined: Wed Dec 30, 2020 8:11 pm
Location: Hamburg

Post by maxmatteo »

ok somehow this is has some major usb issues :/

Code: Select all

[   62.959795] usb usb1-port1: attempt power cycle
[   83.655032] usb 1-1: new low-speed USB device number 7 using ci_hdrc
[   98.926181] usb 1-1: device descriptor read/64, error -110
[  114.366630] usb 1-1: device descriptor read/64, error -110
[  114.636593] usb 1-1: new low-speed USB device number 8 using ci_hdrc
[  129.965385] usb 1-1: device descriptor read/64, error -110
[  136.104970] usb 1-1: new low-speed USB device number 9 using ci_hdrc
[  151.404225] usb 1-1: device descriptor read/64, error -110
[  166.843715] usb 1-1: device descriptor read/64, error -110
will try to add some debug/printf statements
MaximLiadov
XCore Addict
Posts: 179
Joined: Mon Apr 16, 2018 9:14 am

Post by MaximLiadov »

A second external power supply option is available with the jumpers ON.

/* Board power source - Default is bus-powered */
#ifndef XUA_POWERMODE
#define XUA_POWERMODE XUA_POWERMODE_BUS // change this from the default XUA_POWERMODE_BUS mode to XUA_POWERMODE_SELF
#endif
maxmatteo
Member++
Posts: 20
Joined: Wed Dec 30, 2020 8:11 pm
Location: Hamburg

Post by maxmatteo »

well i am using bus powered, so need to edit that?

added some debug:

Code: Select all

➜  build git:(9596ec0) ✗ xrun --xscope ../bin/2AMi8o8xxxxxx/app_usb_aud_xk_316_mc_2AMi8o8xxxxxx.xe
Starting board setup
Starting AudioHwInit
end board setup
end AudioHwInit
Starting AudioHwConfig
End AudioHwConfig
seems not to hang anywhere
MaximLiadov
XCore Addict
Posts: 179
Joined: Mon Apr 16, 2018 9:14 am

Post by MaximLiadov »

Looks good to me! If you are using bus power, you do not need to change anything. It's just an external power option via a dedicated USB power port.