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

Search:

Type: Posts; User: Silverlock

Search: Search took 0.00 seconds.

  1. 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...
  2. 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...
  3. Whew; I wasn't imagining it then. Thanks for...

    Whew; I wasn't imagining it then. Thanks for checking.
  4. 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...
  5. Replies
    7
    Views
    164

    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 &...
  6. Replies
    11
    Views
    282

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

    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.
  8. Replies
    11
    Views
    282

    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...
  9. Replies
    11
    Views
    282

    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...
  10. Replies
    11
    Views
    282

    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...
  11. 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...
  12. 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 12 of 12