There is a severe bug somewhere in the code.
When copying a file with a filename of 24 characters length the teensy hangs. This happens with the blinky example on github, i reported this issue on github.
After some reading and fiddling i found this solution:
I changed in usb_desc.h following line when "MTP_EVENT_ENDPOINT" is defined as 4:
// #define ENDPOINT4_CONFIG ENDPOINT_RECEIVE_ONLY
#define ENDPOINT4_CONFIG ENDPOINT_TRANSMIT_AND_RECEIVE
uint32_t eventID = 1;
void...
Great work!
Is there a way to signal the usb host that an object on the sd card was added, deleted or renamed? I know the mtp specification mentions events to do this, but i have no idea how to implement this.
best regards, Thorvard