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. good to find a non .ld solution. Edits to that...

    good to find a non .ld solution.

    Edits to that .ld are non-trivial and have systemic ties
  2. Suspect that concern was resolved with the...

    Suspect that concern was resolved with the attachInterrupt() code in that file as it has been in use for some long time now without issue ... the problem with comments ... ???
    > no comment, no...
  3. This thread...

    This thread pjrc.com/threads/69185-FLASHMEM-for-all-functions-in-a-file

    Has tips on .LD file edits that keep ALL code in FLASH - and notes on pulling select code to RAM.
  4. Replies
    342
    Views
    56,376

    yield() is the one 'runtime' feature that goes...

    yield() is the one 'runtime' feature that goes with Arduino.

    When called directly, and called with calls to delay() and on each exit of loop() before it is called again.

    What yield does is...
  5. Yes, that should be the case - with the exception...

    Yes, that should be the case - with the exception of some conditional and instruction time.

    While in FAST I/O mode all pins route through a single common interrupt routine given the 1062 MCU...
  6. Putting "FLASHMEM" as a prefix to the function...

    Putting "FLASHMEM" as a prefix to the function prototype will have it reside in FLASH.

    This example from PJRC's Startup.c for example:


    FLASHMEM void configure_external_ram()
    {
    ...
    }
  7. Seems details on the hardware controllers, motors...

    Seems details on the hardware controllers, motors and connections may be needed for related answers.

    Wondering: If Master, Slave, DC unpowered::
    > Plug in DC motor power: results?
    > Then power...
  8. Detail dithering catches me at times too - I did...

    Detail dithering catches me at times too - I did take a minute to find the 'quote from code' ...



    millis() and micros() are used for each of the respective 'elapsed' types.

    Indeed T_4.x...
  9. It does not rely on any timers, but "class...

    It does not rely on any timers, but "class elapsedMillis" uses millis() for time reference:

    ...
    elapsedMillis(void) { ms = millis(); }
    ...
  10. Mike, are these (other) p#1299 edits in place for...

    Mike, are these (other) p#1299 edits in place for SD code: pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC?p=308206&viewfull=1#post308206

    ... I got Win_github to...
  11. @kurtE - Nice - will look at the usage and see if...

    @kurtE - Nice - will look at the usage and see if it helps MakeFiles - except that one wanted to pick a single 'DISK' for testing.
  12. Does the SD card work right on a computer? Or is...

    Does the SD card work right on a computer? Or is it really damaged?

    Some T_4.1's with many card swaps here in testing and no such issues yet as far as the SD Socket failing - though I have an sd...
  13. 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...
  14. Replies
    7
    Views
    433

    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...
  15. Replies
    11
    Views
    184

    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 -...
  16. Replies
    11
    Views
    184

    Post restored ...

    Post restored ...
  17. Replies
    7
    Views
    433

    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+...
  18. 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
  19. 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.
    ...
  20. 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...
  21. 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.
  22. 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.
  23. @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?
  24. 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...
  25. 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...
  26. 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...
  27. 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'...
  28. 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...
  29. @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...
  30. 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...
  31. 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:


    ================================...
  32. 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...
  33. @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...
  34. 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...
  35. @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...
  36. 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
  37. 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...
  38. @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 -...
  39. 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();
    //...
  40. 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...
  41. 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,...
  42. 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 ???
  43. 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...
  44. Sounds good Kurt ... will sync and run some.

    Sounds good Kurt ... will sync and run some.
  45. 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.
  46. Replies
    256
    Views
    30,996

    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...
  47. Replies
    13
    Views
    1,716

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