Quick update:
I am trying an experiment with the SD drives and the notification event we send to host...
#if 1
MTP.send_StoreRemovedEvent(storage_index);
delay(5);
MTP.send_StoreAddedEvent(storage_index);...
I am sure there are options to give you a list file. Been awhile since I have looked..
The Arduino build gives you a .sym file which tells you where everything is located...
I then sometimes will look at... When...
Yes you can connect to those pins, not sure about any specific header for it. But if you find one that works...
I experimented using a few breakout boards and did a quick and dirty castellated extension board to play...
Some updates on MTP and MSC (USBDrive/USBFilesystem):
I have been playing with some of the what I think of as missing pieces within the MTP and USB Filesystem code. In particular how to make it easier for Sketch to...
Question that I have had with this, is, are you using the exact same setup for breadboard versus your board? Or you using someone else's breakout board or your own with same
CAPS, Resistors, ??? connected to them as...
Yes - as you mentioned it is simply the pinouts changed. You just need to be careful when you wire it up. One of Paul's T4 Beta test boards had socket on it for the Rev C (this was before there was a Rev D)
It will depend on how your code on the Teensy, in particular, what USB type you are building with. If it is Serial or one of the other ones with name like: Serial + <XYZ> then it is using standard Serial stream stuff....
Sorry still over cell connection
Or if using SD.h then instead hard code…
Could use MAX_FILENAME_LEN
which is a define in that header file
Edit I believe font files were fixed so you may want to sync up
Just an FYI - This hub has been mentioned before as working back in 2017 in the thread:
https://forum.pjrc.com/threads/42505-Strange-USB-Serial-15ms-maximum-latency-on-Win7?p=135868&viewfull=1#post135868
And there...
How did you install the Arduino? Did you download from arduino.cc?
As mentioned in the download and install instructions: https://www.pjrc.com/teensy/td_download.html
Good luck.
Again Sorry, as I mentioned I have never used Joysticks on PC so it is unclear to me, what application code uses on the different platforms.
And/Or is it configurable.
I know some google responses to questions...
I just tried it on my Windows machine:
C:\Users\kurte\Documents\Arduino\libraries>arduino-cli board list
Port Protocol Type Board Name FQBN Core
usb:0/140000/0/1/4 teensy Teensy...
You might also want to search the forum for other threads on joysticks which change the usb descriptor.
Like the thread: https://forum.pjrc.com/threads/23681-Many-axis-joystick
Sorry for some reason I thought there were 14 sliders not 15...
As for how the hosts deal with a non-standard setup... Not sure. Sorry Maybe someone who uses these might have some more insight
Quick FYI - Yesterday RC8 of the IDE was released.
If you have others installed that is not ancient, when you start it up, they will ask you if you wish to download and install...
If it were me, I would probably double check using 2nd Teensy. Like I show here...
I did a little playing:
I did not edit your last usb_desc.c file
I did edit usb_desc.h to make sure the 64 byte version was...
Again it appears to work on my Ubuntu 22.04 machine.
Note, I am running TyCommander here 0.9.0-107...
Which I built from current sources
Edit oops, the picture before was without focus...
There is also a thread, called something like the website could use some updates. That had tons of pages on it.
So Paul creates a Github project, I mentioned that he asked for some of us to go through it and create...
Sorry, I am probably missing some things, but for example I believe there may be some problems with your descriptor.
For example in this part of your descriptor:
0xA1, 0x00, // Collection...
Thanks for the report...
I went ahead and created a new issue https://github.com/PaulStoffregen/Website_Updates/issues/31
In Paul's web site needs updates github project. So hopefully he will get a chance to...
Again Hard to know what exactly what is going on, with your setup.
I am running Windows 10 Arduino 1.8.19 Teensyduino 57 beta 3...
But I just loaded the basic example under USB type rawhid, and configured for...
I read it... But it did not fully register... :o
On the Issue, I created on CLI... matthijskooijman commented 24 minutes ago
So I don't think this approach will work as transparent as I was hoping for.
It might work... as long as the implementation for it is within the .h file... Although maybe would still work
if the __has_include_ is not in the .h file but in the couple of .cpp files that rely on it.
Might try...
I believe that 2.2 is the current released one.
I do have my own version, although not sure if I changed the version number.
I did add a few things I could remove, that I used to debug... Like option to show the...
Sorry, I think my example may be too convoluted. let me get to the real one.
I am trying to make MTP_Teensy, automatically add support to detect if an SD card was inserted or removed from the slot...
So Suppose, in...
I am playing around with some MTP stuff and trying to detect if the Sketch is using SD library or not... So __has_include...
But I am getting strange results.... Or at least the feel strange to me... Short version....
@roberthh - Note: the gaps in the address was a red herring...
I have since then done a PR, which has been merged for CircuitPython
https://github.com/adafruit/circuitpython/pull/6425
The PR has the details...
@jensa
I keep meaning to mention, that for example reading one byte at a time code like this:
uint32_t spiread32B(void) {
uint8_t buf = {0,0,0,0};
uint8_t buf2 = {0,0,0,0};
SPI.beginTransaction(...
@BriComp -Good safe approach.
What I typically do, is to: use the windows Zip file download options, and I unzip them at the root of my drive (C: SSD... or D: hard...), I then Right drag the Arduino IDE exe file the...
This morning I pushed up a change to MTP_Teensy (try_auto_detect_sd_media branch) which appears to be working better with the Have my 32mb sd card in SD1, start up sketch
double click to enumerate the lots of files......
Have you tried the Adafruit one? https://github.com/adafruit/Adafruit_TouchScreen
Which you can also install using the Library Manager.
Looks like a PR went in Last October:...
Sorry, I will try to help more when I get the display... Note though I will probably implement it starting off from one of our drivers that myself and @mjs513 @wwatson have implemented.
Probably my ili9341_t3n or...
:D
But still nothing here, that anyone can help you with as there are no clues at all.
Have you used this display in the past with different processors? Do you have a link to where you can purchase one?
Do...
Did some more tracing... Debug code and the like.
And sure enough issues with: OK SD was removed, and the FS is no longer valid, I put in code to call end() on the FS, to see if that helps...
So then we plug in new...
Yes too old of a version of the library ILI9341_t3... for one.
That was a version of the library before I added T4.x support...
Options: Update to current release of Teensyduino and my changes should be in place. ...
Yes
The USB Type of RAWHID,
generates two interfaces:
RAWHID
And
the Serial emulator (SEREMU), and the Teensy Serial monitor knows how to talk to SEREMU as well as TyCommander
Might help if we knew some additional information, preferably with hook-up diagram and sample code.
In particular things like, which ILI9341 display?
For examples like the ones sold by PJRC? Which uses an XPT2046...
Sorry I have been distracted... I am currently hacking on trying to get SD media detection working without having the sketch have to add their own code to it...
That part appears to be working, although it is pretty...
Main branch has that stuff in it...
New branch is a WIP to detect when SD Cards are inserted and removed. It is now detecting, but not sure if certain cases, maybe in SD/SDFat itself are being updated in certain...
Again as Paul mentioned, it is sort of hard for anyone to help much, with so little information. I know the hardware SD works with no additional hardware.
My best luck was with using some of the FRDM4236 boards:...
Thanks Tim,
Will have to take a look again, but with the Famous Last words: "My changes should not have made any difference here" ;)
The Ram Index file will do some output, so if you see that, then it might be...
Quick update: I just merged in my experiment branch of MTP_Teensy back into the main branch.
With this, if you are running on T3.5/3.6 or T4.x - that uses the Record block code. I added a simple Memory FileSystem ,...
Looks like you are making progress...
As for the actual data not much I can tell you other than the data structure as I am sure you know on P49...
80 14 00 00 00 00 14 00 81 00 $$ 3B 8F 80 01 80 4F 0C A0 00 00 03...
Other thoughts include watching what is going on with the RPI.
That is if you can have a terminal window open up on the RPI, and run something like: htop (or is gtop on RPI)...
That shows the different processors...
Not Sure.
If one wanted to reproduce this, might help to know which Teensy you are using, what version of Arduino/Teensyduino... (I am guessing you are using Platform IO).
Which RPI? What version of Raspian? ...
I Saved away the Excel document with the Windows capture stuff.
Note I did a quick edit of CSV file before it and added the names of some of the commands/responses to the data.
Like:
OUT DATA0 ...
Actually your capture files work nicely...
I then simply added my version of the USB LS/FS LLA and then my HLA, that uses it...
From that I could get data like:
And the report view output, has data from my...
Although the fix to build was to change line 122 in the example
From:
myfile.write('\0'); // add a null byte to mark end of string
To:
myfile.write((uint8_t)'\0'); // add a null byte to mark end of string
Not...
With the SDFat stuff, I know Paul has pulled in more recent version of Bill's stuff. He also removed some of the stuff we had added as to limit how many changes are needed for our stuff to work.
We have pulled in...
Forgot to mention in previous post,
Also hard to fully know what is going on, without seeing some of your startup code.
For example: With your endpoints,
For those which are to receive data from the device,...
Sorry my issue: https://github.com/arduino/arduino-ide/issues/1026
maybe did not have that in title... Example files - ask to save even if no changes were made to them.
And as you mentioned, this also applies to...
I should have mentioned, with data from the USB LS FS Analyzer. I typically need to then switch the capture type to Packets instead of control transfers.
I then look for those packets that have "Data" and in this...
Good morning Paul, I am pretty sure in the case that I reported, things like Windows Defender or the like was not at all related. As I use Norton, which I know @defragster hates...
Wish we were in a world where we...
Thanks PerT,
The IDE 2 is coming along!
Yes that is the area...
As a retired developer... I totally understand. I used to triage a lot of bugs... So often times I don't like to generate an issue like...
Saleae - Which one do you have... (I have a few), but do most of my USB stuff with PRO 8...
It was a real pain to get the data down to something useful. But I now have hacked up version of USB low level analyzer which...
For now put up a copy of my build tytools up on OneDrive... Only built for windows 64 bit...
Will delete when new build comes out
https://1drv.ms/u/s!Aj13xDWYbgPjicd87gAa-8SKakv5Rw?e=GjMZoP
@PerT @Paul @mjs513 and all.
I installed today daily build as well on W10...
I started off with simple sketch:
void setup() {
pinMode(13, OUTPUT);
while (!Serial)
;
Again I might purchase one of these devices if it would help to debug... But...
So best I can do currently is throw darts. So here is a few more... Note: I am a retired software guy... Others are better with the...
I have not seen one... I will try to put a copy of it somewhere on web and send link to you... I am pretty sure the zip file would be too large to email or post.
Fixed skipped.
And it is normal that it skips...
Glad it is working! I will probably still check to see if everything still works on the latest RPI release 32 bits... Programmed an SD card last night, will try later today.
As I mentioned my other RPI4 has ubuntu 64...
Not sure what is going on yet.
But things I would potentially try out are things like with the function:
uint32_t spiread32A(void) {
uint8_t buf = {0,0,0,0};
uint8_t buf2 = {0,0,0,0};
SPI.beginTransaction(...
First thing I would do if I were you would be to try different USB cable... Maybe power only cable?
It has been awhile since I tried out T4 with 32 bit raspi OS... I have been testing RPI4 with Ubuntu 22.04 64 bits...
Quick update:
I pushed up some additional changes to the branch I mentioned above.
With this, I fixed some of the debug output.
I also added the code, that if it fails to open the index file on the storage...
Also what does crashing mean?
Is the IMXRT still running? or is it hung? Resets? Or is it simply devices are not working?
Have you tried simply using uint32_t myval = SPI.transfer32(0);
Not sure if you...
Sorry, I am not sure how much time and energy I be able to help. But will try to answer questions as they come along.
It should be doable, but it may take a bit of work to do. If this device was one that was based...
An experiment update...
I have mentioned in past that there are issues with the Index file setup, if for example the first FS added is for SD and there is no SD file or it is Read only or...
You do have the option...
Just installed Today's daily build:
@Paul @PerT: I was looking at the Arduino issue: https://github.com/arduino/arduino-ide/issues/1051
Which has to do with the Terminal Monitor not receiving data.
I ran into...
Sorry not sure what all of your needs are...
I thought from start of this thread, you simply wanted support for a display or two that was easy to support, and you did not have major performance requirements for the...
MTP to MAC - As you mentioned, the MAC does not have support for it built in. There are packages that one can install to do this. For example support to copy files from an Android device.
I can not remember for...
Glad the files enumerating was resolved.
As for trying to transfer about 500 files, that can be tricky. Also curious how much data are we talking about? i.e. how full is the 32GB disk?
I see from your screen shot...
Simple answer is no, you don't have to use it... And Yes you can use SPI library only...
That is you can simply use SPI library and do transfers.
Again I have no idea which code this is. But more or less looks...
Again you may want to make sure you are running the most recent version of mtp_teensy.
The message: $$$ Failed to read Index record: 8 bytes Read: 0
Feels like it is an older version. The newer versions: ...
Follow on: I used @defragster MakeFiles sketch (Thanks),
Built the Example_3_simple_SD sketch
And view on my Windows 10 machine in explorer and I see:
Whick looks like there are all of the files. When I...