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

Search:

Type: Posts; User: defragster

Page 1 of 10 1 2 3 4

Search: Search took 0.09 seconds.

  1. Yes, that part of p#2was correct: "will provide...

    Yes, that part of p#2was correct: "will provide generous Serial output of any events as they happen"

    With that enabled, remove the HUB and try a device individually and that should then show since...
  2. Replies
    5
    Views
    105

    Below is the code that resolves micros() given...

    Below is the code that resolves micros() given the last milli second timer update, and the cycle count stored then.

    If the math were bumped to all 64 bit and the scaling to nano adjusted from...
  3. Replies
    11
    Views
    162

    No, I use android - but not much for posting....

    No, I use android - but not much for posting. Also not noticed a trend of that. At this point this old BBulletin forum is basically 'what it is' - ideally PJRC was looking to move to a new platform -...
  4. Replies
    11
    Views
    162

    Post restored ...

    Post restored ...
  5. Replies
    5
    Views
    105

    See this:...

    See this: github.com/TeensyUser/doc/wiki/Implementing-a-high-resolution-Teensy-clock

    Teensy has a processor clock based count of cycles: ARM_DWT_CYCCNT

    At 600 MHz it overflows 32 bits after 7+...
  6. Yes, sorry - indeed, in that .h file :...

    Yes, sorry - indeed, in that .h file : ...\USBHost_t36\USBHost_t36.h



    // Uncomment this line to see lots of debugging info!
    //#define USBHOST_PRINT_DEBUG
  7. That looks to be an unpowered hub? With T_4.0...

    That looks to be an unpowered hub?

    With T_4.0 connection wires had to be soldered to the bottom Host D+ and D- pins, those lines have to be done well. Good sign both devices work individually.
    ...
  8. No complaint on the track width - one more PCB...

    No complaint on the track width - one more PCB than I have done :) Was just noting so many traces that it didn't seem like many were unused, and not all were visible in images.

    Good note on what...
  9. Very cool. Edited p#1 link to work. What few...

    Very cool. Edited p#1 link to work.

    What few pins are unused? Though PCB trace space looks tight to pull many out anywhere.
  10. That's how I read it as AFAIK it would make sense...

    That's how I read it as AFAIK it would make sense in context to help with sorting FS coding issues.
  11. @luni I started a reply like yours ... if not...

    @luni I started a reply like yours ... if not there then #else bring it in, but did a refresh and saw the @WMXZ note that the has_include doesn't seem to perform the desired test?
  12. That is a good ref @WMXZ :...

    That is a good ref @WMXZ : gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005finclude.html#g_t_005f_005fhas_005finclude

    @Kurt - hopefully this link goes there as used that is not portable when...
  13. Updated Defragster/T4LockBeta/tree/main/MakeFiles...

    Updated Defragster/T4LockBeta/tree/main/MakeFiles to include features and functions of SD_MTP_debug.ino

    Edited 2nd SD to only ADD when this works: if (sdSPI.begin(CS_SD2))

    All code from...
  14. Found it: diff in SD versus LFS_Flash mkdir()...

    Found it: diff in SD versus LFS_Flash mkdir() UPDATED >> github.com/Defragster/T4LockBeta/tree/main/MakeFiles

    When a folder in a folder is needed {and neither exists} the SD FS will create both...
  15. My Bad for not checking enough jumping between...

    My Bad for not checking enough jumping between LFS Flash and SD ...

    > just off a 2+ hour telecon and got my outside project moved along ...

    There must be something unique in my 'string'...
  16. There was a note way back about depth support on...

    There was a note way back about depth support on 'some media' : perhaps mis-remembered, or it changed ... in scanning it seemed others had depth, but not seen just then.

    Though still the same...
  17. @KurtE: would having an 'Unmount/Safe Remove'...

    @KurtE: would having an 'Unmount/Safe Remove' option allow closing disk files and then pulling the MTP drive and doing MTP.reset be a cleaner or good option?



    Cool there was an answer!

    The...
  18. This is with 'b'ig create - not designed to work...

    This is with 'b'ig create - not designed to work on LFS as written.

    Updated with added process debug notes noting fail to create DIR. Detected fail to create DIR and exited without streaming...
  19. This isn't right - in moving path define this one...

    This isn't right - in moving path define this one got mismanaged:

    Works - wrong on SD - should be making unique files in a folder - not re-using file name:


    ================================...
  20. Problem was using LFS FLASH that was too small. ...

    Problem was using LFS FLASH that was too small. With command 'b'ig?
    > except testing here used size is only 9MB of 64MB ????

    Back on 64MB LFS Flash I see those errors - that do NOT repro on SD...
  21. @mjs513 : That was running on 16MB FLASH: Media...

    @mjs513 : That was running on 16MB FLASH: Media Size=16,777,216

    ================================ Media Size=16777216 Used Size=16777216 us=112552 KB/sec=34706.18 Bytes written=4000000

    It...
  22. Mike, ... Opps - seems it was fixed here and...

    Mike, ...

    Opps - seems it was fixed here and working - just not updated. :rolleyes:

    github.com/Defragster/T4LockBeta/tree/main/MakeFiles

    TESTING: 't', 'b', 's' cmds results in no create...
  23. @KurtE - okay will got back to MAIN -...

    @KurtE - okay will got back to MAIN - misunderstood that code was edited since that last update and newest was that linked branch.



    Darn .. I think I saw that the other day and torn with other...
  24. Need to go to other task ... But glancing at...

    Need to go to other task ...

    But glancing at github it looks like this is the updated branch with changes?: github.com/KurtE/MTP_Teensy/tree/try_auto_detect_sd_media
  25. Odd not repro at all? >> will hope to have...

    Odd not repro at all?

    >> will hope to have time to reproduce with updated code.

    The file set on SD card was 'probably': makefiles(2206): but unknown cmds :(
    > should create and add to a...
  26. @luni got you to a solution! But what the...

    @luni got you to a solution!

    But what the suggestion in post #2 was : replace ALL _isr code with just the indicated lines, not ADD the delay.

    At 1 MHz there are less than 600 cycles available -...
  27. just to see ...Change: volatile uint16_t ...

    just to see ...Change:


    volatile uint16_t writeIdx;
    // ...
    void loop() {
    cli();
    int16_t widx = (int16_t)writeIdx;
    sei();
    //...
  28. The USB connector on T_4.1 is the Device...

    The USB connector on T_4.1 is the Device connector to HOST for programming, etc.

    If using the inboard USB_Host pins the the Teensy 4.1 (like the T_3.6) is the Host.

    Using a HUB allows multiple...
  29. Ran with the updated MTP__MAIN code and...

    Ran with the updated MTP__MAIN code and SD_MTP_DEBUG.INO

    1: First without debug=2, pulled copy MTP to HDD, did 'c' and 'p' - no debug output of course
    2: Built SD_MTP_DEBUG.INO with debug=2,...
  30. Thanks Kurt - meant to get that page linked ......

    Thanks Kurt - meant to get that page linked ... shows 14% error on clock math @1200 baud for T_3.6 ???
  31. May be a clock setting problem not tested to an...

    May be a clock setting problem not tested to an external device at that rate?

    Can you cross Serial2 Rx/Tx to another port on the {same or other} T_3.6 and set them both up at 1200 baud and try...
  32. Sounds good Kurt ... will sync and run some.

    Sounds good Kurt ... will sync and run some.
  33. Yes, if held low and released in the measured...

    Yes, if held low and released in the measured 13-17 second window, the PGM pin is wired in common with the Button, it would have the same effect.
  34. Replies
    256
    Views
    30,807

    IDE 2.0 often and regularly asks to save an...

    IDE 2.0 often and regularly asks to save an unchanged file, even one the IDE presented on opening and never altered. KurtE noted this and has made an issue.



    Indeed that Defragster's install of...
  35. Replies
    8
    Views
    1,065

    Back to this laptop - opened IDE 2 In board Mgr...

    Back to this laptop - opened IDE 2
    In board Mgr selected The Teensy 1.56.1 marked installed

    Clicked INSTALL and it proceeded to reinstall:

    ...
    Upgrading platform teensy:avr@1.56.53 with...
  36. Thanks Kurt, it works - yes 27MB zip to download...

    Thanks Kurt, it works - yes 27MB zip to download was fairly large!
    Nice to have it recognized and work seamlessly with TyComm again!
  37. Thanks Kurt. It was late and I ran the...

    Thanks Kurt.
    It was late and I ran the sdmtpDebug and saw that and until I found the code it was too late to discover the logic behind it.
    And my head hurt after seeing 'skiped' on one screen and...
  38. @KurtE > did @koromix publish an updated TyComm...

    @KurtE
    > did @koromix publish an updated TyComm for PID_VID::MTP+Serial? I missed it is so ... if not can you point to one?

    - got the updated code.
    Inserted SD card running the sd_mtp_debug not...
  39. Very cool Kurt, will see about updating makefiles...

    Very cool Kurt, will see about updating makefiles to allow it - and the debug.

    Maybe add a #define in MTP_storage.h to ID when that version of the lib is present ... so it can do the right thing...
  40. Pushed Update to...

    Pushed Update to github.com/Defragster/T4LockBeta/tree/main/MakeFiles

    Added LFS options for:


    F - Format Disk Low Level
    S - SAFE Unused block Format

    The main write loop of the Verifiable...
  41. This is exactly what .formatUnused() does. It...

    This is exactly what .formatUnused() does. It does take 'user code' "during Down Time ... or before Active Time" when write speed needs to be optimal.

    Usage was included in the integrity test...
  42. That is puzzling that whole files got missed....

    That is puzzling that whole files got missed. That was showing before on SD card, but it went away. All recent SD copies had at worst a missing packet or so, but all files were present after MTP read...
  43. Odd they did not copy ... Assume makefiles:...

    Odd they did not copy ... Assume makefiles: 'l'ist shows them so they are properly findable and the "C"opy would put them on SD. Also 'v'erify.

    Done minimal testing on Flash - SD no fun...
  44. Should that be: " 1 directory of 5 files did NOT...

    Should that be: " 1 directory of 5 files did NOT copy when I did the transfer from the flash to the PC"
    > CodeCompare looks to show them missing

    Don't forget the fun - but, perhaps useless here...
  45. Flipping the copy direction: Blank SD in T_4.1 running MakeFiles.ino fill from PC MTP

    MTP Explorer in Win 11 select All Files copied from last MakeFiles.ino create copied to the PC from the SD card: 14.2 MB in 1540 files and 40 folders

    SD card starts empty and freshly ExFat...
  46. SD card corruption follow up. : This SD...

    SD card corruption follow up. <EDIT>: This SD card is formatted ExFAT

    Emptied drive with "W"ipe
    > PC found no errors but added the 'Sys Vol Info" folder back
    SD into MakeFiles.ino
    > 'r', 't',...
  47. QUESTION: With recent code there was a better way...

    QUESTION: With recent code there was a better way to RESTART MTP to catch Teensy side changes?

    Currently MakeFiles offers this:


    case 'U': // USB Reset
    #if defined(USB_MTPDISK) ||...
  48. Playing with MakeFiles.ino ROOT files count 490 -...

    Playing with MakeFiles.ino ROOT files count 490 - wondering if their size of 48 was too small - bumped to 992 and renamed so they would trigger content size during Verify.

    To see it work ( Files...
  49. Here using KurtE's Debug demo above and the...

    Here using KurtE's Debug demo above and the Example_3_Simple...

    BOTH work properly - with the set of 490 files on the root.

    Check the end of the Console Build output - make sure there isn't an...
  50. UPDATE - based on sleep and post in the 'fail to...

    UPDATE - based on sleep and post in the 'fail to enumerate thread':

    Repeated test without LFS Program disk for mtpindex.dat storage and the old DIR and data confusion seems to be improved?


    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4