Hello,
I'm having a problem with Arduino IDE 1.8.0, Teensyduino, Teensy 2.0 and Disk SD + Keyboard option,
Usually is detected by computer as:
16c0:0484 Van Ooijen Technische Informatica Teensyduino Disk
It works fine.
Some others is detected as:
16c0:0478 Van Ooijen Technische Informatica Teensy Halfkay Bootloader
Of course It's in bootloader mode and don't execute anything
When I compile it I can see some warnings and other things like:
warning: large integer implicitly truncated to unsigned type [-Woverflow]
Keyboard.set_key1(KEY_R); // use r key
^In file included from /home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/../usb_disk/usb.c:417:0,
from /home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/usb.c:8:
/home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/../usb_disk/media_sdcard.c: In function 'media_send_end':
/home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/../usb_disk/media_sdcard.c:457:10: warning: variable 'r' set but not used [-Wunused-but-set-variable]
uint8_t r;
^
In file included from /home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/usb.c:8:0:
/home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/../usb_disk/usb.c: In function 'mass_storage_isr':
/home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/../usb_disk/usb.c:511:22: warning: variable 'cmd_len' set but not used [-Wunused-but-set-variable]
static uint8_t dir, cmd_len, status;
^
/home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/../usb_disk/usb.c:511:17: warning: variable 'dir' set but not used [-Wunused-but-set-variable]
static uint8_t dir, cmd_len, status;
^/home/xload/arduino/arduino-1.8.0/hardware/teensy/avr/cores/teensy/../usb_disk/usb_api.cpp:111:56: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
if (cpoint == UNICODE_EXTRA00) return KEYCODE_EXTRA00 & 0x3FFF;
^
Also I can see that It uses the arduino SD.h version instead Teensy version.
Somebody can help me? I don't know what can cause this random actions.