Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: KurtE

Page 1 of 10 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    906
    Views
    64,958

    I sort of started a thread a little bit ago:...

    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...
  2. Replies
    532
    Views
    29,720

    @wwatson - Sounds great. @all as I mentioned...

    @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...
  3. Replies
    906
    Views
    64,958

    @mjs513 - Yep I am also thinking a smaller test...

    @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...
  4. Glad you found the issue... :D Wonder what is...

    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...
  5. Replies
    906
    Views
    64,958

    @all - Sometimes hard to know which thread to...

    @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...
  6. Replies
    532
    Views
    29,720

    Thanks @mjs513 will probably look more in the...

    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...
  7. Replies
    532
    Views
    29,720

    @defragster and @mjs513 I am sort of curious...

    @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...
  8. Replies
    532
    Views
    29,720

    Full current sketch, Note I commented out the...

    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...
  9. Replies
    532
    Views
    29,720

    So I tried adding in the above test sketch...

    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[i - 1]) {
    case 11:
    ...
  10. Replies
    532
    Views
    29,720

    Maybe the code in the sketch is wrong... It...

    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...
  11. Replies
    532
    Views
    29,720

    Something does not appear to be working correctly...

    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) {...
  12. Replies
    532
    Views
    29,720

    @all - Another quick question: while starting to...

    @all - Another quick question: while starting to look at why the free space is TAKING SOOOOOOOO LLLLOOONNNGGG

    I noticed in the SDFat code:
    ...
  13. Replies
    532
    Views
    29,720

    Quick note: I am thinking it might make sense to...

    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?
  14. Replies
    532
    Views
    29,720

    Morning, Try picking up the latest UsbMSCFat...

    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...
  15. Replies
    532
    Views
    29,720

    Thanks @defragster, I updated to your...

    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...
  16. Replies
    532
    Views
    29,720

    Just an FYI: I updated the Volume name sketch to...

    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...
  17. Replies
    532
    Views
    29,720

    @mjs513 which code fragment... MSC or MTP... So...

    @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...
  18. Might really help to understand what exactly is...

    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...
  19. Replies
    532
    Views
    29,720

    @wwatson - not sure, about NTFS here. It looks...

    @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...
  20. Any luck? Looks a bit complicated to jump...

    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...
  21. Replies
    532
    Views
    29,720

    Updated to fix the Fat16, also implemented a one...

    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...
  22. Replies
    532
    Views
    29,720

    Another quick note: I updated my sketch to the...

    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...
  23. Good morning again: Just for the fun of it you...

    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...
  24. Replies
    532
    Views
    29,720

    Some More not fleshed out thoughts on MSC and...

    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...
  25. Good Morning! I have not had a good chance to...

    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...
  26. Replies
    532
    Views
    29,720

    Good Morning all: Sounds like we have things...

    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...
  27. Replies
    532
    Views
    29,720

    My exfat was failing as well, will look tomorrow...

    My exfat was failing as well, will look tomorrow unless someone beats me to it.
  28. Replies
    532
    Views
    29,720

    Have Fat16 working I believe at least for USB,...

    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...
  29. Replies
    532
    Views
    29,720

    Hi @defragster and others... Thought I would...

    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.
    // ...
  30. Replies
    532
    Views
    29,720

    Note: I have been playing some with adding Fat16...

    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...
  31. Replies
    532
    Views
    29,720

    @all - Wondering in my above Partition table dump...

    @all - Wondering in my above Partition table dump you see:

    msc1 Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length
    1,0,0x4,0x1,0x4,0xB,0xFE,0xC2,0xFF,2048,8192000...
  32. Replies
    532
    Views
    29,720

    Hi @mjs513, I slightly hacked up your sketch,...

    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...
  33. Replies
    532
    Views
    29,720

    @all... I am winding my way through the...

    @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...
  34. Replies
    532
    Views
    29,720

    Glad you have some building and ready to play :D ...

    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...
  35. Replies
    532
    Views
    29,720

    Take this with a grain of salt, but what I am...

    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...
  36. Replies
    532
    Views
    29,720

    Note: the get volume label code was not working...

    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...
  37. Replies
    28
    Views
    3,281

    As far as I know it should work. The code just...

    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 )...
  38. Replies
    21
    Views
    6,345

    Sort of an old thread to resurrect. But by...

    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:
    23820

    I did try to export the board...
  39. Replies
    532
    Views
    29,720

    Mtp serial still need the usb_desc.h stuff copied...

    Mtp serial still need the usb_desc.h stuff copied in
  40. Replies
    532
    Views
    29,720

    Thanks @wwatson - tried the sketch, but the two...

    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...
  41. Replies
    532
    Views
    29,720

    @wwatson @mjs513 and @all - my eyes are mind is...

    @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...
  42. Replies
    532
    Views
    29,720

    @... I have been playing around and...

    @... 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...
  43. Replies
    532
    Views
    29,720

    I tried formatting a thumb drive to have 3...

    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...
  44. Replies
    532
    Views
    29,720

    @mjs513 an d @wwatson I will try playing some...

    @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...
  45. Replies
    532
    Views
    29,720

    @mjs513 - Not a problem... Hope not too much...

    @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...
  46. Replies
    532
    Views
    29,720

    For the fun of it, I thought I would see if I...

    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...
  47. Replies
    88
    Views
    3,231

    @defragster - Looks great. Interesting with Low...

    @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
  48. Replies
    532
    Views
    29,720

    @... @mjs513 - tried you sketch above with a...

    @...

    @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...
  49. Replies
    532
    Views
    29,720

    @mjs513 @wwatson - looks like you are having some...

    @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...
  50. Replies
    906
    Views
    64,958

    I put in a fix for now... Which is during the...

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4