-
Older Activity
-
Yesterday, 07:59 PM
Sorry, this is probably a question that maybe only Paul can answer,
But my gut tells me that you may not be able to do this.
That is the IMXRT1060RM section 42.2.1 mentions: Up to 8 bidirectional endpoints per each...
6 replies | 115 view(s)
-
Yesterday, 06:54 PM
Aargh and :D
Sometimes it is the simple things!
Like the right number of msc objects!
I pushed up a change in my temporary branch...
Sorry in this push, that I removed compiler stuff for MSC examples and...
51 replies | 596 view(s)
-
Yesterday, 02:44 PM
It should be in both Teensy3 and Teensy4 branches. And they are identical up on github, so you should be able to simply copy the one from the Teensy3 directory to the Teensy4 directory...
Or install the latest beta...
12 replies | 309 view(s)
-
Yesterday, 12:54 PM
It will be interesting, as I believe it is just a beta that has been released. Also as it is a complete different platform, it will be interesting to see if/when Paul adds support.
5 replies | 178 view(s)
-
03-02-2021, 11:23 PM
@all - I may take break from this for rest of day.
Then I may try to see if I can reduce the number of abstractions and the like and get it to work... That is how much different does the VolumeName code and the MTP...
51 replies | 596 view(s)
-
03-02-2021, 10:25 PM
Ok, I changed that test sketch like:
// Function to handle one MS Drive...
void procesMSDrive(uint8_t drive_number, msController &msDrive, UsbFs &msc)
{
Serial.printf("Initialize USB drive...");
cmsReport = 0;...
51 replies | 596 view(s)
-
03-02-2021, 09:20 PM
For the heck of it, to get another data point I am going to step back and play with the VolumeName sketch, and instead of processing one partition at a time, I am going to try to open up all partitions (up to 4) and...
51 replies | 596 view(s)
-
03-02-2021, 07:49 PM
Sorry just got back: It gets sort of interesting, I turned on the debug code in MassStorageDevice(USBHost) Not the big debug turn on, but one specific to this class:#define DBGprint 1
I also edited a lot of the...
51 replies | 596 view(s)
-
03-02-2021, 05:51 PM
As you mentioned, it all is real strange...
I have been off doing some other stuff for a bit!
Will try to debug some more.
51 replies | 596 view(s)
-
03-02-2021, 03:25 PM
Right now I am looking into the file USBFat.h code:
at:
template <class Vol>
class UsbBase : public Vol {
public:
//----------------------------------------------------------------------------
/** Initialize...
51 replies | 596 view(s)
-
03-02-2021, 03:19 PM
It might be a problem with my mbr dump code, it is pretty big hack, I try to call the read sector directly...
bool mbrDmp(msController *pdrv) {
MbrSector_t mbr;
// bool valid = true;
if (pdrv->msReadBlocks(0,...
51 replies | 596 view(s)
-
03-02-2021, 03:06 PM
Thanks @mjs513
I understand what you are saying, but so far not sure where the connection is made:
USB Drive Inserted
msc # Partition Table
part,boot,bgnCHS,type,endCHS,start,length...
51 replies | 596 view(s)
-
03-02-2021, 02:43 PM
I have added some additional debug code:
So far I pushed up a few debug output edits to the Msc... project in the branch: https://github.com/KurtE/UsbMscFat/tree/VolumeName_SD
A new MTP branch based off my other...
51 replies | 596 view(s)
-
03-02-2021, 02:10 PM
Yet another new day :D
I have been playing with the MTP stuff, with partitions... And pulling out a fair percentage of the few hairs I have left :D
I have hacked my way through to try to support N USB drives...
51 replies | 596 view(s)
-
03-02-2021, 01:18 PM
Again hard to know what is going on without details about the display and your wiring and...
Is it this one: http://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807
Which is another ILI9341 display?
Again...
5 replies | 123 view(s)
-
03-02-2021, 01:23 AM
So far this one looks like it does not want to give up it's secrets!
That is it is not giving any clue by device class, subclass nor protocol. 0s for the device and 0xff for interface.
So probably vendor specific. ...
32 replies | 314 view(s)
-
03-01-2021, 09:49 PM
Hi Frank,
Not sure the second one has HID or not...
But again maybe try plugging it into T3.6 or T4.x with one of the USBHost_t36 examples like I mentioned.
And at about line 62 in USBHost_t36.h uncomment the...
32 replies | 314 view(s)
-
03-01-2021, 04:35 PM
Yes Happy 51st Birthday...
I think I remember back to then :D
Have a great day!
10 replies | 319 view(s)
-
03-01-2021, 04:12 PM
Again as you mentioned maybe, as I added the ability to pass through the partition number on that begin, that maybe I should just try that and maybe again only
need to object types still. Will try... Probably easier...
51 replies | 596 view(s)
-
03-01-2021, 03:58 PM
@mjs513 and @wwatson - Yes I think it would be a good place.
But right now I am trying to rethink some of the integration of the MSC stuff into MTP... Trying to decide how far to try to take.
Things like: If we...
51 replies | 596 view(s)
-
03-01-2021, 02:24 PM
Quick follow on:
I just pushed up changes into my branch: https://github.com/KurtE/UsbMscFat/tree/VolumeName_SD
To hopefully have the MSC wrappers for the files/volume now call into the new PFs... stuff.
Including...
51 replies | 596 view(s)
-
03-01-2021, 02:19 PM
Morning all (or time in your part of the world),
Starting to play with MTP again...
First off: Integration question, probably for @PaulStoffregen.
In an SdFat-beta project issue conversation with Bill about...
51 replies | 596 view(s)
-
03-01-2021, 01:57 PM
Looks maybe like this one? https://www.amazon.com/JahyShow%C2%AE-DVB-T-RTL2832U-Receiver-Compatible/dp/B01H830YQ6/ref=sr_1_8?dchild=1&keywords=RTL2832&qid=1614606952&sr=8-8
32 replies | 314 view(s)
-
03-01-2021, 01:33 PM
Hi Frank,
It looks like this device is a HID (Human Interface Device) like mouse, some keyboard...
There is an example sketch under USBHost_t36 HIDDeviceInfo that is setup to dump a lot of data in the way that I...
32 replies | 314 view(s)
-
03-01-2021, 02:20 AM
Just pushed up a new branch off of main which I synced back up: https://github.com/KurtE/UsbMscFat/tree/VolumeName_SD
It now shows Volume information about SD Card as well:
^^^^^^^^~FsVolume::begin(20001f30)
...
51 replies | 596 view(s)
-
03-01-2021, 01:42 AM
@mjs513 Long Pauses are often the trying to compute the used or free space... As it walk billions and billions of ...
Probably it for today. Probably tomorrow will look into MTP again with these changes.
I am...
51 replies | 596 view(s)
-
03-01-2021, 01:36 AM
Maybe... But then there is also MTP with @WMXZ and the like...
Quick fyi - right after the merge,
I updated the sketch again, such that you can dump the MBR for both USB devices as well as SD Cards... I pushed...
51 replies | 596 view(s)
-
03-01-2021, 12:56 AM
Try syncing again. I thought I had disabled that new... Turned out I had disabled the one in SDFat library instead :o
51 replies | 596 view(s)
-
02-28-2021, 11:35 PM
@all, again not sure if best to mention here or in the MSC thread...
But I just pushed up a new Branch of the UsbMscFat library... https://github.com/KurtE/UsbMscFat/tree/PFsLib
Where I completely duplicated the...
51 replies | 596 view(s)
-
02-28-2021, 02:38 PM
Sounds good!
Will take in. Right now I am trying to make a version of the fsFat which is partition friendly.
Running into a few compile issues. Will let everyone know if I have any luck.
51 replies | 596 view(s)
-
02-27-2021, 07:48 PM
Actually I received a response on github from Bill... Now there is not a leak as the new is not actually allocating memory...
As the code like: m_fVol = new (m_volMem) FatVolume;
is actually just assigning the...
909 replies | 65787 view(s)
-
02-27-2021, 05:14 PM
I sort of started a thread a little bit ago: https://forum.pjrc.com/threads/66338-Many-TLAs-MTP-MSC-FS-SD-SDFat-LittleFS-UsbMSCFat-to-work-with-each-other-8)
Where I was maybe setting up for some integration stuff... ...
909 replies | 65787 view(s)
-
02-27-2021, 03:42 PM
@wwatson - Sounds great.
@all as I mentioned over in the MTP thread (https://forum.pjrc.com/threads/43050-MTP-Responder-Contribution?p=271721&viewfull=1#post271721)
I am playing around with seeing about the...
532 replies | 30407 view(s)
-
02-27-2021, 02:53 PM
@mjs513 - Yep I am also thinking a smaller test with fewer Storage types would be nice and/or split some of them into multiple tabs...
And yes right not I am still playing with the MSC multi partition sketch...
909 replies | 65787 view(s)
-
02-27-2021, 01:47 PM
Glad you found the issue... :D
Wonder what is different between T3.x and T4.x?
Or does something in your interrupts also touch the Analog?
Sounds like maybe need test case to see and maybe the core code needs...
28 replies | 536 view(s)
-
02-27-2021, 01:39 PM
@all - Sometimes hard to know which thread to discuss things like integration of MTP amd MSC... and the like.
I am going to try doing some additional changes to my branch of the code to add some more support for...
909 replies | 65787 view(s)
-
02-27-2021, 12:15 AM
Thanks @mjs513 will probably look more in the morning.
Today I also hacked up that function some more that printed that data, and used digital Write high/low with pin 0 for the whole duration and pin 1 around each...
532 replies | 30407 view(s)
-
02-26-2021, 06:48 PM
@defragster and @mjs513 I am sort of curious about fragmentation works ;)
For the Fat32 volume:
I mucked up the beginning of the method most all of the class variables
int32_t FatPartition::freeClusterCount() {...
532 replies | 30407 view(s)
-
02-26-2021, 05:13 PM
Full current sketch, Note I commented out the earlier calls to get sizes...
Waiting up to 5 seconds for USB drive 1
^^Waiting up to 5 seconds for USB drive 2
^^^^^^^~~~~:(Initialize USB...
532 replies | 30407 view(s)
-
02-26-2021, 04:56 PM
So I tried adding in the above test sketch currently just to the FAT16 and FAT32 section code like:
for (uint8_t i = 1; i < 5; i++) {
switch (partitionTable) {
case 11:
case 12:
{
...
532 replies | 30407 view(s)
-
02-26-2021, 04:26 PM
Maybe the code in the sketch is wrong...
It is not applying the partition... I am going to move those calls into the sections by partition type and see what I get...
Looks like we crossed posted.
I am going to...
532 replies | 30407 view(s)
-
02-26-2021, 02:49 PM
Something does not appear to be working correctly at all with the freeClusterCount:
int32_t FatPartition::freeClusterCount() {
#if MAINTAIN_FREE_CLUSTER_COUNT
if (m_freeClusterCount >= 0) {
return...
532 replies | 30407 view(s)
-
02-26-2021, 02:22 PM
@all - Another quick question: while starting to look at why the free space is TAKING SOOOOOOOO LLLLOOONNNGGG
I noticed in the SDFat code:...
532 replies | 30407 view(s)
-
02-26-2021, 02:12 PM
Quick note: I am thinking it might make sense to add the VolumeName.ino as an example sketch to maybe MscFS.h project. That way we can all keep track of it?
Make sense?
532 replies | 30407 view(s)
-
02-26-2021, 02:00 PM
Morning,
Try picking up the latest UsbMSCFat project - I added a hack into it that if you ask for the Used size, twice (or more) it remembers the first call to it, which we do as a debug message at the time we add...
532 replies | 30407 view(s)
-
02-26-2021, 01:22 PM
Thanks @defragster,
I updated to your version.
I ran again, still real slow on my older thumb drives:
Waiting up to 5 seconds for USB drive 1
^^Waiting up to 5 seconds for USB drive 2
^^^^Initialize USB...
532 replies | 30407 view(s)
-
02-26-2021, 03:32 AM
Just an FYI: I updated the Volume name sketch to also print out the total size and used size sort of plus elapsed time to get them for the different partitions:
// VolumeName.ino
// An example of how to retrieve...
532 replies | 30407 view(s)
-
02-26-2021, 01:48 AM
@mjs513 which code fragment... MSC or MTP... So far in MTP I have not converted the main code to try to do anything with partitions, other than so far I am printing them out and I am able to get the first volume ID.
...
532 replies | 30407 view(s)
-
02-25-2021, 10:25 PM
Might really help to understand what exactly is your setup?
Windows? Linux? MAC? ... What version of Arduino are you running? What version of Teensyduino are you running?
Anything changed on your machine, like...
17 replies | 445 view(s)
-
02-25-2021, 09:54 PM
@wwatson - not sure, about NTFS here. It looks like both partitions have type=7 which I believe is exfat. although looking at:https://en.wikipedia.org/wiki/Partition_type
It looks like type of 7 could be either. ...
532 replies | 30407 view(s)
-
02-25-2021, 09:02 PM
Any luck?
Looks a bit complicated to jump in... I prefer easier things like MSC and MTP :D
Is it easy to setup and see failure when you don't have the hardware? Steps, and what to see when it fails versus OK?
...
28 replies | 536 view(s)
-
02-25-2021, 06:31 PM
Updated to fix the Fat16, also implemented a one call to find volume label.
And did some more gratuitous changes to have a function called by loop to process a drive, as to not need to reproduce it for more drives......
532 replies | 30407 view(s)
-
02-25-2021, 04:54 PM
Another quick note: I updated my sketch to the last one @defragster and found it was using the old non working Fat16 code. i.e. the one that was reading the boot sector and appears to always be: NO NAME
Will fix and...
532 replies | 30407 view(s)
-
02-25-2021, 03:28 PM
Good morning again:
Just for the fun of it you might try adding the asm("dsb");
somewhere...
The reason I mention it, I have been bit several times where ISR gets triggered multiple times for the same interrupt....
28 replies | 536 view(s)
-
02-25-2021, 02:30 PM
Some More not fleshed out thoughts on MSC and Partitions and FS...
I first off think it will be great all of the pieces in place and part of Teensyduino!
What I am sort of wondering is if it makes sense to have a...
532 replies | 30407 view(s)
-
02-25-2021, 02:01 PM
Good Morning!
I have not had a good chance to go through all of the code:
I don't see anywhere that you call attachInterruptVector, but if you did, I would probably make sure all of my interrupt vectors had...
28 replies | 536 view(s)
-
02-25-2021, 01:39 PM
Good Morning all:
Sounds like we have things coming along well here, to understand some about partitions and getting the volume label. :D
But our test has not handled SD Cards with multiple partitions ;) For...
532 replies | 30407 view(s)
-
02-25-2021, 02:23 AM
My exfat was failing as well, will look tomorrow unless someone beats me to it.
532 replies | 30407 view(s)
-
02-25-2021, 01:18 AM
Have Fat16 working I believe at least for USB, have not tried with SD yet...
// VolumeName.ino
// An example of how to retrieve Fat32 and ExFat volume names using SdFat.
// Works with SD cards and USB mass storage...
532 replies | 30407 view(s)
-
02-25-2021, 12:51 AM
Hi @defragster and others...
Thought I would show so more stuff that is not working :D
// VolumeName.ino
// An example of how to retrieve Fat32 and ExFat volume names using SdFat.
// Works with SD cards and...
532 replies | 30407 view(s)
-
02-24-2021, 08:26 PM
Note: I have been playing some with adding Fat16 maybe stuff and not finding the VolID...
Some output currentlly:
Waiting up to 5 seconds for USB drive
Initialize USB drive...FsVolume::begin(20001b28)...
532 replies | 30407 view(s)
-
02-24-2021, 05:30 PM
@all - Wondering in my above Partition table dump you see:
msc1 Partition Table
part,boot,bgnCHS,type,endCHS,start,length
1,0,0x4,0x1,0x4,0xB,0xFE,0xC2,0xFF,2048,8192000...
532 replies | 30407 view(s)
-
02-24-2021, 05:00 PM
Hi @mjs513,
I slightly hacked up your sketch, by moving a lot of it from setup() to loop() with a wait at the end of loop() for user to enter character.
That way you can hopefully rerun.
I also have it wait up...
532 replies | 30407 view(s)
-
02-24-2021, 02:59 PM
@all...
I am winding my way through the different layers and trying to figure out how to get USB Drive partitions to work.
It might be nice to be able to do something like: today the VojumeName.ino does: if...
532 replies | 30407 view(s)
-
02-24-2021, 01:16 PM
Glad you have some building and ready to play :D
Did not get as much done yesterday, but will now try to see if I can get this MSC volume code and the like to read from all 3 partitions on my USB stick...
532 replies | 30407 view(s)
-
02-23-2021, 04:47 PM
Take this with a grain of salt, but what I am planning to look at includes:
In the sketches we have: msController msDrive1(myusb);
Each one of these is for a physical USB drive, I believe it claims the device at...
532 replies | 30407 view(s)
-
02-23-2021, 04:27 PM
Note: the get volume label code was not working for me as probably timing. My USB is connected through HUB and so takes a bit of time before all of the stuff is setup. So I have it check to make sure the drive is...
532 replies | 30407 view(s)
-
02-23-2021, 03:03 PM
As far as I know it should work. The code just figures out which Serial port gets passed in to dxlInit:
void dxlInit(long baud, HardwareSerial* pserial, int direction_pin, int tx_pin, int rx_pin ) {
As the AX12...
28 replies | 3334 view(s)
-
02-23-2021, 02:15 PM
Sort of an old thread to resurrect.
But by PMs been asked if I could convert the board to Altium... Not sure if you would gain much. The whole design:
I did try to export the board layout to Eagle file in...
21 replies | 6367 view(s)
-
02-23-2021, 04:54 AM
Mtp serial still need the usb_desc.h stuff copied in
532 replies | 30407 view(s)
-
02-23-2021, 02:33 AM
Thanks @wwatson - tried the sketch, but the two drives I tried were exfat... Will try again.
Thanks for the hints:
I verified that in my debug outputs, the first calls msReadBlocks is in the this case is from a...
532 replies | 30407 view(s)
-
02-22-2021, 11:07 PM
@wwatson @mjs513 and @all - my eyes are mind is not seeing some things...
For example:
I fixed my USB thumb drive partitions to not use extended partition...
I turned off USBHost_t36 debug (in that header) but...
532 replies | 30407 view(s)
-
02-22-2021, 09:40 PM
@... I have been playing around and understanding some more with the MSC stuff and partitions...
If you run the sketch SdInfoUSB it will print the partition table stuff (Block 0).
My output is way too much to...
532 replies | 30407 view(s)
-
02-22-2021, 07:33 PM
I tried formatting a thumb drive to have 3 partitions,
A Fat32 primary
An extended partition table
With a secondary partition with Fat16
and a secondary partition with Fat32
And my MTP with MSC, goes BOOM.....
532 replies | 30407 view(s)
-
02-22-2021, 06:55 PM
@mjs513 an d @wwatson I will try playing some with that.
Have anyone tried doing some of the same type tests on thumb drives or the like? I think I will try to partition a test thumb drive and see what might work......
532 replies | 30407 view(s)
-
02-22-2021, 06:22 PM
@mjs513 - Not a problem... Hope not too much snow! Here it is raining and upper 40s...
Will play more, but may want to switch gears to see about partitions on USB disks, which is probably more interesting.
Also...
532 replies | 30407 view(s)
-
02-22-2021, 04:17 PM
For the fun of it, I thought I would see if I could get it to read an ExFat one...
I think this one sort of works for it. Probably a real hack, but...
When you are dumping out the top partition table, I keep the...
532 replies | 30407 view(s)
-
02-22-2021, 03:16 PM
@defragster - Looks great. Interesting with Low memory availability messages, I assume they most use a percentage... As 4K free on an LC would be 50% ;)
I see the changes were pulled in
88 replies | 3306 view(s)
-
02-22-2021, 02:59 PM
@...
@mjs513 - tried you sketch above with a few cards. And it looks like it dumps lots of interesting info...
Tried reformat 32gb SD to exFat. As you mentioned not able to read that data (yet)...
Side...
532 replies | 30407 view(s)
-
02-22-2021, 12:48 PM
@mjs513 @wwatson - looks like you are having some fun. Now to figure out how to integrate this with MTP :D I was happy yesterday to be able to plug in USB drive and it shows up and unplug it and it goes away...
Now...
532 replies | 30407 view(s)
-
02-22-2021, 02:20 AM
I put in a fix for now... Which is during the reset when the host asks for Storage IDS, I check to see if the name has been removed and if so it skips that slot...
So now when I remove the drive it updates to not show...
909 replies | 65787 view(s)
-
02-22-2021, 01:49 AM
It appeared to work on my RPI4 with 64 bit... looked good when I did ls -l /dev/hidr*
Plus I told it to program the keyboard one which the reboot worked and so did the terminal monitor.
Thanks
(Now back to my main...
76 replies | 1580 view(s)
-
02-22-2021, 01:06 AM
In case anyone wishes to play along.
I have added some code to the MTP-Test with the MSC stuff where your define for including it value > 0 is the Max count of USB drives you wish to use...
I also now have code in...
909 replies | 65787 view(s)
-
02-21-2021, 08:09 PM
Was able to substitute the usage of MSCClass for the UsbFs class and that appears to work.
I just updated my branch (warning left the define = 2, so will require the additional libraries.
But with this I have a USB...
909 replies | 65787 view(s)
-
02-21-2021, 08:06 PM
Looks like sort of a pain... But you got to to do what you got to do :D
909 replies | 65787 view(s)
-
02-21-2021, 06:22 PM
First attempt is to substitute MSCClass for UsbFs and it compiles and runs for 1 item...
Again hard to know if should talk about it here or MTP or...
But my MTP test code is setup now like:
#if USE_MSC_FAT > 0...
532 replies | 30407 view(s)
-
02-21-2021, 05:32 PM
As I asked in the MTP thread:
My next question to self and others maybe other thread
is to support multiple MSC drives, I was using the global object (MSC) to add the one MSC object as is in the FilesUSB object.
...
532 replies | 30407 view(s)
-
02-21-2021, 05:31 PM
My next question to self and others maybe other thread
is to support multiple MSC drives, I was using the global object (MSC) to add the one MSC object as is in the FilesUSB object.
Thought I would try the stuff out...
909 replies | 65787 view(s)
-
02-21-2021, 05:25 PM
I wonder if maybe you may want to play around with the different pin configurations information like speed, or drive strength...
i.e. look at the RM for the different IOMUXC_PAD_ values like DSE, SPEED
6 replies | 187 view(s)
-
02-21-2021, 04:32 PM
Now hopefully will get a little time to play a little more and see about defining multiple MSC objects.
Also see about them coming and going... Sort of along the line of SD card being inserted.
Then wondering...
909 replies | 65787 view(s)