Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: T3.2 Serial + Audio, [no_device] issue

  1. #1
    Junior Member
    Join Date
    Mar 2015
    Posts
    7

    T3.2 Serial + Audio, [no_device] issue

    Hello,

    I'm using Audio library and want to print out CPU usage, but looks like I can't connect by Serial.

    If I just use simple example of Serial, and set teensy to "Serial" type, everything works fine, Arduino 1.8.7 recognize Serial port COM3 as teensy.

    But if I use the same simple example and set teensy type to "Serial + MIDI + Audio", Arduino doesn't recognize teensy serial port.

    Just "Audio" type

    Click image for larger version. 

Name:	teensy1.png 
Views:	6 
Size:	81.6 KB 
ID:	15298
    After reprogram to "Serial + MIDI + Audio" type

    Click image for larger version. 

Name:	teensy2.png 
Views:	7 
Size:	80.8 KB 
ID:	15297

    Verbose Info
    Code:
    15:58:43.839 (ports 5): Begin, version=1.44, 1ms res time
    15:58:43.839 (ports 5): LoadLibrary cfgmgr32 ok
    15:58:43.839 (ports 5): LoadLibrary ntdll ok
    15:58:43.843 (ports 5): callback 0024
    15:58:43.843 (ports 5): callback 0081
    15:58:43.844 (ports 5): callback 0083
    15:58:43.844 (ports 5): hWnd = 2690134
    15:58:43.844 (ports 5): callback 000D
    15:58:43.847 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_04d2#612160#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    15:58:43.847 (ports 5): found_usb_device, loc=usb:0/140000/0/A    Port_#0010.Hub_#0001
    15:58:43.847 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_04D2&REV_0275
    15:58:43.847 (ports 5): found_usb_device, devinst=0000089c
    15:58:43.847 (ports 5): add: loc=usb:0/140000/0/A, class=USB, vid=16C0, pid=04D2, ver=0275, serial=612160, dev=\\?\usb#vid_16c0&pid_04d2#612160#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    15:58:43.847 (ports 5): hiddev_from_devinst_list: iface=0
    15:58:43.848 (ports 5):   00000A20: path=\\?\hid#vid_16c0&pid_04d2&mi_00#7&241464cf&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    15:58:43.849 (ports 5): found_usb_device complete
    15:58:43.850 (ports 5): hid, found devinst=00000A20
    15:58:43.851 (ports 5): usb_add: usb:0/140000/0/A  hid#vid_16c0&pid_04d2 (Teensy 3.2) Audio
    16:07:10.199 (post_compile 1): Begin, version=1.44, 1ms res time
    16:07:10.283 (loader): Teensy Loader 1.44, begin program
    16:07:10.324 (loader): Listening for remote control on port 3149
    16:07:10.324 (loader): initialized, showing main window
    16:07:10.336 (loader): remote connection 792 opened
    16:07:10.337 (loader): remote cmd from 792: "comment: Teensyduino 1.44 - WINDOWS (teensy_post_compile)"
    16:07:10.337 (post_compile 1): Sending command: comment: Teensyduino 1.44 - WINDOWS (teensy_post_compile)
    16:07:10.340 (loader): remote cmd from 792: "status"
    16:07:10.342 (loader): HID/win32:  vid:1234 pid:BEAD ver:0218
    16:07:10.343 (loader): HID/win32:  vid:1234 pid:BEAD ver:0218
    16:07:10.343 (loader): HID/win32:  vid:046D pid:CA03 ver:0111
    16:07:10.343 (loader): HID/win32:  vid:1038 pid:1020 ver:0001
    16:07:10.343 (loader): HID/win32:  vid:1038 pid:1722 ver:0117
    16:07:10.344 (loader): HID/win32:  vid:1038 pid:1722 ver:0117
    16:07:10.344 (loader): HID/win32:  vid:16C0 pid:04D2 ver:0275
    16:07:10.345 (loader): remote cmd from 792: "dir:C:\Users\kutu\AppData\Local\Temp\arduino_build_511749\"
    16:07:10.345 (post_compile 1): Status: 0, 0, 0, 0, 0, 0, C:\Users\kutu\AppData\Local\Temp\arduino_build_554241\, Filter-test.ino.hex
    16:07:10.345 (post_compile 1): Sending command: dir:C:\Users\kutu\AppData\Local\Temp\arduino_build_511749\
    16:07:10.345 (loader): remote cmd from 792: "file:Filter-test.ino.hex"
    16:07:10.345 (post_compile 1): Sending command: file:Filter-test.ino.hex
    16:07:10.350 (loader): File "Filter-test.ino.hex". 28528 bytes, 11% used
    16:07:10.354 (loader): remote cmd from 792: "status"
    16:07:10.357 (loader): remote cmd from 792: "auto:on"
    16:07:10.357 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\kutu\AppData\Local\Temp\arduino_build_511749\, Filter-test.ino.hex
    16:07:10.357 (post_compile 1): Sending command: auto:on
    16:07:10.357 (post_compile 1): Disconnect
    16:07:10.367 (loader): remote connection 792 closed
    16:07:10.429 (post_compile 2): Begin, version=1.44, 1ms res time
    16:07:10.430 (loader): remote connection 792 opened
    16:07:10.430 (post_compile 2): Sending command: comment: Teensyduino 1.44 - WINDOWS (teensy_post_compile)
    16:07:10.430 (loader): remote cmd from 792: "comment: Teensyduino 1.44 - WINDOWS (teensy_post_compile)"
    16:07:10.430 (loader): remote cmd from 792: "status"
    16:07:10.432 (loader): remote cmd from 792: "dir:C:\Users\kutu\AppData\Local\Temp\arduino_build_511749\"
    16:07:10.432 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\kutu\AppData\Local\Temp\arduino_build_511749\, Filter-test.ino.hex
    16:07:10.432 (post_compile 2): Sending command: dir:C:\Users\kutu\AppData\Local\Temp\arduino_build_511749\
    16:07:10.432 (loader): remote cmd from 792: "file:Filter-test.ino.hex"
    16:07:10.432 (post_compile 2): Sending command: file:Filter-test.ino.hex
    16:07:10.436 (loader): File "Filter-test.ino.hex". 28528 bytes, 11% used
    16:07:10.439 (loader): remote cmd from 792: "status"
    16:07:10.440 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\kutu\AppData\Local\Temp\arduino_build_511749\, Filter-test.ino.hex
    16:07:10.440 (post_compile 2): Disconnect
    16:07:10.451 (post_compile 3): Running teensy_reboot: "D:\downloads\teensy\arduino-1.8.7\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY31" "-port=usb:0/140000/0/A" "-portlabel=(null)" "-portprotocol=(null)"
    16:07:10.451 (loader): remote connection 792 closed
    16:07:10.451 (loader): remote connection 800 opened
    16:07:10.478 (loader): remote connection 804 opened
    16:07:10.478 (loader): remote cmd from 804: "show:arduino_attempt_reboot"
    16:07:10.478 (loader): got request to show arduino rebooting message
    16:07:10.480 (loader): remote cmd from 804: "comment: Teensyduino 1.44 - WINDOWS (teensy_reboot)"
    16:07:10.480 (loader): remote cmd from 804: "status"
    16:07:10.484 (loader): remote cmd from 804: "status"
    16:07:10.586 (loader): remote cmd from 804: "status"
    16:07:10.688 (loader): remote cmd from 804: "status"
    16:07:10.790 (loader): remote cmd from 804: "status"
    16:07:10.892 (loader): remote cmd from 804: "status"
    16:07:10.994 (loader): remote cmd from 804: "status"
    16:07:11.098 (loader): remote cmd from 804: "status"
    16:07:11.199 (loader): remote cmd from 804: "status"
    16:07:11.301 (loader): remote cmd from 804: "status"
    16:07:11.403 (loader): remote cmd from 804: "status"
    16:07:11.505 (loader): remote cmd from 804: "status"
    16:07:11.616 (loader): remote cmd from 804: "status"
    16:07:11.676 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:11.679 (loader): remote connection 812 opened
    16:07:11.680 (ports 5): remove: loc=usb:0/140000/0/A
    16:07:11.680 (ports 5): usb_remove: usb:0/140000/0/A
    16:07:11.680 (ports 5): nothing new, skipping HID & Ports enum
    16:07:11.717 (loader): remote cmd from 804: "status"
    16:07:11.819 (loader): remote cmd from 804: "status"
    16:07:11.923 (loader): remote cmd from 804: "status"
    16:07:12.025 (loader): remote cmd from 804: "status"
    16:07:12.129 (loader): remote cmd from 804: "status"
    16:07:12.233 (loader): remote cmd from 804: "status"
    16:07:13.019 (loader): remote cmd from 804: "status"
    16:07:13.021 (loader): Verbose Info event
    16:07:13.121 (loader): remote cmd from 804: "status"
    16:07:13.227 (loader): remote cmd from 804: "status"
    16:07:13.331 (loader): remote cmd from 804: "status"
    16:07:13.380 (ports 5): purge, name=hid#vid_16c0&pid_04d2 (Teensy 3.2) Audio, loc=usb:0/140000/0/A, age=1.699 sec
    16:07:13.435 (loader): remote cmd from 804: "status"
    16:07:13.494 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    16:07:13.495 (ports 5): nothing new, skipping HID & Ports enum
    16:07:13.539 (loader): remote cmd from 804: "status"
    16:07:13.642 (loader): remote cmd from 804: "status"
    16:07:13.748 (loader): remote cmd from 804: "status"
    16:07:13.852 (loader): remote cmd from 804: "status"
    16:07:13.956 (loader): remote cmd from 804: "status"
    16:07:14.024 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:14.025 (ports 5): nothing new, skipping HID & Ports enum
    16:07:14.209 (loader): remote cmd from 804: "status"
    16:07:14.313 (loader): remote cmd from 804: "status"
    16:07:14.419 (loader): remote cmd from 804: "status"
    16:07:14.523 (loader): remote cmd from 804: "status"
    16:07:14.627 (loader): remote cmd from 804: "status"
    16:07:14.732 (loader): remote cmd from 804: "status"
    16:07:14.835 (loader): remote cmd from 804: "status"
    16:07:14.939 (loader): remote cmd from 804: "status"
    16:07:15.043 (loader): remote cmd from 804: "status"
    16:07:15.147 (loader): remote cmd from 804: "status"
    16:07:15.251 (loader): remote cmd from 804: "status"
    16:07:15.354 (loader): remote cmd from 804: "status"
    16:07:15.462 (loader): remote cmd from 804: "status"
    16:07:15.566 (loader): remote cmd from 804: "status"
    16:07:15.670 (loader): remote cmd from 804: "status"
    16:07:15.773 (loader): remote cmd from 804: "status"
    16:07:15.876 (loader): remote cmd from 804: "status"
    16:07:15.980 (loader): remote cmd from 804: "status"
    16:07:16.084 (loader): remote cmd from 804: "status"
    16:07:16.188 (loader): remote cmd from 804: "status"
    16:07:16.292 (loader): remote cmd from 804: "status"
    16:07:16.395 (loader): remote cmd from 804: "status"
    16:07:16.814 (loader): remote connection 800 closed
    16:07:16.817 (loader): remote connection 804 closed
    16:07:21.757 (loader): Device came online, code_size = 262144
    16:07:21.764 (loader): Board is: Teensy 3.1 (MK20DX256), version 1.03
    16:07:21.789 (loader): File "Filter-test.ino.hex". 28528 bytes, 11% used
    16:07:21.795 (loader): set background IMG_ONLINE
    16:07:21.808 (loader): File "Filter-test.ino.hex". 28528 bytes, 11% used
    16:07:21.812 (loader): elf size appears to be 262144
    16:07:21.815 (loader): elf binary data matches hex file
    16:07:21.817 (loader): Code size from .elf file = 262144
    16:07:21.821 (loader): begin operation
    16:07:21.832 (loader): flash, block=0, bs=1024, auto=1
    16:07:21.840 (loader): flash, block=1, bs=1024, auto=1
    16:07:21.847 (loader): flash, block=2, bs=1024, auto=1
    16:07:21.850 (loader): flash, block=3, bs=1024, auto=1
    16:07:21.929 (loader): flash, block=4, bs=1024, auto=1
    16:07:21.932 (loader): flash, block=5, bs=1024, auto=1
    16:07:21.951 (loader): flash, block=6, bs=1024, auto=1
    16:07:21.956 (loader): flash, block=7, bs=1024, auto=1
    16:07:21.960 (loader): flash, block=8, bs=1024, auto=1
    16:07:21.979 (loader): flash, block=9, bs=1024, auto=1
    16:07:21.983 (loader): flash, block=10, bs=1024, auto=1
    16:07:22.003 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:22.006 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#0000ef20#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    16:07:22.006 (ports 5): found_usb_device, loc=usb:0/140000/0/A    Port_#0010.Hub_#0001
    16:07:22.006 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0103
    16:07:22.006 (ports 5): found_usb_device, devinst=00000fdc
    16:07:22.006 (ports 5): add: loc=usb:0/140000/0/A, class=HID, vid=16C0, pid=0478, ver=0103, serial=0000ef20, dev=\\?\usb#vid_16c0&pid_0478#0000ef20#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    16:07:22.008 (ports 5): hiddev_from_devinst_list: iface=0
    16:07:22.011 (ports 5): found_usb_device complete
    16:07:22.013 (ports 5): hid, found devinst=00001020
    16:07:22.013 (ports 5): hid, path=\\?\hid#vid_16c0&pid_0478#6&37d7c319&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    16:07:22.013 (ports 5): hid,  opened handle
    16:07:22.013 (ports 5):  devinst=00001020, location=usb:0/140000/0/A
    16:07:22.013 (ports 5):  vid=16C0, pid=0478, ver=0103, usepage=FF9C, use=001E
    16:07:22.013 (ports 5):  devpath=\\?\hid#vid_16c0&pid_0478#6&37d7c319&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    16:07:22.014 (ports 5): usb_add: usb:0/140000/0/A  hid#vid_16c0&pid_0478 (Teensy 3.1) Bootloader
    16:07:22.016 (loader): flash, block=11, bs=1024, auto=1
    16:07:22.021 (loader): flash, block=12, bs=1024, auto=1
    16:07:22.025 (loader): flash, block=13, bs=1024, auto=1
    16:07:22.029 (loader): flash, block=14, bs=1024, auto=1
    16:07:22.032 (loader): flash, block=15, bs=1024, auto=1
    16:07:22.051 (loader): flash, block=16, bs=1024, auto=1
    16:07:22.054 (loader): flash, block=17, bs=1024, auto=1
    16:07:22.072 (loader): flash, block=18, bs=1024, auto=1
    16:07:22.090 (loader): flash, block=19, bs=1024, auto=1
    16:07:22.092 (loader): flash, block=20, bs=1024, auto=1
    16:07:22.111 (loader): flash, block=21, bs=1024, auto=1
    16:07:22.115 (loader): flash, block=22, bs=1024, auto=1
    16:07:22.117 (loader): flash, block=23, bs=1024, auto=1
    16:07:22.145 (loader): flash, block=24, bs=1024, auto=1
    16:07:22.149 (loader): flash, block=25, bs=1024, auto=1
    16:07:22.152 (loader): flash, block=26, bs=1024, auto=1
    16:07:22.170 (loader): flash, block=27, bs=1024, auto=1
    16:07:22.175 (loader): sending reboot
    16:07:22.193 (loader): begin wait_until_offline
    16:07:22.564 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:22.569 (ports 5): remove: loc=usb:0/140000/0/A
    16:07:22.569 (ports 5): usb_remove: usb:0/140000/0/A
    16:07:22.569 (ports 5): nothing new, skipping HID & Ports enum
    16:07:22.578 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:22.582 (ports 5): nothing new, skipping HID & Ports enum
    16:07:22.594 (loader): offline, waited 8
    16:07:22.603 (loader): end operation, total time = 0.781 seconds
    16:07:22.606 (loader): set background IMG_REBOOT_OK
    16:07:22.609 (loader): redraw timer set, image 14 to show for 1200 ms
    16:07:22.623 (loader): HID/win32:  vid:1234 pid:BEAD ver:0218
    16:07:22.624 (loader): HID/win32:  vid:1234 pid:BEAD ver:0218
    16:07:22.626 (loader): HID/win32:  vid:046D pid:CA03 ver:0111
    16:07:22.627 (loader): HID/win32:  vid:1038 pid:1020 ver:0001
    16:07:22.629 (loader): HID/win32:  vid:1038 pid:1722 ver:0117
    16:07:22.630 (loader): HID/win32:  vid:1038 pid:1722 ver:0117
    16:07:23.083 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    16:07:23.087 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_048a#612160#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    16:07:23.087 (ports 5): found_usb_device, loc=usb:0/140000/0/A    Port_#0010.Hub_#0001
    16:07:23.087 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_048A&REV_0275
    16:07:23.087 (ports 5): found_usb_device, devinst=00001074
    16:07:23.087 (ports 5): add: loc=usb:0/140000/0/A, class=USB, vid=16C0, pid=048A, ver=0275, serial=612160, dev=\\?\usb#vid_16c0&pid_048a#612160#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    16:07:23.087 (ports 5):   comport_from_devinst_list attempt
    16:07:23.087 (ports 5): found_usb_device complete
    16:07:23.091 (ports 5): usb_add: usb:0/140000/0/A  [no_device] (Teensy 3.2) Serial+MIDI+Audio
    16:07:23.513 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    16:07:23.818 (loader): redraw, image 9
    16:07:24.000 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:24.010 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:25.500 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:07:27.012 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    16:22:00.107 (loader): Verbose Info event
    16:22:07.607 (serialmon 6): Begin, version=1.44, 1ms res time
    16:22:07.607 (serialmon 6): listening for location: usb:0/140000/0/A
    16:22:07.607 (serialmon 6): LoadLibrary cfgmgr32 ok
    16:22:07.607 (serialmon 6): LoadLibrary ntdll ok
    16:22:07.611 (serialmon 6): callback 0024
    16:22:07.611 (serialmon 6): callback 0081
    16:22:07.612 (serialmon 6): callback 0083
    16:22:07.612 (serialmon 6): hWnd = 1967736
    16:22:07.612 (serialmon 6): callback 000D
    16:22:07.613 (serialmon 6): loop stdin, ready=2097151
    16:22:07.614 (serialmon 6): found_usb_device, id=\\?\usb#vid_16c0&pid_048a#612160#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    16:22:07.614 (serialmon 6): found_usb_device, loc=usb:0/140000/0/A    Port_#0010.Hub_#0001
    16:22:07.614 (serialmon 6): found_usb_device, hwid=USB\VID_16C0&PID_048A&REV_0275
    16:22:07.614 (serialmon 6): found_usb_device, devinst=0000089c
    16:22:07.614 (serialmon 6): add: loc=usb:0/140000/0/A, class=USB, vid=16C0, pid=048A, ver=0275, serial=612160, dev=\\?\usb#vid_16c0&pid_048a#612160#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    16:22:07.615 (serialmon 6):   comport_from_devinst_list attempt
    16:22:07.615 (serialmon 6): found_usb_device complete
    16:22:07.616 (serialmon 6): usb_add: usb:0/140000/0/A
    16:22:07.616 (serialmon 6): ignoring partial USB device discovery (Windows XP issue?)
    16:22:07.618 (loader): remote connection 440 opened
    16:22:07.871 (serialmon 6): retry device discovery (Windows XP workaround)
    16:22:08.132 (serialmon 6): retry device discovery (Windows XP workaround)
    16:22:08.389 (serialmon 6): retry device discovery (Windows XP workaround)
    16:22:08.654 (serialmon 6): retry device discovery (Windows XP workaround)
    16:22:08.914 (serialmon 6): retry device discovery (Windows XP workaround)
    16:22:09.176 (serialmon 6): retry device discovery (Windows XP workaround)
    16:22:09.431 (serialmon 6): retry device discovery (Windows XP workaround)
    16:22:09.694 (serialmon 6): timeout
    16:22:12.697 (loader): remote connection 440 closed
    at 16:22 I opened Serial Monitor

    I use
    Teensy 3.2
    Arduino 1.8.7
    Teensyduino 1.44

    Thanks in advance.

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,745
    Have you set the AudioMemory? Please post the sourcecode.

  3. #3
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,745
    @Paul, can you rename Midi and Audio USB settings in the menu to USBMidi and USBAudio? It might be a bit misleading as it is now, for beginners

  4. #4
    Junior Member
    Join Date
    Mar 2015
    Posts
    7
    I set AudioMemory in my project, but it doesn't matter, cause the same happens with simple Serial example

    this is exact code that I use in my project

    Code:
    #include <Audio.h>
    #include <Bounce.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
    
    // GUItool: begin automatically generated code
    AudioInputI2S            i2s1;           //xy=504,287
    AudioEffectDynamics      dynamics1;        //xy=702,287
    AudioAmplifier           amp1;           //xy=873,287
    AudioOutputUSB           usb1;           //xy=873,287
    //AudioConnection          patchCord1(i2s1, 0, usb1, 0);
    //AudioConnection          patchCord2(i2s1, 1, usb1, 1);
    AudioConnection          patchCord1(i2s1, 0, dynamics1, 0);
    AudioConnection          patchCord2(dynamics1, amp1);
    AudioConnection          patchCord3(amp1, 0, usb1, 0);
    AudioConnection          patchCord4(amp1, 0, usb1, 1);
    AudioControlSGTL5000     sgtl5000_1;     //xy=710,359
    // GUItool: end automatically generated code
    
    //const int myInput = AUDIO_INPUT_LINEIN;
    const int myInput = AUDIO_INPUT_MIC;
    int updateFilter[5];
    
    int buttonPin = 8;
    Bounce button8 = Bounce(buttonPin, 15);
    int state = 1;
    
    void setup() {
      AudioMemory(16);
    
      sgtl5000_1.enable();
      sgtl5000_1.adcHighPassFilterDisable();
      sgtl5000_1.inputSelect(myInput);
      sgtl5000_1.volume(0);
      sgtl5000_1.micGain(20);
      
      sgtl5000_1.audioPreProcessorEnable();
      sgtl5000_1.eqSelect(3);
    //115Hz, 330Hz, 990Hz, 3kHz, and 9.9kHz. Each band has a range of adjustment from 1.00 (+12dB) to -1.00 (-11.75dB).
      sgtl5000_1.eqBands(0.5, 0.0, -0.25, 0.5, 1.0);
    //  sgtl5000_1.eqBands(-1, 0.5, 0, 0.5, 1.0);
    
    //  sgtl5000_1.enhanceBassEnable();
    //  sgtl5000_1.enhanceBass(1, 1, 0, 6);
    
      dynamics1.gate(-45, 0, 1);
    //  dynamics1.gate(MIN_DB);
      dynamics1.compression(-20, 0, 0.5, 2, 6);
      dynamics1.limit(-6, 0, 1);
      dynamics1.makeupGain(20);
    
      pinMode(buttonPin, INPUT_PULLUP);
      
    //  Serial.begin(9600);
    }
    
    
    void loop() {
      button8.update();
      if (button8.fallingEdge()) {
        if (state == 0) {
          state = 1;
          dynamics1.gate(-45, 0, 1);
    //        sgtl5000_1.eqSelect(3);
        } else {
          state = 0;
          dynamics1.gate(MIN_DB);
    //        sgtl5000_1.eqSelect(0);
        }
      }
      delay(100);
      
    //  Serial.print("CPU USE: ");
    //  Serial.print(AudioProcessorUsage());
    //  Serial.print(",");
    //  Serial.print(AudioProcessorUsageMax());
    //  Serial.print("    ");
    //  Serial.print("RAM: ");
    //  Serial.print(AudioMemoryUsage());
    //  Serial.print(",");
    //  Serial.println(AudioMemoryUsageMax());
    }
    Yes, I uncomment Serial lines when I tried to test with Serial+MIDI+Audio type

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,655
    The "[no device]" means Windows is not behaving. It's not Teensy's fault. Windows is detecting the device but not loading its USBSER.SYS driver properly. This is absolutely happening on the Windows side. I added that "[no device]" message in version 1.42 specifically because Windows messes up sometimes. This is one of those times.

    Nothing you do on the Teensy side is going to fix this problem. It's Windows!

    Answering "how" to fix the problem is much harder than saying "what" the problem is. But hopefully this at least adds a little clarity.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •