
Originally Posted by
xxxajk
@wwaton It was a bug that crept in. Fixed and working.
Did a pull on the library and results were this:
With HUB:
Code:
Start.
SWI_IRQ_NUM 30
USB HOST READY.
No media. Waiting to mount /
Configuring: parent = 0, port = 1, speed = 2
$$$$$$$$$$$$$$$$$$$$$$$$$ ADDRESS 1: 0 retries.
$$$$$$$$$$$$$$$$$$$$$$$$$ ADDRESS 1: 0 retries.
USBHub: checking numep 1, klass 09, interface.klass 09, protocol 00/01-00?01
USBHub: checking numep 1, klass 09, interface.klass 09, protocol 00/01-01?01
USBHub Accepting address assignment 01
dispatchPkt status code 08
dispatchPkt OTHER
USBHub configure 01 04 02
Configuring: parent = 1, port = 4, speed = 2
$$$$$$$$$$$$$$$$$$$$$$$$$ ADDRESS 2: 0 retries.
$$$$$$$$$$$$$$$$$$$$$$$$$ ADDRESS 2: 0 retries.
BulkOnly: checking numep 2, klass 00, subklass 00
BulkOnly: checking protocol 00, interface.klass 08, interface.subklass 06
BulkOnly: checking interface.protocol 50
BulkOnly: checking numep 2, klass 00, subklass 00
BulkOnly: checking protocol 00, interface.klass 08, interface.subklass 06
BulkOnly: checking interface.protocol 50
BS SetInterface
ep: 0x00 bmAttributes: 0x02 index: 1
ep: 0x01 bmAttributes: 0x02 index: 2
BS Start, speed: 2
BS Start
GetMaxLUN 0x00
MaxLUN 0
Inquiry 0x24 0x00
LUN 0 `KingstonDataTraveler 3.0'
Qualifier 0 Device type 00 RMB 1 SSCS 0 SCSI version 06
Device conforms to T10/1731-D (SPC-4) standards.
CheckLUN...
9
>>>>>>>>>>>>>>>>CAPACITY OK ON LUN 0
039a33f300000200
9
Checked LUN...
Onstart begin
BS configured
Configuring returned 00
Without HUB:
Code:
Start.
SWI_IRQ_NUM 30
USB HOST READY.
No media. Waiting to mount /
Configuring: parent = 0, port = 1, speed = 2
$$$$$$$$$$$$$$$$$$$$$$$$$ ADDRESS 1: 0 retries.
$$$$$$$$$$$$$$$$$$$$$$$$$ ADDRESS 1: 0 retries.
USBHub: checking numep 2, klass 00, interface.klass 08, protocol 50/00-00?01
BulkOnly: checking numep 2, klass 00, subklass 00
BulkOnly: checking protocol 00, interface.klass 08, interface.subklass 06
BulkOnly: checking interface.protocol 50
USBHub: checking numep 2, klass 00, interface.klass 08, protocol 50/00-01?01
BulkOnly: checking numep 2, klass 00, subklass 00
BulkOnly: checking protocol 00, interface.klass 08, interface.subklass 06
BulkOnly: checking interface.protocol 50
BS SetInterface
ep: 0x00 bmAttributes: 0x02 index: 1
ep: 0x01 bmAttributes: 0x02 index: 2
BS Start, speed: 2
BS Start
GetMaxLUN 0x00
MaxLUN 0
Inquiry 0x24 0x00
LUN 0 `KingstonDataTraveler 3.0'
Qualifier 0 Device type 00 RMB 1 SSCS 0 SCSI version 06
Device conforms to T10/1731-D (SPC-4) standards.
CheckLUN...
7
>>>>>>>>>>>>>>>>CAPACITY OK ON LUN 0
039a33f300000200
7
Checked LUN...
Onstart begin
BS configured
I also tried compiling "UHS_FS_NEW_DEMO.ino" in "UHS_KINETIS_FS_HOST" and got this error:
Code:
Generating function prototypes...
/home/wwatson/arduino-1.8.15/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=154 -DARDUINO=10815 -DARDUINO_TEENSY36 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/arduino-1.8.15/hardware/teensy/avr/cores/teensy3 -I/home/wwatson/Arduino/libraries/RTClib -I/home/wwatson/Arduino/libraries/UHS_host -I/home/wwatson/Arduino/libraries/ISR_safe_memory -I/home/wwatson/arduino-1.8.15/hardware/teensy/avr/libraries/Wire -I/home/wwatson/arduino-1.8.15/hardware/teensy/avr/libraries/SPI -I/home/wwatson/Arduino/libraries/UHS_ByteBuffer -I/home/wwatson/Arduino/libraries/UHS_FS /tmp/arduino_build_159496/sketch/UHS_FS_NEW_DEMO.ino.cpp -o /tmp/arduino_build_159496/preproc/ctags_target_for_gcc_minus_e.cpp
/home/wwatson/arduino-1.8.15/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_159496/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/wwatson/arduino-1.8.15/hardware/teensy/../tools/precompile_helper /home/wwatson/arduino-1.8.15/hardware/teensy/avr/cores/teensy3 /tmp/arduino_build_159496 /home/wwatson/arduino-1.8.15/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=154 -DARDUINO=10815 -DARDUINO_TEENSY36 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/arduino-1.8.15/hardware/teensy/avr/cores/teensy3 /tmp/arduino_build_159496/pch/Arduino.h -o /tmp/arduino_build_159496/pch/Arduino.h.gch
/home/wwatson/arduino-1.8.15/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -mno-unaligned-access -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=154 -DARDUINO=10815 -DARDUINO_TEENSY36 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/tmp/arduino_build_159496/pch -I/home/wwatson/arduino-1.8.15/hardware/teensy/avr/cores/teensy3 -I/home/wwatson/Arduino/libraries/RTClib -I/home/wwatson/Arduino/libraries/UHS_host -I/home/wwatson/Arduino/libraries/ISR_safe_memory -I/home/wwatson/arduino-1.8.15/hardware/teensy/avr/libraries/Wire -I/home/wwatson/arduino-1.8.15/hardware/teensy/avr/libraries/SPI -I/home/wwatson/Arduino/libraries/UHS_ByteBuffer -I/home/wwatson/Arduino/libraries/UHS_FS /tmp/arduino_build_159496/sketch/UHS_FS_NEW_DEMO.ino.cpp -o /tmp/arduino_build_159496/sketch/UHS_FS_NEW_DEMO.ino.cpp.o
In file included from /home/wwatson/Arduino/libraries/UHS_host/UHS_host.h:64:0,
from /home/wwatson/Arduino/libraries/UHS_FS/examples/UHS_KINETIS_FS_HOST/UHS_FS_NEW_DEMO/UHS_FS_NEW_DEMO.ino:107:
/home/wwatson/Arduino/libraries/UHS_host/UHS_KINETIS_FS_HOST/UHS_KINETIS_FS_HOST.h:215:22: error: variable or field 'uint8_t' declared void
virtual void uint8_t vbusPower(uint8_t port, VBUS_t state) {
^
/home/wwatson/Arduino/libraries/UHS_host/UHS_KINETIS_FS_HOST/UHS_KINETIS_FS_HOST.h:215:22: error: expected ';' at end of member declaration
/home/wwatson/Arduino/libraries/UHS_host/UHS_KINETIS_FS_HOST/UHS_KINETIS_FS_HOST.h:215:66: warning: ISO C++ forbids declaration of 'vbusPower' with no type [-fpermissive]
virtual void uint8_t vbusPower(uint8_t port, VBUS_t state) {
^
/home/wwatson/Arduino/libraries/UHS_host/UHS_KINETIS_FS_HOST/UHS_KINETIS_FS_HOST.h:215:30: error: conflicting return type specified for 'virtual int UHS_KINETIS_FS_HOST::vbusPower(uint8_t, VBUS_t)'
virtual void uint8_t vbusPower(uint8_t port, VBUS_t state) {
^
In file included from /home/wwatson/Arduino/libraries/UHS_host/UHS_host.h:49:0,
from /home/wwatson/Arduino/libraries/UHS_FS/examples/UHS_KINETIS_FS_HOST/UHS_FS_NEW_DEMO/UHS_FS_NEW_DEMO.ino:107:
/home/wwatson/Arduino/libraries/UHS_host/UHS_usbhost.h:110:32: error: overriding 'virtual uint8_t UHS_USB_HOST_BASE::vbusPower(uint8_t, VBUS_t)'
virtual uint8_t UHS_NI vbusPower(NOTUSED(uint8_t port), NOTUSED(VBUS_t state)) {
^
Using library RTClib in folder: /home/wwatson/Arduino/libraries/RTClib (legacy)
Using library UHS_host in folder: /home/wwatson/Arduino/libraries/UHS_host (legacy)
Using library ISR_safe_memory in folder: /home/wwatson/Arduino/libraries/ISR_safe_memory (legacy)
Using library Wire at version 1.0 in folder: /home/wwatson/arduino-1.8.15/hardware/teensy/avr/libraries/Wire
Using library SPI at version 1.0 in folder: /home/wwatson/arduino-1.8.15/hardware/teensy/avr/libraries/SPI
Using library UHS_ByteBuffer in folder: /home/wwatson/Arduino/libraries/UHS_ByteBuffer (legacy)
Using library UHS_FS in folder: /home/wwatson/Arduino/libraries/UHS_FS (legacy)
Error compiling for board Teensy 3.6.
Maybe it's me but before the updates it would compile but when uploaded the T3.6 would hang.