MCollins-Lowell
Member
I've developed a Teensy 4.1-based system which records GNS and inertial data to files on a microSD card in response to a pushbutton operation. The final piece required is the ability to retrieve files from the SD card via the USB port when connected to a host computer. It's not necessary to do so while data are being recorded. I'm struggling a bit with incorporation of MTP support in my application. Perhaps someone would be so kind as to provde a bit of guidance.
Background: Arduino IDE 2.3.0 in a Linux environment, with libraries cloned fron GitHub into "$HOME/Arduino/libraries/".
The first issue concerns choice of library. There are at least two on GitHub which appear to relate to both MTP and Teensy 4, MTP_Teensy and MTP_t4. MTP_Teensy does not appear to have been updated in the past several years, while changes have been committed to the MTP_t4 src directory since December. Based upon the descriptions accompanying each repository, either ought to meet my rather simple needs. In both cases, however, none of the examples I've tried to compile does so without errors. I've made some attempts to address those, but so far without success. As an example, I see this message when attempting to build $HOME/Arduino/libraries/MTP_t4/examples/mtp-test/mtp-test.ino:
It's not clear to me how or where I select USB type. Attempts to compile MTP_Teensy examples generate far more errors.
If MTP_t4 is a preferred library for my needs, what steps are required in order to compile the examples for Teensy 4.1? If there is a better choice of library, please advise.
Thanks,
-- Mike --
Background: Arduino IDE 2.3.0 in a Linux environment, with libraries cloned fron GitHub into "$HOME/Arduino/libraries/".
The first issue concerns choice of library. There are at least two on GitHub which appear to relate to both MTP and Teensy 4, MTP_Teensy and MTP_t4. MTP_Teensy does not appear to have been updated in the past several years, while changes have been committed to the MTP_t4 src directory since December. Based upon the descriptions accompanying each repository, either ought to meet my rather simple needs. In both cases, however, none of the examples I've tried to compile does so without errors. I've made some attempts to address those, but so far without success. As an example, I see this message when attempting to build $HOME/Arduino/libraries/MTP_t4/examples/mtp-test/mtp-test.ino:
Code:
In file included from /home/mcollins/Arduino/libraries/MTP_t4/examples/mtp-test/mtp-test.ino:1:
/home/mcollins/Arduino/libraries/MTP_t4/src/MTP.h:36:6: error: #error "You need to select USB Type: 'MTP Disk (Experimental)'"
36 | #error "You need to select USB Type: 'MTP Disk (Experimental)'"
| ^~~~~
exit status 1
Compilation error: exit status 1
It's not clear to me how or where I select USB type. Attempts to compile MTP_Teensy examples generate far more errors.
If MTP_t4 is a preferred library for my needs, what steps are required in order to compile the examples for Teensy 4.1? If there is a better choice of library, please advise.
Thanks,
-- Mike --