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

Search:

Type: Posts; User: mjs513

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Just re-synched and seems to be working. Put in...

    Just re-synched and seems to be working. Put in the SD Card Adatpter with 3 partitions:

    Waiting up to 5 seconds for USB drive 1
    ^Waiting up to 5 seconds for USB drive 2
    ^^^^^^^^~~~~:(Initialize...
  2. Replies
    35
    Views
    984

    @defragster Didn't have the problem with the...

    @defragster
    Didn't have the problem with the java exceptions that you saw. SerMon would come to life if I closed it and reopened but would stop again.

    I did notice that TyCommander didn't have...
  3. @KurtE Just tried compiling for the T4.1...

    @KurtE
    Just tried compiling for the T4.1 (VolumeName.ino) in the examples folder and got the following error:
    ...
  4. @KurtE Fantastic job.... think duplicating the...

    @KurtE
    Fantastic job.... think duplicating the sub-library was the best approach and then modifing it. Will download and give it a try.
  5. Replies
    35
    Views
    984

    @defragster Thanks for confirming the issue --...

    @defragster
    Thanks for confirming the issue -- glad it is not just me.
  6. Not quite sure how that is being done but I did...

    Not quite sure how that is being done but I did see in micros() looks like you have to wrap msec = systick_millis_count; with disabling the interrupt and then re-enabling it.
  7. Replies
    909
    Views
    65,475

    Guess that answers that question :)

    Guess that answers that question :)
  8. @KurtE Ran a test with analog read in the...

    @KurtE
    Ran a test with analog read in the interrupt and worked down to 20us. This makes sense since analog read is taking about 17us.

    Did get response on github discussion:


    So pretty much...
  9. Replies
    909
    Views
    65,475

    @KurtE My advanced c++ skills are limited to...

    @KurtE
    My advanced c++ skills are limited to looking things up as I go :)

    Anyway, what you say seems to make sense, at least to me. Now just to decided where to put all this. At this point...
  10. Replies
    909
    Views
    65,475

    Morning @all @KurtE - ambitious and good luck....

    Morning @all

    @KurtE - ambitious and good luck.

    But to your point on SDCards - think you are going to have to implement something similar if it has more than one partition. But I think if you...
  11. Morning @KurtE Yeah me too! within the...

    Morning @KurtE
    Yeah me too!

    within the interrupt it just calls off to analogRead - nothing fancy going on there. Was thinking about that myself especially since I have the test in post #19 as...
  12. SOLVED: Ok just to say thanks to everyone for...

    SOLVED:

    Ok just to say thanks to everyone for helping and let you know that I finally tracked down the issue.

    It appears that problem is using analogRead is not interrupt friendly.

    The...
  13. Replies
    532
    Views
    30,097

    Just messed up my sdfat lib as well just for a...

    Just messed up my sdfat lib as well just for a another data point for you.:
    This is for a SD Card with 2 FAT32 and 1 exfat:

    msc # Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length...
  14. Replies
    532
    Views
    30,097

    Maybe using the drive as the pointer instead of...

    Maybe using the drive as the pointer instead of the volume so everything in MTP going to associated with the drive not the vol?
  15. Replies
    532
    Views
    30,097

    @KurtE Was toying with something like this for...

    @KurtE
    Was toying with something like this for MTP but don;t think I am passing the right things:

    uint32_t sd_addFilesystem(FS &fs, const char *name, const char *volumeID) {
    if...
  16. @Frank B Assume you are talking about the...

    @Frank B
    Assume you are talking about the USBHost Shield 2.0: http://shop.tkjelectronics.dk/product_info.php?products_id=43

    If you are I have the original version and it works for teensy 3 and 4...
  17. Replies
    532
    Views
    30,097

    Makes absolute sense to me - that sketch is...

    Makes absolute sense to me - that sketch is coming in handy for testing.
  18. Replies
    532
    Views
    30,097

    Very cool = I just gave you last set of chances a...

    Very cool = I just gave you last set of chances a try and they worked = both thumb drives came up - even the SD Card.
  19. Replies
    532
    Views
    30,097

    Thanks will pull down the latest changes and give...

    Thanks will pull down the latest changes and give it a go. Not even going to touch linux - having enough problems :)
  20. Replies
    532
    Views
    30,097

    @KurtE Just tried your updated MTP and this is...

    @KurtE
    Just tried your updated MTP and this is what I am seeing. Look like it works for SSD:

    MTP_test
    sd_addFilesystem: 0 20006328 RAM1
    RAM Storage 0 RAM1 199936 512
    sd_addFilesystem: 1...
  21. Replies
    532
    Views
    30,097

    Morning all Decided to start playing. Ran...

    Morning all
    Decided to start playing. Ran @defragster's updated sketch on 3 devices: (1) an old 2GB thumb drive (FAT16 only), (2) a 32GB Sandisk thumb and (3) my HP 120GB SSD.

    One thing I...
  22. Replies
    532
    Views
    30,097

    @KurtE Was just looking over your code snippet...

    @KurtE
    Was just looking over your code snippet so this is a question - it may be buried but I don't see where you are setting up expartVol/partVol .begin for the different partitions and then...
  23. Trying a whole host of things but no luck. Hate...

    Trying a whole host of things but no luck. Hate issues like this reminds me of UncannyEyes! Going to go back and play with MSC/MTP!
  24. @luni Found the problem - the program for...

    @luni
    Found the problem - the program for doesn't like going to USB1 when using a T3.5 and T3.6. Removed it and got everything started working as before. Did test with a T3.2 but it hanging...
  25. Funny it worked with the code I posted now must...

    Funny it worked with the code I posted now must have did something to make it fail. Going to run a test just to see with time.h.

    EDIT:
    Something else must of broke. Just this test sketch and it...
  26. Nope nothing else gets printed as I am playing. ...

    Nope nothing else gets printed as I am playing.

    BTW will it work with a Teensy 3.x
    Remember when I said it was working for a T3.5 well now its not working - argh. - no start up info from timer.h...
  27. @luni Seeing exactly the same thing on startup...

    @luni
    Seeing exactly the same thing on startup as you:

    init 0x0
    setPeriod(58)
    attachInterrupt()
    start
    out of curiosity I switched the prog track to use pins 3/11 just in case. No difference
  28. @KurtE Did try and putting asm("dsb")'s in...

    @KurtE
    Did try and putting asm("dsb")'s in different places associated with the interrupts but still had the problem. Tried playing with volatile's as well but no luck.
  29. Ok now have another interesting thing going on. ...

    Ok now have another interesting thing going on.

    I wanted to try with a Teensy 3.6 but as soon as turn power on with the sketch loaded the T3.6 is sending signals to the lock to move but its not...
  30. Will give it a try - just after a fresh pot of...

    Will give it a try - just after a fresh pot of coffee.
  31. Oops - thats @Frank B's library = I added it get...

    Oops - thats @Frank B's library = I added it get freemem for the T4.1: https://github.com/FrankBoesing/T4_PowerButton

    Sorry about that - forgot I was using it so distracted with the other problem.
  32. Ok lets see if I can explain this without...

    Ok lets see if I can explain this without tripping over myself. A virtual timer is set up in Timer.h that calls off to IntervalTimer that does a attachInterruptVector. The sketch then calls off to:...
  33. Replies
    532
    Views
    30,097

    Morning all Actually no, didn't get a chance to...

    Morning all
    Actually no, didn't get a chance to look - too many other distractions last couple of days :)

    I agree with you Kurt 100%.

    Oh - one thing I noticed is that if you put in a SD...
  34. Replies
    35
    Views
    984

    Serial monitor seems to be hanging again similar...

    Serial monitor seems to be hanging again similar to what happened in T4 beta testing: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=213179&viewfull=1#post213179

    If I run this...
  35. Thanks thought crossed my mind - so I tested...

    Thanks thought crossed my mind - so I tested yesterday down to 24Mhz. But as a double check after your suggestion I just tested at 150Mhz - still stopped after a couple tries. Even tried tried...
  36. Replies
    532
    Views
    30,097

    Morning all @defragster - gave your mods a go...

    Morning all
    @defragster - gave your mods a go and all seems to be working.

    1. SSD 120GB - 2parts, extFAT/FAT32
    2. SD CARD in adapter - 32GB - 2 FAT32 parts
    3. 2 GB Thumb drive - 1 FAT16
    ...
  37. If anyone has any ideas please let me know. Ran...

    If anyone has any ideas please let me know. Ran of ideas on how to further debug.
  38. Replies
    532
    Views
    30,097

    @defragster - will let you do it = going get some...

    @defragster - will let you do it = going get some zzz's now - been up since 4am
  39. Replies
    532
    Views
    30,097

    Damn - thought I posted the fix: // ...

    Damn - thought I posted the fix:

    // VolumeName.ino
    // An example of how to retrieve Fat32 and ExFat volume names using SdFat.
    // Works with SD cards and USB mass storage drives.

    #include...
  40. Replies
    532
    Views
    30,097

    Ok here is the fix for extFat: Waiting up to 5...

    Ok here is the fix for extFat:

    Waiting up to 5 seconds for USB drive
    Initialize USB drive...USB drive 1 is present.


    msc1 Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length...
  41. Replies
    532
    Views
    30,097

    @defragster Wondering if its an issue with MSFT...

    @defragster
    Wondering if its an issue with MSFT formatted drive. I put a 128GB SD Card in a usb adapter with 2 FAT32 and 1 extFAT. But looks like the exFAT is failing for some reason;
    ...
  42. Now looking at the waveforms between the T3.5 and...

    Now looking at the waveforms between the T3.5 and T4.1 when it works the command takes about 1.2seconds to complete and they look alike (Used a Salae Logic Analyzer). When it fails on the T4.1 the...
  43. Help! Program works on T3.5 but fails on T4.x (DCC++)

    Was working on my DCC++ for Model Train Control with Teensy 3.x and Teensy 4.x as a result of problem that some one was running into with running on a T4.1. Going to get complicated so here it goes....
  44. Replies
    532
    Views
    30,097

    @KurtE Fantastic. I was playing with and trying...

    @KurtE
    Fantastic. I was playing with and trying to make it work like FAT by opening the root directory but failed miserably. Where did you find the rootDirStart?:
    ...
  45. Replies
    532
    Views
    30,097

    Just gave it a try and works for me. We all are...

    Just gave it a try and works for me. We all are really hacking away - but its working at least so making progress.

    Not sure we are supporting FAT16 - or should we?

    As for different types of...
  46. Replies
    532
    Views
    30,097

    @KurtE Fixed this now works for USB devices: ...

    @KurtE
    Fixed this now works for USB devices:

    msc1 Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length
    exFAT: 1,0,0x20,0x21,0x0,0x7,0xFE,0xFF,0xFF,2048,204800000
    FAT32:...
  47. Replies
    532
    Views
    30,097

    Out of curiosity I did add a print directory (LS)...

    Out of curiosity I did add a print directory (LS) for the fat just to see if it work:

    msc1 Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length
    exFAT:...
  48. Replies
    532
    Views
    30,097

    @KurtE Got it partially working msc1...

    @KurtE
    Got it partially working

    msc1 Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length
    exFAT: 1,0,0x20,0x21,0x0,0x7,0xFE,0xFF,0xFF,2048,204800000
    FAT32:...
  49. Replies
    532
    Views
    30,097

    @KurtE - @all Finished my diversions this...

    @KurtE - @all

    Finished my diversions this morning and guess I am going to start playing with partitions again. This stuff is giving me a headache to be honest - a lot of pieces to the puzzle.
    ...
  50. Replies
    532
    Views
    30,097

    Thanks Kurt - right now by brain is mush working...

    Thanks Kurt - right now by brain is mush working on multiple things at a time :) Need a break before getting back into it.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4