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

Search:

Type: Posts; User: Silverlock

Search: Search took 0.00 seconds.

  1. Thank you for checking that out. I'd hoped that...

    Thank you for checking that out. I'd hoped that the labelling on the IC side was what would turn out to be wrong.
  2. Commands were what I was thinking of too; swapped...

    Commands were what I was thinking of too; swapped data lines you likely wouldn't notice until you took the uSD card out and plugged it into something else. But commands shouldn't work at all if they...
  3. Hmm. If I'm reading the manuals correctly,...

    Hmm. If I'm reading the manuals correctly, SD_B0_05 (J2) is supposed to be DAT3, not DAT2 and SD_B0_04 (H2) is supposed to be DAT2, not DAT3. So something does appear to be swapped. If the labelling...
  4. Replies
    19
    Views
    822

    I did an upload on a T4 just now and saw the same...

    I did an upload on a T4 just now and saw the same thing. It seems that the loader did not recognise that DST has kicked in, and the RTC was set an hour behind.

    Arduino 1.8.12
    Teensyduino 1.51...
  5. Out of curiosity, I tried your program out on a...

    Out of curiosity, I tried your program out on a Teensy 4.0 and it behaved as it should: printing the count once a second.

    In further of curiosity, what happens if you include the Serial.flush()...
  6. Replies
    14
    Views
    1,868

    Sticky: Downloaded and installed on Raspbian Stretch with...

    Downloaded and installed on Raspbian Stretch with Arduino 1.8.12. No problems so far. Thanks.
  7. Replies
    12
    Views
    473

    I'm not sure if this is what you're asking for,...

    I'm not sure if this is what you're asking for, but here's what I've done to stem the plethora of directories under sketchbook. Rather than have each sketch for every board right under the sketchbook...
  8. Replies
    19
    Views
    822

    That's great news. Thanks for digging into it.

    That's great news. Thanks for digging into it.
  9. Interesting... what library are you using?

    Interesting... what library are you using?
  10. If your display variable is called tft, try: ...

    If your display variable is called tft, try:


    tft.setFont();
    That sets the internal font point to NULL, which tells the code to use the default internal font.
  11. I don't know whether the SD and ILI9341_t3...

    I don't know whether the SD and ILI9341_t3 libraries play together nicely on the T4, but the SdFat and ILI9341_t3 libraries do. You can either make a minor tweak to one file in the SdFat library to...
  12. Ahh, thank you for finding that. That fixed an...

    Ahh, thank you for finding that. That fixed an oddball error that had puzzled me. I had the Teensy sending a page of text, then waiting for a character before sending the next page. In one particular...
  13. Whew; I wasn't imagining it then. Thanks for...

    Whew; I wasn't imagining it then. Thanks for checking.
  14. Teensy 4.0, Serial3, attachCts, wrong pin # in HardwareSerial3.cpp?

    TL;DR version: I think cores/teensy4/HardwareSerial3.cpp has the wrong pin defined for Serial3's CTS input; it ought to be AD_B1_00 (pin 19) not AD_B1_01 (pin 18).

    The details and how to reproduce...
  15. Replies
    7
    Views
    323

    If you take a look in startup.c, towards the end...

    If you take a look in startup.c, towards the end of the ResetHandler() routine, you'll find the code that's setting the SRTC to 1/1/2019.


    // initialize RTC
    if (!(SNVS_LPCR &...
  16. Replies
    19
    Views
    822

    And here's a quick check of the results of...

    And here's a quick check of the results of tzset()


    $ cat tzcheck.c
    #include <stdio.h>
    #include <time.h>
    int main(int argc,char *argv[])
    {
    tzset();
    printf("tzname: %s...
  17. Replies
    19
    Views
    822

    I imagine the OP is using a different OS, but I'm...

    I imagine the OP is using a different OS, but I'm using Raspbian Stretch (kernel 4.19.57-v7+) on a RPi 3B. /etc/timezone is set to America/Edmonton. The output of the date command is showing MST.
  18. Replies
    19
    Views
    822

    You're quite welcome; I hope it's useful to you....

    You're quite welcome; I hope it's useful to you. And of course, we've still got the original problem of the time set during download being ahead by an hour. I'll be interested to see what happens to...
  19. Replies
    19
    Views
    822

    Ahh, good. Thanks for confirming that. Here's...

    Ahh, good. Thanks for confirming that.

    Here's the replacement for set_rtc() that I'm using. I came up with based on the code in cores/teensy4/startup.c and from reading the i.MX RT1060 Processor...
  20. Replies
    19
    Views
    822

    I'm seeing the same thing. It appears that the...

    I'm seeing the same thing. It appears that the loader thinks we're still in DST.

    I'm curious; after you use your processing sketch to set the RTC time, does the change survive when you remove the...
  21. Okay, I get it. The set() code in rtc.c is...

    Okay, I get it. The set() code in rtc.c is setting the time in the RTC but not in the SRTC. So when the Teensy 4.0 is powered up and startup.c syncs the RTC to the SRTC, it loads the value that was...
  22. Teensy 4.0 RTC - setting RTC time works, but current time returns after power cycle

    With the end of DST coming up, I was playing around with changing the time on my Teensy 4.0 and came across something that I can't explain.

    Here's the setup:

    * Teensy 4.0 with a 3V lithium...
Results 1 to 22 of 22