GIGA R1 USB Mass Storage examples : has anyone managed to run an example project ?

All ( sbhklr) Ok a new issue has been created:
GIGA R1 USB Mass Storage Directory example causes MbedOS crash · Issue #29 · arduino-libraries/Arduino_USBHostMbed5 (github.com)

2 Likes

Thanks @Merlin513,

Wondering if anyone has looked through all of the warning messages that are generated as part of the build? Note: with the build cache you may only see these once, unless you do something like clear out the directory: %temp%/arduino
(Or wherever the equivalent is done on non-Windows machines)

In particular this one file:

"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -Wall -Wextra -g3 -nostdlib "@C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\variants\\GIGA/defines.txt" "@C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\variants\\GIGA/cxxflags.txt" -MMD -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED_GIGA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\cores\\arduino" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\variants\\GIGA" "-Ic:\\Users\\kurte\\Documents\\Arduino\\libraries\\Arduino_USBHostMbed5\\src" -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\cores\\arduino/api/deprecated" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\cores\\arduino" "@C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\mbed_giga\\4.0.8\\variants\\GIGA/includes.txt" "c:\\Users\\kurte\\Documents\\Arduino\\libraries\\Arduino_USBHostMbed5\\src\\targets\\TARGET_STM\\USBHALHost_STM.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\0796A63DB76D221868BE353872FAE80B\\libraries\\Arduino_USBHostMbed5\\targets\\TARGET_STM\\USBHALHost_STM.cpp.o"
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.h:20:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp:17:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp: In member function 'bool USBHostHub::connect(USBDeviceConnected*)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp:125:45: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         rtos::ThisThread::sleep_for(buf[5]*2);
                                             ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.h:24,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp: In member function 'void USBHostHub::portReset(uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp:252:39: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         rtos::ThisThread::sleep_for(10);
                                       ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.h:24,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:4,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBEndpoint.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:22:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:22:0:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBEndpoint.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp: In member function 'void USBEndpoint::init(HCED*, ENDPOINT_TYPE, ENDPOINT_DIRECTION, uint32_t, uint8_t, HCTD**)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:67:19: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     ep_queue.get(0);
                   ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBEndpoint.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:22:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp: In member function 'void USBEndpoint::setDeviceAddress(uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:84:24: warning: unused variable 'hhcd' [-Wunused-variable]
     HCD_HandleTypeDef *hhcd;
                        ^~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp: In member function 'void USBEndpoint::setState(USB_TYPE)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:115:44: warning: 'osStatus rtos::Queue<T, queue_sz>::put(T*, uint32_t, uint8_t) [with T = unsigned char; long unsigned int queue_sz = 1; osStatus = long int; uint32_t = long unsigned int; uint8_t = unsigned char]' is deprecated: Replaced with try_put and try_put_for. In future put will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
             this->ep_queue.put((uint8_t *)1);
                                            ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBEndpoint.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:22:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:219:14: note: declared here
     osStatus put(T *data, uint32_t millisec = 0, uint8_t prio = 0)
              ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp: In member function 'USB_TYPE USBEndpoint::queueTransfer()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:179:19: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     ep_queue.get(0);
                   ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBEndpoint.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp:22:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:4,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBEndpoint.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBEndpoint.cpp:19:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBEndpoint.cpp:19:0:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBEndpoint.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp:19:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp:19:0:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp: In member function 'virtual int WANDongleSerialPort::readPacket()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp:93:36: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     rtos::ThisThread::sleep_for(100);
                                    ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp:30:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp: In member function 'virtual int WANDongleSerialPort::writePacket()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp:126:36: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     rtos::ThisThread::sleep_for(100);
                                    ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp:30:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.h:20:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.cpp:17:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.cpp: In member function 'bool USBHostMouse::connect()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.cpp:83:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     if (len_listen > sizeof(report)) {
                         ~~~~~~~~~~~^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.cpp: In member function 'void USBHostMouse::rxHandler()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.cpp:137:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (len_listen > sizeof(report)) {
         ~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.h:22,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:19:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.h:22:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:19:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp: In member function 'bool USBHostMIDI::sendNoteOff(uint8_t, uint8_t, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:294:38: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     return sendMidiBuffer(8, channel & 0xf | 0x80, note & 0x7f, velocity & 0x7f);
                              ~~~~~~~~^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp: In member function 'bool USBHostMIDI::sendNoteOn(uint8_t, uint8_t, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:298:38: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     return sendMidiBuffer(9, channel & 0xf | 0x90, note & 0x7f, velocity & 0x7f);
                              ~~~~~~~~^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp: In member function 'bool USBHostMIDI::sendPolyKeyPress(uint8_t, uint8_t, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:302:39: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     return sendMidiBuffer(10, channel & 0xf | 0xa0, note & 0x7f, pressure & 0x7f);
                               ~~~~~~~~^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp: In member function 'bool USBHostMIDI::sendControlChange(uint8_t, uint8_t, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:306:39: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     return sendMidiBuffer(11, channel & 0xf | 0xb0, key & 0x7f, value & 0x7f);
                               ~~~~~~~~^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp: In member function 'bool USBHostMIDI::sendProgramChange(uint8_t, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:310:39: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     return sendMidiBuffer(12, channel & 0xf | 0xc0, program & 0x7f, 0);
                               ~~~~~~~~^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp: In member function 'bool USBHostMIDI::sendChannelPressure(uint8_t, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:314:39: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     return sendMidiBuffer(13, channel & 0xf | 0xd0, pressure & 0x7f, 0);
                               ~~~~~~~~^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp: In member function 'bool USBHostMIDI::sendPitchBend(uint8_t, uint16_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp:318:39: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
     return sendMidiBuffer(14, channel & 0xf | 0xe0, value & 0x7f, (value >> 7) & 0x7f);
                               ~~~~~~~~^~~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.h:20:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp:17:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp: In member function 'void USBHostSerialPort::init()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp:225:19: warning: converting to non-pointer type 'uint8_t {aka unsigned char}' from NULL [-Wconversion-null]
     serial_intf = NULL;
                   ^~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp: In member function 'virtual int USBHostSerialPort::writeBuf(const char*, int)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp:322:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             int i = (s < size_bulk_out) ? s : size_bulk_out;
                      ~~^~~~~~~~~~~~~~~
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.h:26:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp:17:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\MtxCircBuffer.h: In instantiation of 'void MtxCircBuffer<T, size>::queue(T) [with T = unsigned char; int size = 128]':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp:262:38:   required from here
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\MtxCircBuffer.h:56:40: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
             rtos::ThisThread::sleep_for(10);
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.h:24,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:4,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostTypes.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBEndpoint.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBDeviceConnected.h:21,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBDeviceConnected.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBDeviceConnected.h:21:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBDeviceConnected.cpp:17:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBEndpoint.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.h:20:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.cpp:17:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.cpp: In member function 'virtual int USBHostMSD::init()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.cpp:351:40: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         rtos::ThisThread::sleep_for(100);
                                        ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.h:24,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.cpp:348:31: warning: unused variable 'ret' [-Wunused-variable]
     uint16_t i, timeout = 10, ret;
                               ^~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostKeyboard.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostKeyboard.cpp:17:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostKeyboard.h:20:0,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHostHID\USBHostKeyboard.cpp:17:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:33:0:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h: In function 'void usb_vbus(uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:152:37: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     rtos::ThisThread::sleep_for(1.0f);
                                     ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:27:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/stm32h7xx_hal_conf.h:398,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal.h:30,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7xx.h:223,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/cmsis.h:22,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/PinNamesTypes.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:4,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:27:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h: In constructor 'USBHALHost::USBHALHost()':
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.h:1979:48: warning: conversion to void will not access object of type 'volatile uint32_t {aka volatile long unsigned int}'
                                         UNUSED(tmpreg); \
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_def.h:70:27: note: in definition of macro 'UNUSED'
 #define UNUSED(x) ((void)(x))
                           ^
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/Legacy/stm32_hal_legacy.h:2779:26: note: in expansion of macro '__HAL_RCC_CRS_CLK_ENABLE'
 #define __CRS_CLK_ENABLE __HAL_RCC_CRS_CLK_ENABLE
                          ^~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:183:5: note: in expansion of macro '__CRS_CLK_ENABLE'
     __CRS_CLK_ENABLE();
     ^
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.h:1438:48: warning: conversion to void will not access object of type 'volatile uint32_t {aka volatile long unsigned int}'
                                         UNUSED(tmpreg); \
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_def.h:70:27: note: in definition of macro 'UNUSED'
 #define UNUSED(x) ((void)(x))
                           ^
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:271:5: note: in expansion of macro '__HAL_RCC_GPIOB_CLK_ENABLE'
     __HAL_RCC_GPIOB_CLK_ENABLE();
     ^
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.h:1430:48: warning: conversion to void will not access object of type 'volatile uint32_t {aka volatile long unsigned int}'
                                         UNUSED(tmpreg); \
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_def.h:70:27: note: in definition of macro 'UNUSED'
 #define UNUSED(x) ((void)(x))
                           ^
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:109:30: note: in expansion of macro '__HAL_RCC_GPIOA_CLK_ENABLE'
 #define USB_POWERPIN_CONFIG {__HAL_RCC_GPIOA_CLK_ENABLE();gpio_init_out_ex(&gpio_powerpin, PA_15, USB_POWER_OFF);}
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:342:5: note: in expansion of macro 'USB_POWERPIN_CONFIG'
     USB_POWERPIN_CONFIG;
     ^
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.h:2423:48: warning: conversion to void will not access object of type 'volatile uint32_t {aka volatile long unsigned int}'
                                         UNUSED(tmpreg); \
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_def.h:70:27: note: in definition of macro 'UNUSED'
 #define UNUSED(x) ((void)(x))
                           ^
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:345:5: note: in expansion of macro '__HAL_RCC_SYSCFG_CLK_ENABLE'
     __HAL_RCC_SYSCFG_CLK_ENABLE();
     ^
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.h:1047:48: warning: conversion to void will not access object of type 'volatile uint32_t {aka volatile long unsigned int}'
                                         UNUSED(tmpreg); \
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_def.h:70:27: note: in definition of macro 'UNUSED'
 #define UNUSED(x) ((void)(x))
                           ^
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/Legacy/stm32_hal_legacy.h:3145:56: note: in expansion of macro '__HAL_RCC_USB1_OTG_HS_CLK_ENABLE'
 #define __HAL_RCC_USB_OTG_HS_CLK_ENABLE()              __HAL_RCC_USB1_OTG_HS_CLK_ENABLE()
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:353:5: note: in expansion of macro '__HAL_RCC_USB_OTG_HS_CLK_ENABLE'
     __HAL_RCC_USB_OTG_HS_CLK_ENABLE();
     ^
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp: In function 'void HAL_HCD_EnableInt(HCD_HandleTypeDef*, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:63:28: warning: unused variable 'USBx' [-Wunused-variable]
     USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
                            ^~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp: In function 'void HAL_HCD_DisableInt(HCD_HandleTypeDef*, uint8_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:70:28: warning: unused variable 'USBx' [-Wunused-variable]
     USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
                            ^~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp: In function 'void HAL_HCD_HC_NotifyURBChange_Callback(HCD_HandleTypeDef*, uint8_t, HCD_URBStateTypeDef)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:109:20: warning: enumeration value 'URB_IDLE' not handled in switch [-Wswitch]
             switch (urb_state) {
                    ^
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:109:20: warning: enumeration value 'URB_NYET' not handled in switch [-Wswitch]
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:109:20: warning: enumeration value 'URB_ERROR' not handled in switch [-Wswitch]
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:109:20: warning: enumeration value 'URB_STALL' not handled in switch [-Wswitch]
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp: In member function 'void USBHALHost::resetRootHub()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:337:36: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     rtos::ThisThread::sleep_for(200);
                                    ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:27:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/pinmode_arduino.h:23:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/Arduino.h:26,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:23,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongle.cpp:19:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\variants\GIGA/mbed_config.h:260:0: warning: "MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL" redefined
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL                                  1                                                                                                // set by application[*]
 
In file included from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongle.cpp:19:0:
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src/USBHost/USBHostConf.h:21:0: note: this is the location of the previous definition
 #define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL  0
 
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'void USBHost::usb_process()':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:75:42: warning: 'osEvent rtos::Mail<T, queue_sz>::get(uint32_t) [with T = USBHost::message_t; long unsigned int queue_sz = 10; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         osEvent evt = mail_usb_event.get();
                                          ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:323:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:176:58: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
                             rtos::ThisThread::sleep_for(2);
                                                          ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:186:60: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
                             rtos::ThisThread::sleep_for(100);
                                                            ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'virtual void USBHost::transferCompleted(uint32_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:401:60: warning: 'T* rtos::Mail<T, queue_sz>::alloc(uint32_t) [with T = USBHost::message_t; long unsigned int queue_sz = 10; uint32_t = long unsigned int]' is deprecated: Replaced with try_alloc. In future alloc() will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
                 message_t * usb_msg = mail_usb_event.alloc();
                                                            ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:113:8: note: declared here
     T *alloc(MBED_UNUSED uint32_t millisec = 0)
        ^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:408:41: warning: 'osStatus rtos::Queue<T, queue_sz>::put(T*, uint32_t, uint8_t) [with T = unsigned char; long unsigned int queue_sz = 1; osStatus = long int; uint32_t = long unsigned int; uint8_t = unsigned char]' is deprecated: Replaced with try_put and try_put_for. In future put will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
             ep->ep_queue.put((uint8_t*)1);
                                         ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:219:14: note: declared here
     osStatus put(T *data, uint32_t millisec = 0, uint8_t prio = 0)
              ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'virtual void USBHost::deviceConnected(int, int, bool, USBHostHub*)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:437:48: warning: 'T* rtos::Mail<T, queue_sz>::alloc(uint32_t) [with T = USBHost::message_t; long unsigned int queue_sz = 10; uint32_t = long unsigned int]' is deprecated: Replaced with try_alloc. In future alloc() will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     message_t * usb_msg = mail_usb_event.alloc();
                                                ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:113:8: note: declared here
     T *alloc(MBED_UNUSED uint32_t millisec = 0)
        ^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'virtual void USBHost::deviceDisconnected(int, int, USBHostHub*, uint32_t)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:462:48: warning: 'T* rtos::Mail<T, queue_sz>::alloc(uint32_t) [with T = USBHost::message_t; long unsigned int queue_sz = 10; uint32_t = long unsigned int]' is deprecated: Replaced with try_alloc. In future alloc() will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     message_t * usb_msg = mail_usb_event.alloc();
                                                ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:113:8: note: declared here
     T *alloc(MBED_UNUSED uint32_t millisec = 0)
        ^~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'void USBHost::freeDevice(USBDeviceConnected*)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:473:12: warning: unused variable 'ed' [-Wunused-variable]
     HCED * ed = NULL;
            ^~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'USB_TYPE USBHost::resetDevice(USBDeviceConnected*)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:624:40: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         rtos::ThisThread::sleep_for(100);
                                        ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:633:40: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         rtos::ThisThread::sleep_for(100);
                                        ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'USB_TYPE USBHost::enumerate(USBDeviceConnected*, IUSBEnumerator*)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1000:36: warning: 'void rtos::ThisThread::sleep_for(uint32_t)' is deprecated: Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
     rtos::ThisThread::sleep_for(100);
                                    ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:30:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/ThisThread.h:216:6: note: declared here
 void sleep_for(uint32_t millisec);
      ^~~~~~~~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'USB_TYPE USBHost::generalTransfer(USBDeviceConnected*, USBEndpoint*, uint8_t*, uint32_t, bool, ENDPOINT_TYPE, bool)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1145:53: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         osEvent  event = ep->ep_queue.get(TD_TIMEOUT);
                                                     ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1150:31: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
             ep->ep_queue.get(0);
                               ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp: In member function 'USB_TYPE USBHost::controlTransfer(USBDeviceConnected*, uint8_t, uint8_t, uint32_t, uint32_t, uint8_t*, uint32_t, bool)':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1219:63: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         osEvent  event = control->ep_queue.get(TD_TIMEOUT_CTRL);
                                                               ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1224:36: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
             control->ep_queue.get(0);
                                    ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1248:67: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
             osEvent  event = control->ep_queue.get(TD_TIMEOUT_CTRL);
                                                                   ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1252:40: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
                 control->ep_queue.get(0);
                                        ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1290:63: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         osEvent  event = control->ep_queue.get(TD_TIMEOUT_CTRL);
                                                               ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:1294:36: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = unsigned char; long unsigned int queue_sz = 1; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
             control->ep_queue.get(0);
                                    ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h: In instantiation of 'osEvent rtos::Mail<T, queue_sz>::get(uint32_t) [with T = USBHost::message_t; long unsigned int queue_sz = 10; uint32_t = long unsigned int]':
c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:75:42:   required from here
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:325:17: warning: 'osEvent rtos::Queue<T, queue_sz>::get(uint32_t) [with T = USBHost::message_t; long unsigned int queue_sz = 10; uint32_t = long unsigned int]' is deprecated: Replaced with try_get and try_get_for. In future get will be an untimed blocking call. [since mbed-os-6.0.0] [-Wdeprecated-declarations]
         osEvent evt = _queue.get(millisec);
                 ^~~
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Mail.h:29:0,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/rtos.h:33,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/mbed.h:24,
                 from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed.h:8,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.h:20,
                 from c:\Users\kurte\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp:18:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.8\cores\arduino/mbed/rtos/include/rtos/Queue.h:311:13: note: declared here
     osEvent get(uint32_t millisec = osWaitForever)
             ^~~
Compiling core...

Will try to take a quick look through it, as maybe the issue is somewhere in this mass of warnings!

EDIT: created issue about this as well: I severely dislike compiler warnings in system software!

GIGA R1 - Builds generate a lot of compiler warnings! (USBHALHost_STM.cpp) · Issue #30 · arduino-libraries/Arduino_USBHostMbed5 (github.com)

I have the Directory listing example running without the crash on my W11 machine!

I was wondering about the compiler warnings about
n file included from

#define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL 0
to
#define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL 1

That was repeating through all of the build...

And as I mentioned in previous post, it looked like crash in callback
0806244c

<_ZZN4mbed8CallbackIFvvEE8generateIZNS2_C4IPN7arduino6USBCDCEMS6_FvvELi0EEET_T0_EUlvE_vEEvOSA_E3ops>:
 806244c:	08043cbd 	stmdaeq	r4, {r0, r2, r3, r4, r5, r7, sl, fp, ip, sp}

Then looked at the source file: (blame version)
Blaming Arduino_USBHostMbed5/src/USBHost/USBHostConf.h at main · arduino-libraries/Arduino_USBHostMbed5 (github.com)
And saw that these lines were added 7 months ago:

#undef MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL
#define MBED_CONF_PLATFORM_CALLBACK_NONTRIVIAL 0
#include "Callback.h"

So I commented out those added lines, and now the directory listing ran to completion and I saw my files that were contained on the USB Stick

EDIT: Put some of this information into the issue
GIGA R1 USB Mass Storage Directory example causes MbedOS crash · Issue #29 · arduino-libraries/Arduino_USBHostMbed5 (github.com)

1 Like

Ha, well done.

Was just coming here to add some more info, I tagged it on the end of your issue.

Could be something to do with cdc_line_coding_default() (which isn't code as far as I can see!), its all gone a bit wrong there with the callback.

Nice find @KurtE - think that was added when they updated the code for opta? or was that with the pluggable stuff which i couldnt get working

Just as one more note in case some one goes through this thread I just tried reading and writing to a file using the examples in the docs. As written they do not work. Have to change these lines in the write sketch:

  msd.connect();

  while (!msd.connected()) {
    //while (!port.connected()) {
    delay(1000);
  }

to

  while (!msd.connect()) {
    //while (!port.connected()) {
    delay(1000);
  }

the read sketch for some reason has it setup correctly.

1 Like

Hi, how did you manage to get the correct designation for your USB thumbdrive? :slightly_smiling_face:

Best, Lea

On the principle of diminishing returns upon time wasted....will have to give a miss to using a USB memory stick as mass storage until this library issue is resolved. Already use Micro SDHC Memory Cards on memory shield modules for data logging, that work perfectly across MEGA boards in several roles. Will try applying these to GIGA at some point, but at the moment the board is mainly viewable as a curiosity, with other example software found to require a lot of debugging to be functional....

/*=====================================================================

Isolating the errors in the Arduino_USBHostMbed5.h libraries

Tried all versions...this version 0.0.3...others throw up the same issue

This short extraction demonstrates where the problem originates

Run it....then uncomment the indicated line and reload

=====================================================================*/

#include <ArduinoGraphics.h> // Added myself

#include <DigitalOut.h>
#include <FATFileSystem.h>

// Uncommenting the line below will turn off serial communication...!

// #include <Arduino_USBHostMbed5.h>

void setup()
{
Serial.begin(115200);

pinMode(PA_15, OUTPUT); //enable the USB-A port
digitalWrite(PA_15, HIGH);

while (!Serial) {
;
}

Serial.println("Starting USB Dir List example...");
}

void loop() {}