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

Search:

Type: Posts; User: Silverlock

Search: Search took 0.00 seconds.

  1. Replies
    50
    Views
    2,034

    Sticky: I'm in full agreement with that. And at one time,...

    I'm in full agreement with that. And at one time, that was the way things were done; upgrades didn't break existing functionality. But, like it or not, things are viewed differently now by a lot of...
  2. Replies
    50
    Views
    2,034

    Sticky: There have been some changes in the ADC library...

    There have been some changes in the ADC library since the snapshot taken when 1.52 was put together. I noticed that at one stage the original methods were put in, but marked deprecated (so they'd...
  3. Replies
    50
    Views
    2,034

    Sticky: I tried compiling your program for both a T3.6...

    I tried compiling your program for both a T3.6 and a T4.0.

    After declaring some values for readPin and readPin2, it sailed through both pinMode lines, and then errored out on setAveraging,...
  4. Replies
    784
    Views
    27,461

    That white wire should have been delivering 3.3V...

    That white wire should have been delivering 3.3V to that pin (at least it was on mine).

    To the best of my recollection, the middle row of pins across the end of the uSD socket (Vbat, 3.3V, Gnd,...
  5. Replies
    7
    Views
    128

    Speculating on a circuit and components I have no...

    Speculating on a circuit and components I have no knowledge of wouldn't help you much I'm afraid. But if that's what you think it might be, a breadboard with just the Teensy and your unnamed...
  6. Replies
    7
    Views
    128

    Well, that would have been too easy if that had...

    Well, that would have been too easy if that had been the problem.

    More dumb questions just to cover the obvious things I can think of.

    Did you forget the Wire1.begin();?

    Are you connecting...
  7. Replies
    7
    Views
    128

    I've used I2C on both the Teensy 4.0 and 4.1 with...

    I've used I2C on both the Teensy 4.0 and 4.1 with the standard Wire library included with Teensyduino. Haven't seen any hangs when endTransmission() is called. 4.7K pullups on both SDA and SCL.
    ...
  8. Replies
    10
    Views
    246

    In my experience at least, it was that. On the...

    In my experience at least, it was that. On the Teensy 4.x, when I moved the changes in my fork of SdFat over to SdFat-beta I probably had about an hour's tinkering to get it back up and running. Most...
  9. Replies
    38
    Views
    1,804

    Just as a check, in the Teensy Loader, does Help...

    Just as a check, in the Teensy Loader, does Help -> About show 1.52-beta-4 or better? I know it sounds unlikely, but there was an earlier case where someone had upgraded, but was still running an...
  10. Replies
    784
    Views
    27,461

    I think there's an extra 0 in the included part...

    I think there's an extra 0 in the included part number on OSH. The 89361-706LF is DigiKey # 609-3139-ND: https://www.digikey.com/products/en?keywords=609-3139-ND (and it's slightly cheaper!).
  11. I believe the spacing of the pins on the ethernet...

    I believe the spacing of the pins on the ethernet connector is 2mm, not 2.54mm.
  12. Replies
    18
    Views
    829

    My "Future Teensy" is the 4.1 beta board that...

    My "Future Teensy" is the 4.1 beta board that Canada Post assures me will be here by the end of the week.:)
  13. I haven't touched SdFatConfig.h, so that's not...

    I haven't touched SdFatConfig.h, so that's not it. Haven't run any other examples; it already works with my setup (and has for about 7 months now). And this is something that I'm actively using, day...
  14. Just as a data point, I've been using a FAT32...

    Just as a data point, I've been using a FAT32 formatted card with SdFat-beta for a while now with absolutely no problems (Teensy 4.0, SPI connection).
  15. You could try SD.begin(PIN_SPI_SS,...

    You could try
    SD.begin(PIN_SPI_SS, SD_SCK_MHZ(25)); and seeing what that does. When I started off using the abundant el cheapo uSD adapters found on eBay and Amazon, that's the fastest that I could...
  16. Replies
    38
    Views
    1,804

    No problems with Linux ARM install on Raspbian...

    No problems with Linux ARM install on Raspbian Stretch with Arduino IDE 1.8.12.

    T4.0 clock matched PC time after upload.

    Set PC date/time ahead to Dec 1 2020 14:00 MST (after DST ends) and...
  17. Replies
    784
    Views
    27,461

    This might have nothing to do with the problem...

    This might have nothing to do with the problem you're having, but it's easy enough to check (and easy to fix, as well) so I'll throw it out there.

    A while back I was having trouble with a T4.0...
  18. It looks to me like the change to rtc_set() is...

    It looks to me like the change to rtc_set() is already in there. I just forked the cores repository and opened up teensy4/rtc.c to add the change and saw some very familiar code in rtc_set().
  19. The change I made was in cores/teensy4/rtc.c, so...

    The change I made was in cores/teensy4/rtc.c, so it would already only apply to the T4s. The T3s have their own separate cores/teensy3 directory (and a completely different rtc_set() function in a...
  20. Replies
    784
    Views
    27,461

    Is CTS3 really on the unlabelled pin 26...

    Is CTS3 really on the unlabelled pin 26 (AD_B1_14)? I'd have expected pin 19 (AD_B1_00).
  21. In the Teensy 4, Teensy3Clock.set(x) only sets...

    In the Teensy 4, Teensy3Clock.set(x) only sets the RTC, not the SRTC. The SRTC is the clock that is maintained by the coin battery on Vbat. The SRTC is set by the loader. When your program starts up,...
  22. There are, somewhat confusingly, two RTCs in the...

    There are, somewhat confusingly, two RTCs in the Teensy 4.0.

    There's one called the RTC (which is what the your program is talking to when you make a Teensy3Clock.get() or .set() call) and...
  23. 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.
  24. 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...
  25. 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...
  26. Replies
    19
    Views
    1,198

    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...
  27. 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()...
  28. Replies
    14
    Views
    2,845

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

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

    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...
  30. Replies
    19
    Views
    1,198

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

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

    Interesting... what library are you using?
  32. 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.
  33. 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...
  34. 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...
  35. Whew; I wasn't imagining it then. Thanks for...

    Whew; I wasn't imagining it then. Thanks for checking.
  36. 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...
  37. Replies
    7
    Views
    409

    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 &...
  38. Replies
    19
    Views
    1,198

    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...
  39. Replies
    19
    Views
    1,198

    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.
  40. Replies
    19
    Views
    1,198

    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...
  41. Replies
    19
    Views
    1,198

    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...
  42. Replies
    19
    Views
    1,198

    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...
  43. 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...
  44. 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 44 of 44