TomChiron
Well-known member
I am having problems to compile a scetch using USBHost_t36.h where I am completely stuck now. Even the "Basic.ino" (from MIDI) example is not compiling anymore. I don't understand what is going on here from the error messages. In the past it worked and I couldn't find any similar problem in the forum or internet.
Windows 10, Arduino 1.8.19, Teensyduino 1.58 (installed it again), compiling for Teensy 4.1 (selecting 3.6 does not make a difference)
There is a massive list of much more of such error messages following.
Windows 10, Arduino 1.8.19, Teensyduino 1.58 (installed it again), compiling for Teensy 4.1 (selecting 3.6 does not make a difference)
There is a massive list of much more of such error messages following.
Code:
...
...
Compiling libraries...
Compiling library "USBHost_t36"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\BluetoothConnection.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\BluetoothConnection.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\antplus.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\antplus.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\SerEMU.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\SerEMU.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\USBFilesystemFormatter.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\adk.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\adk.cpp.o"
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\EEPROM" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\utility" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\USBHost_t36\\MassStorageDriver.cpp" -o "C:\\Users\\Thomas\\AppData\\Local\\Temp\\arduino_build_161126\\libraries\\USBHost_t36\\MassStorageDriver.cpp.o"
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\SerEMU.cpp:30:6: error: 'USBSerialEmu' has not been declared
30 | void USBSerialEmu::init()
| ^~~~~~~~~~~~
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\MassStorageDriver.cpp:29:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:15: error: 'USBFilesystem' has not been declared
9 | bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
| ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:9:69: error: 'print_t' has not been declared
9 | bool format(USBFilesystem &fs, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
| ^~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:18: error: 'USBDrive' has not been declared
10 | bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
| ^~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:33: error: 'USBFilesystem' has not been declared
10 | bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
| ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:10:101: error: 'print_t' has not been declared
10 | bool formatFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
| ^~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:20: error: 'USBDrive' has not been declared
11 | bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
| ^~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:35: error: 'USBFilesystem' has not been declared
11 | bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
| ^~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36\utility/USBFilesystemFormatter.h:11:103: error: 'print_t' has not been declared
11 | bool formatExFAT(USBDrive &dev, USBFilesystem &fs, uint8_t part, uint8_t fat_type, uint8_t* secBuf, print_t* pr);
...
...
...
Bibliothek USBHost_t36 in Version 0.2 im Ordner: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\USBHost_t36 wird verwendet