![]() I guess it would be worth mentioning that if I upload the basic example from the USBHost_t36 library, it works without issues. New auto-connect port added: ArduPilot ChibiOS on cu.usbmodem4201. The rest of the code uses some of the Teensy resources, such as three DMA channels, two of which are PIT triggered, a few UARTs, the SPI buses, on top of what ChibiOS is already using. in the USB connection and/or establish the WiFi link in your OS for example. Unfortunately I can't see which is the offending line because if I try to compile the code in debug mode, the serial port stops working, so up until now I was only able to compile in release mode. The CrashReport object that I set to print at startup then reports that an access to an invalid memory location was attempted. ![]() The baudrate is ignored and does not matter. ![]() Midi_tHandleNoteOff(onMIDIHostNoteOff) ĬhThdSleepUntil(chVTGetSystemTime() + TIME_MS2I(10)) Īt runtime, as soon as a MIDI message is received, I receive "Note on" - or "Note off" - on the terminal, then the Teensy crashes. This example also emulates an USB modem when the USB cable is plugged in, so you can use you favourite serial terminal to connect to it. Void onMIDIHostNoteOn(byte channel, byte note, byte velocity) ![]()
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |