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

Search:

Type: Posts; User: choochoo22

Search: Search took 0.00 seconds.

  1. Thanks again for that example it was really...

    Thanks again for that example it was really useful. After a good deal of experimenting and floundering, here is what I observed:


    Relative to the problem mentioned in the OP these new SD...
  2. I'm sorry. I don't mean to be argumentative. I...

    I'm sorry. I don't mean to be argumentative. I know you are trying to help and know much much more about all this than I do, but this point is simply not correct. I've been running previous...
  3. It occurred to me some time ago that reserving...

    It occurred to me some time ago that reserving some space in advance might alleviate some of the problems but I didn't know how to do it. Thanks for that, I'll experiment with it.
  4. If you ran the posted code as-is, threading is...

    If you ran the posted code as-is, threading is off so the alleged problem with SD.h and TeensyThreads would not occur. You need to set Threads = true and experiment with different block sizes. ...
  5. The failures that are occurring happen before the...

    The failures that are occurring happen before the logging reaches timeout. Either the SD writing fails to start in the first place or stops inexplicably in mid log. When an error has already...
  6. I tried moving the file creation statements from...

    I tried moving the file creation statements from setup() into writeLog() like this with all file operations are in the writeLog() thread. The result is that the file fails to open every time.


    ...
  7. Based on those results it would seem the "sweet...

    Based on those results it would seem the "sweet spot" for a 3.5 may be a combination of block length and the particular card. I've tried 1k, 2k, 4k, 8k, 16k and 32k and all of them write with the...
  8. The result is the same with longer slices. My...

    The result is the same with longer slices. My T3.5 fails to write @2048 even if the slice time is increased to 100ms.

    The threaded process works with a block length of 1024 on three different...
  9. I'm using IDE 1.8.13, TD 1.54, and default T3.5...

    I'm using IDE 1.8.13, TD 1.54, and default T3.5 120mhz.

    Interesting that block sizes worked fine on a T4.1 that won't work on my T3.5. Even your result without threads looks pretty good, although...
  10. Problem with TeensyThreads and SD.h playing together

    Using TeensyThreads to alleviate SD write latency issues works very well when it works but it only seems to work within a sweet spot of write block size of 256-1024 characters. If 2048 or higher is...
  11. Replies
    10
    Views
    819

    After a few edits, this code also works on my...

    After a few edits, this code also works on my T3.5 using the SD.h library. Thanks very much for the help.


    #include <SD.h>
    #include <TimeLib.h>

    File dataFile;

    void setup() {
  12. Replies
    10
    Views
    819

    Yes. That also works with my T3.5, thanks.

    Yes. That also works with my T3.5, thanks.
  13. Replies
    10
    Views
    819

    Indeed, that did the trick! Thank you very much....

    Indeed, that did the trick! Thank you very much.

    I would never have figured that out. The code in the example I was using as a guide was:


    if (!file.open("RtcTest.txt", FILE_WRITE)) {
    ...
  14. Replies
    10
    Views
    819

    The code in OP produces the same result as...

    The code in OP produces the same result as before, minus the error messages. The file Foo.txt is created with a blank time stamp and no content.

    25281
  15. Replies
    10
    Views
    819

    Sorry for delay, had a Windows crash that...

    Sorry for delay, had a Windows crash that discarded the most recent version of my main project. Thanks Microsoft.

    Followed your advice and went back to SD.h which was working with the project...
  16. Replies
    10
    Views
    819

    Creating SD files with time-stamps

    I've been using the SD library with a project, mostly successfully, but I would like to add time stamps to files created and can't seem to find a way to do that with SD. So... I'm now trying to...
  17. Replies
    98
    Views
    14,108

    Thanks. I reinstalled IDE and Teensyduino 1.53...

    Thanks. I reinstalled IDE and Teensyduino 1.53 and things went back to where they were, the sketch works but with an occasional SD write latency problem.
  18. Replies
    98
    Views
    14,108

    OK, so, gave up on using sdFat as even the...

    OK, so, gave up on using sdFat as even the examples don't work. Going back to SD and try the newer Teensyduino as below:



    Now the application that was working fine before is broken:

    ...
  19. Replies
    98
    Views
    14,108

    The SD library works on my T3.5 but has a serious...

    The SD library works on my T3.5 but has a serious latency problem so I would like to try sdFAT. This hasn't really worked at all. I was advised to try Teensyduino 1.54 beta 7. This shows some...
  20. Replies
    1
    Views
    254

    Problems using sdFat

    I'm basically a neophite although I have at least one project I'm pretty happy with. That project, however, is plagued by write latency issues with the SD card on a Teensy 3.5. I would like to try...
Results 1 to 20 of 20