XP-USB-MIC-UF216 not detected it as USB audio device

If you have a simple question and just want an answer.
Post Reply
niruyadla@gmail.com
Member
Posts: 12
Joined: Thu Oct 12, 2017 8:04 pm

XP-USB-MIC-UF216 not detected it as USB audio device

Post by niruyadla@gmail.com »

Have build app_usb_aud_mic_array and generated app_usb_aud_mic_array_2i8o2.xe,however when I flash with the below command
xrun --io --verbose --xscope-realtime --xscope-file log.txt app_usb_aud_mic_array_2i8o2.xe ,my windows PC is not recognized as audio class device.
and as well TUSBAudio Control panel not shows

Here is info collected when I ran below command and as well see dumpstate info

C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2>xrun --io --verbose --xscope-realtime --xscope-file log.txt app_usb_aud_mic_array_2i8o2.xe
cmd xgdb
cmd -q
cmd --return-child-result
cmd --ex
cmd "set $xcore_id=0"
cmd --ex
cmd "set $xcore_boot=0"
cmd -x
cmd C:\Users\nyadla\AppData\Local\Temp/.xrun11248-W935GSHD/xeload_auto.gdb
cmd --ex
cmd quit
cmd "app_usb_aud_mic_array_2i8o2.xe"
cmd
cmd
0x00040000 in _start ()
Loading setup image to XCore 0
Loading section .text, size 0x18c lma 0x40000
Loading section .cp.rodata, size 0x18 lma 0x4018c
Loading section .dp.data, size 0x1c lma 0x401a4
Start address 0x40000, load size 448
Transfer rate: 48 KB/sec, 149 bytes/write.
xSCOPE enabled on tile 0 at address 0x401b8
Loading setup image to XCore 1
Loading section .text, size 0x40 lma 0x40000
Loading section .cp.rodata, size 0x18 lma 0x40040
Loading section .dp.data, size 0x8 lma 0x40058
Start address 0x40000, load size 96
Transfer rate: 4 KB/sec, 32 bytes/write.
xSCOPE enabled on tile 1 at address 0x40058
First stage multi-node boot started
First stage multi-node boot completed
Loading application image to XCore 0
Loading section .crt, size 0xac lma 0x40000
Loading section .init, size 0x1a lma 0x400ac
Loading section .fini, size 0x2e lma 0x400c6
Loading section .text, size 0x43cc lma 0x400f8
Loading section .eh_frame, size 0x94 lma 0x444c8
Loading section .cp.rodata, size 0x2bca lma 0x44560
Loading section .cp.rodata.4, size 0x64 lma 0x4712c
Loading section .cp.const4, size 0x34 lma 0x47190
Loading section .cp.rodata.cst4, size 0x48 lma 0x471c4
Loading section .cp.rodata.string, size 0x42 lma 0x4720c
Loading section .ctors, size 0x2c lma 0x47250
Loading section .dtors, size 0x28 lma 0x4727c
Loading section .dp.data, size 0x100 lma 0x472a8
Loading section .dp.data.4, size 0x6c lma 0x473a8
Loading section .dp.rodata.4, size 0x28 lma 0x47414
Start address 0x40000, load size 29736
Transfer rate: 138 KB/sec, 1982 bytes/write.
xSCOPE enabled on tile 0 at address 0x473a0
Loading application image to XCore 1
Loading section .crt, size 0xac lma 0x40000
Loading section .init, size 0x1a lma 0x400ac
Loading section .fini, size 0x2e lma 0x400c6
Loading section .text, size 0x95e0 lma 0x40100
Loading section .eh_frame, size 0x44 lma 0x496e0
Loading section .cp.rodata, size 0x6a lma 0x49728
Loading section .cp.rodata.4, size 0x55c lma 0x49794
Loading section .cp.const4, size 0x38 lma 0x49cf0
Loading section .cp.rodata.const4, size 0x4 lma 0x49d28
Loading section .cp.rodata.cst4, size 0xe0 lma 0x49d2c
Loading section .cp.rodata.string, size 0xe6 lma 0x49e0c
Loading section .ctors, size 0x58 lma 0x49ef4
Loading section .dtors, size 0x54 lma 0x49f4c
Loading section .dp.data, size 0xb78 lma 0x49fa0
Loading section .dp.data.4, size 0x8c lma 0x4ab18
Loading section .dp.rodata, size 0x4 lma 0x4aba8
Loading section .dp.rodata.4, size 0x58 lma 0x4abac
Start address 0x40000, load size 44012
Transfer rate: 138 KB/sec, 2588 bytes/write.
xSCOPE enabled on tile 1 at address 0x4ab10

