It is certainly above my pay grade:)
That would seem to be the easiest. And is very close to using 'uint8_t fat32FSInfoSector[2];'.
Now to do some more testing with your latest updates.
Type: Posts; User: wwatson
It is certainly above my pay grade:)
That would seem to be the easiest. And is very close to using 'uint8_t fat32FSInfoSector[2];'.
Now to do some more testing with your latest updates.
@KurtE - I finally found the information about FAT16/FAT32 FS Information Sector here:
https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system.
I am not sure if you knew about it....
@KurtE - Just downloaded and tested your changes. Man that is impressive:) All this this time I have been trying to do what you just did with minimal success. I wonder if we could do something...
@kurtE - just downloaded your changes and after running some errands I can't wait to try them out. I noticed that you changed the print and println's back to Serial.printf's again. @Paul had asked me...
@KurtE Can't wait to play with this. I had a branch of (MSC-non-blocking) that I was playing with just to try learn about buffering reads and writes to MSC. I was using CircularBuffer from @tonton81...
It's those little details that get me to. You know, the obvious ones that are so obvious you never notice them until they bite you:)
Anyway tonight I will download your latest and hopefully this...
@All - Trying to get caught up:)
I am writing up doc's that explain more of what MSC does and the way's I have used it with the various versions of MSC. Maybe this will help with the current...
It's working:) Will do the PR.
Me too, bouncing between threads at my age guaranties I will miss something. We are down one person at work so this week I might not be able play much:(
Dinner and bed now...
@KurtE - Same here as @mjs513.
/home/wwatson/arduino-1.8.13/hardware/teensy/avr/libraries/SdFat/src/FsLib/FsNew.cpp:29: multiple definition of `operator new(unsigned int, unsigned long*)'...
@KurtE Was wondering why you were silent for so long:confused: This is awesome;)
Will download and test. That is a lot of work in a short time.
Thanks
@All - Ok, I have discovered a an unneeded delay in MSC that affects the time it takes for initializing a USB drive. In MassStorageDriver.cpp line #200 is:
msReset(0); // Assume bNumInterfaces =...
I had seen that thread and of course forgot about it. That would be a good thread I think IMHO.
@KurtE - I am always amazed at solutions you guys come up with. What would an integration thread be? Would that just be discussions that pertain to the MTP, FS, MSC and littleFS on a new thread? If...
@All,
I added 'volumeName.ino' example from post#522 to the examples in USbMSCFat.
Yes it does. Just trying to figure out which version I should add to UsbMSCFat. I am thinking p#506 as a base sketch, but not sure.
@KurtE - Done...
@defragster
I figured out how to install it from FrankB's cores. Locked up without info still:(
@defragster
I included T4_PowerButton.h. What else do I need to do to show hard faults if they happen? This is new to me:)
Thanks
@KurtE
That is what I was thinking. In the Linux disks formatting program it lists the partition type as 'NTFS/exFAT/HPFS' but shows NTFS and exFAT as two different format types. Possibly NTFS...
@All
Took the rest of the day off and tried out the latest sketch. Everything works great:) I had one little problem that was my fault when I was creating two partitions on a 16G thumb drive I...
@All
When you guy's go for something, it always amazes me. I learn so much from your testing:)
There are two timeouts in 'msc.h' located in the 'USBHost_t36/utility' folder that you can tweak...
You would use this:
UsbFs msc1;
expartVol.begin(msc1.usbDrive(), true, 1);
.usbDrive() is the equivilent of .card().
The procedure would be calling sd.cardBegin() followed by...
Did it not work with ExFat assuming 'volumeName .ino'?
Edit: Figured it out. If you format with 'ExFatFormatterUSB.ino' or 'ExFatFormater.ino' you cannot set the volume label. Another function...
The driver part of MSC is now included in TD1.54B6 USBHost_t36. For SdFat usage with MSC use this library:
https://github.com/wwatson4506/UsbMscFat.
Other than reference, the original versions...
@mjs513 @KurtE First, as per post #420 I do have an initial sketch that will read the volume labels for both Fat32 and ExFat on SD cards and USB drives. This is my first attempt a it and is only...
You are welcome. I want to do the same with MSC and UbFat.During the week I do not have much time to play with this but with taxes being done next weekend is MINE:)
@mjs13 - I modified the sketch to show info about the ExFat partition. ExFat is treated differently than Fat32. With the sketch you provided partition 4 was showing this:
Partition 4
Scanning...
Thanks @mjs513 - I most certainly want to play:)
I just finished up the last of my honey do's and got my wife off to work. You guys amaze me with how fast you can figure out this stuff and...
@mjs513
This is a pointer to the SD card object (driver) for a particular SD card. This is found in 'SdFat.h'. The equivalent is found in the UsbMSCFat folder 'UsbFat.h' and would be...
@KurtE
Did the pull request. After a few chores today, I am going to play with MTP_T4:)
That is awesome:) I always was wondering how to set USB mass storage devices up with MTP but never had the time to really keep up with the development.
Multiple drives are just a matter of...
Glad to see that it working. I was hoping that other people could test with there USB drives. 'mscFS.h' is an MSC version of 'SD.h' and 'littleFS.h' setup to use 'USBFat.h' which also includes...
I have been watching the development of LittleFS and MTP_T4 and at the same time working with SdFat and MSC. The driver part of MSC is now part of USBHost_t36 thanks @Paul. A lot of things have...
@MichaelMeissner - I use Ubuntu 18.04. it has been a while since I played with MTP_T4, but I did have it sort of working with Linux. Linux would auto mount all of the drives and I could copy files...
You are right. I remember that post as well. Completely forgot about it. Oh well, at least I know it works. Right now I guess a lot of things are still up in the air and I have a tendency to jump the...
@mjs513 - Not sure if you ever had time to play with the wavPlayer sketch yet. I have LittleFS initially working with it. I chose to start testing with LittleFS_SPINAND using chipSelect = 4....
@Bill - Thanks to the examples you provided I now have my MSC Mass Storage driver completely isolated from an unmodified SdFat. Everything is working as it was before but with just one include of...
@Bill - Thanks for providing this. It gives me direction for the best way to include Teensy USBHost Mass Storage devices with SdFat. I'm sure @Paul has his plans as well. This weekend I will use this...
You know Bill, all the times I have visited your GitHub repository I never took the time to check it all out. Was usually checking or getting SdFat.
It's interesting that you called it UsbFat...
HI Bill,
I am really anxious to try this out with the two versions of SdFat that I am working on for MSC. I have two versions of SdFat that I have modified adding my USB Host Mass Storage driver...
No it is not Bill Greiman's current SdFat-beta it is a modified version of it that I forked from Paul Stoffregen's repository. I am in the process of adapting MSC to use SdFat as well as FatFS. But...
I have just tested a 128GB USB thumb drive without a problem. In the past several people as well as myself have tested with several different types of USB Mass Storage devices. The size of the...
Maybe this?
https://forum.pjrc.com/threads/59020-Who-has-ESP8266-(WiFi)-working-with-Teensy-4-0?highlight=wifispi
Post #9
I was using SPI2 on the T3.6. The fastest reliable speed was 12MHz.
First of all mscFS is for use with my version of SdFat-parallel which is a version of the Teensy file abstraction 'FS.h' being developed right now and is just an experiment with using MSC and SdFat....
You were right:) I know I copied and pasted to both usb_desc.h files but obviously did not save the changes. That's what I get for staying up late and trying to do stuff. It now compiles and uploads...
@WMXZ
Missed this step last night. I updated boards.txt. Now 'MTP Disk SERIAL (Experimental)' shows up in the tools menu.
Also for this:
permission denied for device '/dev/hidraw0'
I...
Found a couple of inop links on the main products page:
Breakout Board R2 – Larger Teensy 3.2 bottom pads breakout – Frank Boesing / OSH Park.
https://oshpark.com/shared_projects/ttl7D5iT
and:...
Ok - I finally got it to compile using the latest version of 'cores' without using 'USB2'. Now it gives this error when uploading:
error sending reboot command to /dev/hidraw0
Teensy did not...
@WMXZ - for the life of me I have not been able to get MTP_T4 to compile. I cloned MTP_T4 and USB2 libraries and put them in the 'Arduino/libraries folder'. Beings I do not have the latest cores...