C:\Windows\system32>cd C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2

C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2>crun -l
'crun' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2>xrun -l

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

ID Name Adapter ID Devices
-- ---- ---------- -------
0 XMOS XTAG-3 UjOUSAsm O[0]


C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2>xrun --dumpstate app_usb_aud_mic_array_2i8o2.xe
Program received signal SIGBUS, Bus error.
[Switching to tile[1] core[0] (dual issue)]
audio.task.0 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/audio.xc:1276
1276 c_pdm_in <: 0;

***** Active Cores *****
7 tile[1] core[3] 0x000441ea in buffer (c_aud_out=32, c_aud_in=1, c_sof=20, c_aud_ctl=2, p_off_mclk=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/usb_buffer.xc:487
6 tile[1] core[2] 0x00043730 in handle_audio_request (c_mix_out=300552) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:336
5 tile[1] core[1] (dual issue) array_to_xc_ptr () at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer\xc_ptr.h:13
* 4 tile[1] core[0] (dual issue) audio.task.0 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/audio.xc:1276
3 tile[0] core[2] (dual issue) 0x00042648 in xscope_constructor () at xscope_api.c:79
2 tile[0] core[1] (dual issue) input_7_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:614
1 tile[0] core[0] (dual issue) 0x00040ba8 in handle_audio_request (c_mix_out=2147615746) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:178

Thread 7 (tile[1] core[3]):

***** Call Stack *****
#0 0x000441ea in buffer (c_aud_out=32, c_aud_in=1, c_sof=20, c_aud_ctl=2, p_off_mclk=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/usb_buffer.xc:487
#1 0x16bdaf6c in ?? ()
Backtrace stopped: frame did not save the PC

***** Disassembly *****
0x441ea <buffer+450>: in (2r) r0, res[r9] *
0x441ec <buffer+452>: add (2rus) r0, r4, 0x0
0x441ee <buffer+454>: add (2rus) r1, r6, 0x0
0x441f0 <buffer+456>: add (2rus) r2, r5, 0x0
0x441f2 <buffer+458>: add (2rus) r3, r8, 0x0

***** Registers *****
r0 0x7bfcd91a 2080168218
r1 0x9 9
r2 0x1 1
r3 0x1 1
r4 0x2 2
r5 0x14 20
r6 0x1 1
r7 0x20 32
r8 0x7f600 521728
r9 0x301 769
r10 0x4e20 20000
r11 0x80031102 -2147282686
cp 0x45840 284736
dp 0x45b50 285520
sp 0x7f570 521584
lr 0x4493e 280894 USB_StandardRequests + 1514
pc 0x441ea 279018 buffer + 450
sr 0x0 0
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x441ea 279018

Thread 6 (tile[1] core[2]):

***** Call Stack *****
#0 0x00043730 in handle_audio_request (c_mix_out=300552) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:336
#1 0x0a000301 in ?? ()
Backtrace stopped: frame did not save the PC

***** Disassembly *****
0x43730 <handle_audio_request+684>: testct (2r) r11, res[r10] *
0x43732 <handle_audio_request+686>: bt (ru6) r11, 0x25
0x43734 <handle_audio_request+688>: in (2r) r1, res[r10] *
0x43736 <handle_audio_request+690>: testct (2r) r11, res[r10] *
0x43738 <handle_audio_request+692>: bf (ru6) r11, 0xf

***** Registers *****
r0 0x49608 300552
r1 0x7fca0 523424
r2 0x7fc9c 523420
r3 0x78 120
r4 0x49508 300296
r5 0x0 0
r6 0x49608 300552
r7 0x2c 44
r8 0x49888 301192
r9 0x7fd9c 523676
r10 0x80030802 -2147284990
r11 0x0 0
cp 0x45840 284736
dp 0x45b50 285520
sp 0x7fc80 523392
lr 0x40ba0 265120 PllInit + 44
pc 0x43730 276272 handle_audio_request + 684
sr 0x40 64
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x43730 276272

Thread 5 (tile[1] core[1] (dual issue)):

***** Call Stack *****
#0 array_to_xc_ptr () at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer\xc_ptr.h:13
#1 updateMasterVol () at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/endpoint0/audiorequests.xc:142
#2 updateVol (unitID=<value optimized out>, channel=<value optimized out>, c_mix_ctl=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/endpoint0/audiorequests.xc:216
#3 0x00000000 in ?? ()

***** Disassembly *****
0x42944 <updateVol+84>: waiteu (0r) *
0x42946 <updateVol+86>: nop (0r)
0x42948 <updateVol+88>: add (2rus) r0, r6, 0x0
0x4294a <updateVol+90>: ldw (ru6) r1, sp[0xd]
0x4294c <updateVol+92>: ldaw (ru6) r2, sp[0x13]

***** Registers *****
r0 0x0 0
r1 0x0 0
r2 0x0 0
r3 0x0 0
r4 0x80030f02 -2147283198
r5 0x80030402 -2147286014
r6 0x80030c02 -2147283966
r7 0x80030602 -2147285502
r8 0x80030a02 -2147284478
r9 0x498d8 301272
r10 0x49450 300112
r11 0x42960 272736
cp 0x45840 284736
dp 0x45b50 285520
sp 0x7fe30 523824
lr 0x42824 272420 device_reboot_aux + 152
pc 0x42944 272708 updateVol + 84
sr 0x141 321
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x42944 272708

Thread 4 (tile[1] core[0] (dual issue)):

***** Call Stack *****
#0 audio.task.0 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/audio.xc:1276
#1 0x17ff6802 in ?? ()
Backtrace stopped: frame did not save the PC

***** Disassembly *****
0x424f0 <audio.task.0+456>: bf (lru6) r0, 0x2c
0x424f4 <audio.task.0+460>: ldw (lru6) r0, dp[0x1049]
0x424f8 <audio.task.0+464>: ldw (lru6) r1, dp[0x104a]
0x424fc <audio.task.0+468>: stw (lru6) r10, dp[0x103f]
0x42500 <audio.task.0+472>: ldw (lru6) r3, dp[0x103b]

***** Registers *****
r0 0x0 0
r1 0x0 0
r2 0x4950c 300300
r3 0x20000000 536870912
r4 0x80030002 -2147287038
r5 0xac44 44100
r6 0xfffffffc -4
r7 0x17 23
r8 0x61e 1566
r9 0x1 1
r10 0x0 0
r11 0x408cc 264396
cp 0x45840 284736
dp 0x45b50 285520
sp 0x7fec8 523976
lr 0x40fb8 266168 AudioHwConfig + 152
pc 0x424f0 271600 audio.task.0 + 456
sr 0x102 258
spc 0x425fc 271868 _Susb_audio_core_0.task.XUD_Manager.0 + 4
ssr 0x102 258
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x424f0 271600

Thread 3 (tile[0] core[2] (dual issue)):

***** Call Stack *****
#0 0x00042648 in xscope_constructor () at xscope_api.c:79
#1 0xf611bbb2 in ?? ()
Backtrace stopped: frame did not save the PC
Current language: auto; currently minimal

***** Disassembly *****
0x42648 <xscope_constructor+196>: nop (0r)
0x4264a <xscope_constructor+198>: ldw (3r) r7, r0[r7]
0x4264c <xscope_constructor+200>: xor (l3r) r7, r7, r11
0x42650 <xscope_constructor+204>: outpw (l2rus) res[r6], r7, 0x10 *
0x42654 <xscope_constructor+208>: nop (0r)

***** Registers *****
r0 0x458b8 284856
r1 0x40000000 1073741824
r2 0x1 1
r3 0x1e 30
r4 0x0 0
r5 0x0 0
r6 0x10300 66304
r7 0x1 1
r8 0xf 15
r9 0x1e 30
r10 0x0 0
r11 0x0 0
cp 0x44e8c 282252
dp 0x45330 283440
sp 0x7f9c0 522688
lr 0x42aa8 273064 _cleanup + 0
pc 0x42648 271944 xscope_constructor + 196
sr 0x180 384
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x42648 271944

Thread 2 (tile[0] core[1] (dual issue)):

***** Call Stack *****
#0 input_7_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:614
#1 0x000415b0 in input_6_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:610
#2 0x000415b0 in input_6_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:610
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Current language: auto; currently asm

***** Disassembly *****
0x415e8 <input_7_1+20>: in (2r) r6, res[r2] *
0x415ea <input_7_1+22>: nop (0r)
0x415ec <input_7_1+24>: out (r2r) res[r0], r6 *
0x415ee <input_7_1+26>: nop (0r)
0x415f0 <input_7_1+28>: setsr (u6) 0x1

***** Registers *****
r0 0x80020002 -2147352574
r1 0x80020102 -2147352318
r2 0x80020302 -2147351806
r3 0x45e78 286328
r4 0x46160 287072
r5 0x2 2
r6 0x0 0
r7 0x0 0
r8 0x0 0
r9 0x0 0
r10 0x0 0
r11 0x0 0
cp 0x44e8c 282252
dp 0x45330 283440
sp 0x7f988 522632
lr 0x415b0 267696 input_6_1 + 12
pc 0x415e8 267752 input_7_1 + 20
sr 0x140 320
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x415e8 267752

Thread 1 (tile[0] core[0] (dual issue)):

***** Call Stack *****
#0 0x00040ba8 in handle_audio_request (c_mix_out=2147615746) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:178
#1 0x00000000 in ?? ()
Current language: auto; currently c

***** Disassembly *****
0x40ba8 <handle_audio_request+416>: in (2r) r4, res[r4] *
0x40baa <handle_audio_request+418>: nop (0r)
0x40bac <handle_audio_request+420>: bitrev (2r) r4, r4
0x40bae <handle_audio_request+422>: ldw (ru6) r10, sp[0x12]
0x40bb0 <handle_audio_request+424>: bf (lru6) r10, 0xc

***** Registers *****
r0 0x80020402 -2147351550
r1 0x10800 67584
r2 0x0 0
r3 0x10c00 68608
r4 0x10a00 68096
r5 0x10900 67840
r6 0x10e00 69120
r7 0x10d00 68864
r8 0x10b00 68352
r9 0x10f00 69376
r10 0x80020602 -2147351038
r11 0x0 0
cp 0x44e8c 282252
dp 0x45330 283440
sp 0x7fdc0 523712
lr 0x41308 267016 divide_by_n_1_1 + 8
pc 0x40ba8 265128 handle_audio_request + 416
sr 0x140 320
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x1 1
sed 0x0 0
kep 0x40080 262272
ksp 0x40ba8 265128

C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2>


Image

Image


User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

>>3 tile[0] core[2] (dual issue) 0x00042648 in xscope_constructor () at xscope_api.c:79

Something has caused xscope to lock up. I would try re-plugging the xtag.
niruyadla@gmail.com
Member
Posts: 12
Joined: Thu Oct 12, 2017 8:04 pm

Post by niruyadla@gmail.com »

C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2>xrun app_usb_aud_mic_array_2i8o2.xe

C:\Users\nyadla\Desktop\Backup\XMOS\sw_usb_audio\app_usb_aud_mic_array\bin\2i8o2>xrun --dumpstate app_usb_aud_mic_array_2i8o2.xe
Program received signal SIGBUS, Bus error.
[Switching to tile[1] core[2] (dual issue)]
0x00043de4 in decouple (c_mix_out=2147680514) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:884
884 else if (outOverflow)

***** Active Cores *****
10 tile[1] core[5] 0x00048a5a in XUD_DeviceAttachHS ()
9 tile[1] core[4] (dual issue) XUD_ResetEndpoint (one=<value optimized out>, two=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_xud/module_xud/src/XUD_EpFunctions.xc:166
8 tile[1] core[3] (dual issue) buffer (c_aud_out=2147682050, c_aud_in=2147683074, c_sof=2147681538, c_aud_ctl=2147683842, p_off_mclk=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/usb_buffer.xc:
* 7 tile[1] core[2] (dual issue) 0x00043de4 in decouple (c_mix_out=2147680514) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:884
6 tile[1] core[1] (dual issue) deliver (divide=0, curSamFreq=0, c_out=<value optimized out>, c_spd_out=<value optimized out>, c_pdm_pcm=<value optimized out>, c_adc=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb
5 tile[1] core[0] (dual issue) genclock () at ../src/extensions/audiohw.xc:85
4 tile[0] core[3] (dual issue) pdm_rx_8ch_loop () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/pdm_rx.S:160
3 tile[0] core[2] (dual issue) third_stage_fir_impl () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:1025
2 tile[0] core[1] (dual issue) third_stage_fir_impl () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:1025
1 tile[0] core[0] (dual issue) 0x00040918 in pdm_process (c_ds_output=@0x7ff58, c_audio=2147614722) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/pdm_mics/pcm_pdm_mic.xc:67

Thread 10 (tile[1] core[5]):

***** Call Stack *****
#0 0x00048a5a in XUD_DeviceAttachHS ()
#1 0x00046d4e in XUD_Manager ()
#2 0x00042641 in _Susb_audio_core_0.task.XUD_Manager.0 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/main.xc:314
#3 0x00048a90 in __start_core ()

***** Disassembly *****
0x48a5a <XUD_DeviceAttachHS+298>: in (2r) r0, res[r9] *
0x48a5c <XUD_DeviceAttachHS+300>: bt (ru6) r0, -0x3
0x48a5e <XUD_DeviceAttachHS+302>: bu (u6) 0x7
0x48a60 <XUD_DeviceAttachHS+304>: mkmsk (rus) r1, 0x1
0x48a62 <XUD_DeviceAttachHS+306>: ldc (ru6) r2, 0xc

***** Registers *****
r0 0x1 1
r1 0x3 3
r2 0x7f054 520276
r3 0x1 1
r4 0x2 2
r5 0x2 2
r6 0x0 0
r7 0x0 0
r8 0x12c 300
r9 0x10500 66816
r10 0x1 1
r11 0x1 1
cp 0x49728 300840
dp 0x49fa0 303008
sp 0x7f058 520280
lr 0x47f88 294792 write_periph_32_aux + 52
pc 0x48a5a 297562 XUD_DeviceAttachHS + 298
sr 0x0 0
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x501 1281
sed 0x0 0
kep 0x40080 262272
ksp 0x48a5a 297562

Thread 9 (tile[1] core[4] (dual issue)):

***** Call Stack *****
#0 XUD_ResetEndpoint (one=<value optimized out>, two=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_xud/module_xud/src/XUD_EpFunctions.xc:166
#1 0x000409e4 in Endpoint0 (c_ep0_out=<value optimized out>, c_ep0_in=<value optimized out>, c_audioControl=2147684098, c_mix_ctl=0, c_clk_ctl=<value optimized out>, c_EANativeTransport_ctrl=<value optimized out>, dfuInterface=524084) at C:/Users/nyadla
#2 0x000426c9 in _Susb_audio_core_0.task.Endpoint0.2 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/main.xc:383
#3 0x00048a90 in __start_core ()

***** Disassembly *****
0x44f88 <XUD_ResetEndpoint+72>: in (2r) r0, res[r2] *
0x44f8a <XUD_ResetEndpoint+74>: nop (0r)
0x44f8c <XUD_ResetEndpoint+76>: in (2r) r0, res[r3] *
0x44f8e <XUD_ResetEndpoint+78>: nop (0r)
0x44f90 <XUD_ResetEndpoint+80>: bu (lu6) 0x1

***** Registers *****
r0 0x4c428 312360
r1 0x4c0e8 311528
r2 0x80030902 -2147284734
r3 0x80030d02 -2147283710
r4 0x4c0a8 311464
r5 0x0 0
r6 0x4c1a8 311720
r7 0x0 0
r8 0x7f8a4 522404
r9 0x0 0
r10 0xffffffff -1
r11 0x0 0
cp 0x49728 300840
dp 0x49fa0 303008
sp 0x7f830 522288
lr 0x409e4 264676 Endpoint0 + 1420
pc 0x44f88 282504 XUD_ResetEndpoint + 72
sr 0x140 320
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x44f88 282504

Thread 8 (tile[1] core[3] (dual issue)):

***** Call Stack *****
#0 buffer (c_aud_out=2147682050, c_aud_in=2147683074, c_sof=2147681538, c_aud_ctl=2147683842, p_off_mclk=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/usb_buffer.xc:585
#1 0x0004268d in _Susb_audio_core_0.task.buffer.1 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/main.xc:340
#2 0x00048a90 in __start_core ()

***** Disassembly *****
0x440ec <buffer+196>: waiteu (0r) *
0x440ee <buffer+198>: nop (0r)
0x440f0 <buffer+200>: add (2rus) r0, r6, 0x0
0x440f2 <buffer+202>: add (2rus) r1, r9, 0x0
0x440f4 <buffer+204>: add (2rus) r2, r10, 0x0

***** Registers *****
r0 0x0 0
r1 0xac4400 11289600
r2 0x0 0
r3 0x80030e02 -2147283454
r4 0x80030e02 -2147283454
r5 0x80030502 -2147285758
r6 0x80030b02 -2147284222
r7 0x80030702 -2147285246
r8 0x1 1
r9 0x4c450 312400
r10 0x7f974 522612
r11 0x44134 278836
cp 0x49728 300840
dp 0x49fa0 303008
sp 0x7f938 522552
lr 0x44054 278612 buffer + 44
pc 0x440ec 278764 buffer + 196
sr 0x141 321
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x440ec 278764

Thread 7 (tile[1] core[2] (dual issue)):

***** Call Stack *****
#0 0x00043de4 in decouple (c_mix_out=2147680514) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:884
#1 0x000426e1 in _Susb_audio_core_0.task.decouple.3 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/main.xc:389
#2 0x00046f6c in __start_other_cores ()
#3 0x000425c5 in usb_audio_core (c_mix_out=2147680514, dfuInterface=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/main.xc:294
#4 0x00042769 in __main__main_tile_1_task_usb_audio_core_1 (frame=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/main.xc:562
#5 0x00048a90 in __start_core ()

***** Disassembly *****
0x43de4 <decouple+888>: bf (lru6) r0, 0x13
0x43de8 <decouple+892>: ldw (lru6) r0, dp[0xa77]
0x43dec <decouple+896>: ldw (lru6) r1, dp[0xa78]
0x43df0 <decouple+900>: sub (3r) r1, r1, r0
0x43df2 <decouple+902>: nop (0r)

***** Registers *****
r0 0x0 0
r1 0x0 0
r2 0x4c0ac 311468
r3 0x9 9
r4 0x80030102 -2147286782
r5 0x2b11 11025
r6 0xfffffffc -4
r7 0x0 0
r8 0x0 0
r9 0x1 1
r10 0x0 0
r11 0x40a64 264804
cp 0x49728 300840
dp 0x49fa0 303008
sp 0x7f9b8 522680
lr 0x426e0 272096 _Susb_audio_core_0.task.decouple.3 + 16
pc 0x43de4 277988 decouple + 888
sr 0x102 258
spc 0x43bb0 277424 decouple + 324
ssr 0x102 258
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x43de4 277988

Thread 6 (tile[1] core[1] (dual issue)):

***** Call Stack *****
#0 deliver (divide=0, curSamFreq=0, c_out=<value optimized out>, c_spd_out=<value optimized out>, c_pdm_pcm=<value optimized out>, c_adc=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/audio.xc:709
#1 0x00042391 in audio.task.0 (frame=0x7feb0) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/audio.xc:1209
#2 0x0004228d in audio (c_mix_out=2147680770, c_config=0, c=<value optimized out>, dfuInterface=<value optimized out>, c_pdm_in=<value optimized out>) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/audio.xc:1036
#3 0x000426f9 in __main__main_tile_1 ()
Backtrace stopped: frame did not save the PC

***** Disassembly *****
0x42074 <deliver+676>: chkct (rus) res[r1], 0x1 *
0x42076 <deliver+678>: mkmsk (rus) r0, 0x1
0x42078 <deliver+680>: out (r2r) res[r1], r0 *
0x4207a <deliver+682>: nop (0r)
0x4207c <deliver+684>: outct (rus) res[r1], 0x1 *

***** Registers *****
r0 0x0 0
r1 0x80030002 -2147287038
r2 0x0 0
r3 0xfffbd22c -273876
r4 0xfffd9498 -158568
r5 0x10f00 69376
r6 0xde1df009 -568463351
r7 0x10d00 68864
r8 0x10d00 68864
r9 0xfff9b73f -411841
r10 0xfff90dad -455251
r11 0x0 0
cp 0x49728 300840
dp 0x49fa0 303008
sp 0x7fde0 523744
lr 0x42390 271248 audio.task.0 + 104
pc 0x42074 270452 deliver + 676
sr 0x140 320
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x42074 270452

Thread 5 (tile[1] core[0] (dual issue)):

***** Call Stack *****
#0 genclock () at ../src/extensions/audiohw.xc:85
#1 0x00042788 in __main__main_tile_1_task_genclock_4 (frame=0x40300) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/main.xc:659
#2 0x00046f6c in __start_other_cores ()
#3 0x00042745 in __main__main_tile_1 ()
#4 0x0004565c in main ()

***** Disassembly *****
0x40b6c <genclock+44>: in (2r) r4, res[r1] *
0x40b6e <genclock+46>: add (3r) r3, r3, r2
0x40b70 <genclock+48>: bu (lu6) -0x4
0x40b74 <PllInit>: nop (0r)
0x40b76 <PllInit+2>: dualentsp (u6) 0xc

***** Registers *****
r0 0x40300 262912
r1 0x1 1
r2 0x32 50
r3 0x4c09543c 1275679804
r4 0x4c09540c 1275679756
r5 0x3 3
r6 0x0 0
r7 0x0 0
r8 0x0 0
r9 0x0 0
r10 0x40000 262144
r11 0x0 0
cp 0x49728 300840
dp 0x49fa0 303008
sp 0x7ff08 524040
lr 0x42788 272264 __main__main_tile_1_task_genclock_4 + 8
pc 0x40b6c 265068 genclock + 44
sr 0x140 320
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x40b6c 265068

Thread 4 (tile[0] core[3] (dual issue)):

***** Call Stack *****
#0 pdm_rx_8ch_loop () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/pdm_rx.S:160
#1 0x0004222c in pdm_rx_8ch_loop () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/pdm_rx.S:202
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Current language: auto; currently asm

***** Disassembly *****
0x42018 <pdm_rx_8ch_loop+8>: in (2r) r3, res[r3] *
0x4201a <pdm_rx_8ch_loop+10>: nop (0r)
0x4201c <pdm_rx_8ch_loop+12>: unzip (l2rus) r3, r4, 0x2
0x42020 <pdm_rx_8ch_loop+16>: unzip (l2rus) r3, r4, 0x1
0x42024 <pdm_rx_8ch_loop+20>: unzip (l2rus) r3, r4, 0x0

***** Registers *****
r0 0xcd83f0d 215498509
r1 0x80020102 -2147352318
r2 0x80020302 -2147351806
r3 0x80100 524544
r4 0xbfead5b8 -1075128904
r5 0x44560 279904
r6 0x44960 280928
r7 0x44d60 281952
r8 0xa5a635b 173695835
r9 0x0 0
r10 0x7f5b8 521656
r11 0xeb2897a 246581626
cp 0x44560 279904
dp 0x472a8 291496
sp 0x7f5b8 521656
lr 0x4222c 270892 .pdm_rx_asm_tmp + 0
pc 0x42018 270360 pdm_rx_8ch_loop + 8
sr 0x100 256
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x42018 270360

Thread 3 (tile[0] core[2] (dual issue)):

***** Call Stack *****
#0 third_stage_fir_impl () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:1025
#1 0x00041598 in divide_by_n_3_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:607
#2 0x00041598 in divide_by_n_3_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:607
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

***** Disassembly *****
0x41cd0 <third_stage_fir_impl+216>: maccs (l4r) r8, r7, r2, r0
0x41cd4 <third_stage_fir_impl+220>: maccs (l4r) r6, r5, r4, r0
0x41cd8 <third_stage_fir_impl+224>: add (2rus) r9, r9, 0x4
0x41cda <third_stage_fir_impl+226>: ldw (2rus) r0, r9[0x0]
0x41cdc <third_stage_fir_impl+228>: ldd (l3rus) r2, r1, r10[0x7]

***** Registers *****
r0 0xffcb5cc6 -3449658
r1 0xd188e14 219713044
r2 0xd1ceff5 220000245
r3 0x6c6f1ad9 1819220697
r4 0x6c6f1ad9 1819220697
r5 0x1565d6aa 358995626
r6 0xe046e5c 235171420
r7 0x62a3f375 1654911861
r8 0x1b0fcc7 28376263
r9 0x45ff0 286704
r10 0x49140 299328
r11 0x491c0 299456
cp 0x44560 279904
dp 0x7f640 521792
sp 0x7f610 521744
lr 0x41598 267672 divide_by_n_3_1 + 40
pc 0x41cd0 269520 third_stage_fir_impl + 216
sr 0x100 256
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x41cd0 269520

Thread 2 (tile[0] core[1] (dual issue)):

***** Call Stack *****
#0 third_stage_fir_impl () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:1025
#1 0x00041598 in divide_by_n_3_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:607
#2 0x00041598 in divide_by_n_3_1 () at C:/Users/nyadla/Desktop/Backup/XMOS/lib_mic_array/lib_mic_array/src/decimate_to_pcm_4ch.S:607
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

***** Disassembly *****
0x41cd4 <third_stage_fir_impl+220>: maccs (l4r) r6, r5, r4, r0
0x41cd8 <third_stage_fir_impl+224>: add (2rus) r9, r9, 0x4
0x41cda <third_stage_fir_impl+226>: ldw (2rus) r0, r9[0x0]
0x41cdc <third_stage_fir_impl+228>: ldd (l3rus) r2, r1, r10[0x7]
0x41ce0 <third_stage_fir_impl+232>: ldd (l3rus) r4, r3, r11[0x7]

***** Registers *****
r0 0xffcb5cc6 -3449658
r1 0xd9c65e0 228353504
r2 0xd941ef6 227811062
r3 0xf80d722 260101922
r4 0xf82a515 260220181
r5 0x83b3e64a -2085362102
r6 0x20015a5 33559973
r7 0xa477db48 -1535648952
r8 0x1bec156 29278550
r9 0x45ff0 286704
r10 0x47940 293184
r11 0x479c0 293312
cp 0x44560 279904
dp 0x7f960 522592
sp 0x7f930 522544
lr 0x41598 267672 divide_by_n_3_1 + 40
pc 0x41cd4 269524 third_stage_fir_impl + 220
sr 0x100 256
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x0 0
sed 0x0 0
kep 0x40080 262272
ksp 0x41cd4 269524

Thread 1 (tile[0] core[0] (dual issue)):

***** Call Stack *****
#0 0x00040918 in pdm_process (c_ds_output=@0x7ff58, c_audio=2147614722) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/pdm_mics/pcm_pdm_mic.xc:67
#1 0x00040a09 in handle_audio_request (c_mix_out=1) at C:/Users/nyadla/Desktop/Backup/XMOS/sc_usb_audio/module_usb_audio/usb_buffer/decouple.xc:126
Backtrace stopped: frame did not save the PC
Current language: auto; currently c

***** Disassembly *****
0x40918 <pdm_process+480>: chkct (rus) res[r4], 0x1 *
0x4091a <pdm_process+482>: add (2rus) r3, r5, 0x0
0x4091c <pdm_process+484>: outct (rus) res[r4], 0x1 *
0x4091e <pdm_process+486>: nop (0r)
0x40920 <pdm_process+488>: in (2r) r1, res[r4] *

***** Registers *****
r0 0x1 1
r1 0x4a490 304272
r2 0x7 7
r3 0x7 7
r4 0x80020002 -2147352574
r5 0x0 0
r6 0x2 2
r7 0x8 8
r8 0x4a440 304192
r9 0x7fe7c 523900
r10 0x7fedc 523996
r11 0x0 0
cp 0x44560 279904
dp 0x472a8 291496
sp 0x7fe48 523848
lr 0x40918 264472 pdm_process + 480
pc 0x40918 264472 pdm_process + 480
sr 0x140 320
spc 0x0 0
ssr 0x0 0
et 0x0 0
ed 0x1 1
sed 0x0 0
kep 0x40080 262272
ksp 0x40918 264472
User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am
Contact:

Post by infiniteimprobability »

Hi,
the dumpstate looks OK - not stuck in the xscope constructor. Looks like all tasks are running.

I see you are using 2i8o2 which means you are using USB audio class 2 (the Makefile and pdf docs explain this) which needs the Thesycon driver on windows.
Try 1i8o2 which uses USB audio class 1 which is natively supported by Windows
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Firmware version 6.19+ must be used
dr3amii
Newbie
Posts: 1
Joined: Wed Oct 25, 2017 3:53 pm

Post by dr3amii »

I installed TUSBAudio but can not display XMOS on the device. When I checked the board on the xTIME Composer Command Prompt with the xrun-lb command, I did not get the XP-USB-UF216 information. Please show me how to fix it
niruyadla@gmail.com
Member
Posts: 12
Joined: Thu Oct 12, 2017 8:04 pm

Post by niruyadla@gmail.com »

Where can I find Firmware version 6.19+ ?
Please share me the link to download 6.19+ firmware
niruyadla@gmail.com
Member
Posts: 12
Joined: Thu Oct 12, 2017 8:04 pm

Post by niruyadla@gmail.com »

Download "sw_usb_audio-[sw]_6.15.2rc1.zip" from the below link
http://www.xmos.com/support/software/uac2

And replace module_xud with the below one
https://drive.google.com/drive/folders/ ... sp=sharing

Then generate "app_usb_aud_mic_array_2i8o2.xe" firmware file with the above combination using xtimecomposer

Now you must be able to find XMOS USB 2.0 audio device on your windows PC.

Note: Makesure you have installed windows driver from the below link (TUSBAudio control panel)
http://www.xmos.com/support/usb-audio-driver-support
Post Reply