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

Search:

Type: Posts; User: Silverlock

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. I just ordered the PCB (the original version)...

    I just ordered the PCB (the original version) from OshPark and picked up the bits and pieces from DigiKey. If you want one of the spare boards, PM me your mailing address and I'll pop it in the mail....
  2. Replies
    9
    Views
    393

    That looks perfectly fine; the 4.1 cards didn't...

    That looks perfectly fine; the 4.1 cards didn't have the diagram on the back at the start. I've seen the card with the back image here on the forums but I don't know if they've made it into...
  3. Replies
    12
    Views
    269

    Well, when I'm using Geany as my IDE (which is...

    Well, when I'm using Geany as my IDE (which is pretty much all of the time), when it comes time to compile something for a T4.x, my compile command looks like this:
    ...
  4. Replies
    12
    Views
    269

    Why not just use the IDE to compile the sketch,...

    Why not just use the IDE to compile the sketch, then use the command line loader to load the hex file it creates?
  5. Replies
    12
    Views
    269

    The Teensy Loader program sets the RTC to the...

    The Teensy Loader program sets the RTC to the current local time every time it uploads a sketch. I don't know of any way to disable this.

    You could use the command line loader; it doesn't set the...
  6. There is a problem with the...

    There is a problem with the blink_slow_Teensy40.hex file and the soft reset option. It'll load once, but after that it does as you describe.

    If you compile your own blink sketch, it'll work.
  7. It was the hex file itself, not a 4.0/4.1...

    It was the hex file itself, not a 4.0/4.1 incompatibility? Interesting.

    The soft reboot code is only implemented in the Linux portion of the code. There's just a stub for OSX and Windows.
  8. I can duplicate the problem on Raspbian if I load...

    I can duplicate the problem on Raspbian if I load "blink_slow_Teensy40.hex" into a Teensy4.1 and then try and load it again.

    me@raspberrypi:~/Documents/src/teensy_loader_cli $ ./teensy_loader_cli...
  9. The broken pipe error was caused by a too short...

    The broken pipe error was caused by a too short "SET_LINE_REQUEST_TYPE" message. The system was expecting 7 bytes (4 bytes for speed, 1 for stop bit, 1 for data bits, and another for parity) but the...
  10. Out of curiosity I soldered a crystal and end...

    Out of curiosity I soldered a crystal and end header to my T3.2, hooked up a 3V coin cell and loaded the stripped down and modified version of the TimeTeensy3 sketch shown below. I removed all the...
  11. I made a fork of SdFat-beta...

    I made a fork of SdFat-beta last year and added in makeSystem(), makeHidden(), makeReadOnly() and makeArchive() methods, as well as code in the sync() method (which is called when the file is closed)...
  12. No, actually you didn't. I didn't say to...

    No, actually you didn't.

    I didn't say to change and run the program.

    I'm saying: if you set those variables to those values, what output would you expect to see from the program? Write that...
  13. I'm going to approach this from a slightly...

    I'm going to approach this from a slightly different direction.

    If you set:

    Int long Days = 0;
    Int long Hours = 0;
    Int long Min = 0;
    Int long Sec_add = 3;

    What exactly would...
  14. If you didn't change Sec from being an unsigned...

    If you didn't change Sec from being an unsigned long, the test
    if (Sec >= 0) will always be true.
  15. Sec is an unsigned long, so it will never be less...

    Sec is an unsigned long, so it will never be less than zero. When you set all your Days, Hours, Min, Sec_add variables to zero, Sec will start at zero, but when you decrement it, it will be a really...
  16. Replies
    2
    Views
    191

    If we're talking about the Teensy 4.x, from...

    If we're talking about the Teensy 4.x, from experience, you can get away with just doing another SerialX.begin(new_baud_rate).

    Unless you're also using hardware handshaking (RTS/CTS), in which...
  17. Replies
    8
    Views
    363

    When are you seeing your problem? When the sketch...

    When are you seeing your problem? When the sketch is first downloaded and run? Or when the T4 has been powered off and then powered back on again?

    If the former, that's how it's supposed to work;...
  18. Thank you for adding the back side! Those little...

    Thank you for adding the back side! Those little cards are so handy at times.
  19. Replies
    3
    Views
    185

    Something like if (Serial) { ...

    Something like

    if (Serial) {
    Serial.print(...);
    }
    should do the trick, I think.
  20. I pretty much duplicated your setup; Raspbian...

    I pretty much duplicated your setup; Raspbian instead of Ubuntu, but otherwise identical, down to the version of Teensyduino and the library used. It's been running now for over 10 minutes with nary...
  21. Replies
    23
    Views
    820

    It sounds like that person may be using an older...

    It sounds like that person may be using an older version of the Teensy loader that didn't know about the 4.1. If Help -> About doesn't say "Teensy Loader 1.53" (or newer), it's time to upgrade.
  22. Good to hear that you've got it working.

    Good to hear that you've got it working.
  23. You could try replacing these lines 344 and 345...

    You could try replacing these lines 344 and 345 in teensy_loader_cli.c



    char reboot_command = 134;
    int response = usb_control_msg(serial_handle, 0x21, 0x20, 0, 0, &reboot_command, 1,...
  24. Replies
    7
    Views
    540

    Depending on which Teensy it is; I've yet to get...

    Depending on which Teensy it is; I've yet to get the "-s" option to work with a Teensy 4.1. The usage text does say it's just for the 3.x series, but I was hoping!
  25. It does see main power for several hours pretty...

    It does see main power for several hours pretty much every day. But even so it's been off for at least 12 hours a day through all that time, and that's a very conservative estimate.
  26. It was in the usage text from the program itself...

    It was in the usage text from the program itself (source line #43 in teensy_loader_cli.c):


    earth:~/Documents/src/teensy_loader_cli $ ./teensy_loader_cli
    Filename must be specified

    Usage:...
  27. I missed that. And as I've had the same dollar...

    I missed that. And as I've had the same dollar store CR2032 cell in a T4.0 setup since October of last year I was a bit concerned. So I just measured its in circuit voltage and it's still reading 3V...
  28. Curiosity got the better of me. The command line...

    Curiosity got the better of me. The command line loader definitely does not reset the time when uploading a new sketch. It does require pressing the button on the T4.1 to start the download; the soft...
  29. Have you tried using the command line version of...

    Have you tried using the command line version of the loader? From admittedly just a quick glance, I can't see any code in there that sets the target's time on loading. You would have to compile the...
  30. DNS or hosting snafu, perhaps? It's working here...

    DNS or hosting snafu, perhaps? It's working here as well.
  31. Also, make sure that any alpha characters in the...

    Also, make sure that any alpha characters in the file name and extension are upper case. Lower case characters will result in a LFN even if the name fits in 8.3.
  32. Replies
    16
    Views
    981

    Put me down as another vote for KiCad on Linux....

    Put me down as another vote for KiCad on Linux. It's usable even on a Raspberry Pi.
  33. Digikey now has stock of the PSRAM chip...

    Digikey now has stock of the PSRAM chip.
  34. This is how I start things up with SdFat-beta (in...

    This is how I start things up with SdFat-beta (in use since June of this year with no issues):


    SD SdFat;
    .
    .
    .
    if (SD.begin(SdioConfig(FIFO_SDIO))) {
    .
    .
  35. Replies
    16
    Views
    1,058

    The uSD breakout board that I use with the T4.0...

    The uSD breakout board that I use with the T4.0 has no pullups, and as you've already seen on the T4.1 schematics, the onboard uSD there has none either.

    As for wire lengths, I've got a 2" FFC...
  36. Replies
    16
    Views
    1,058

    Right there could be a big part of your troubles....

    Right there could be a big part of your troubles. Don't change the config file. I've haven't. Use plain old SdFat file system in your program, and resist the temptation to turn knobs and twiddle with...
  37. Replies
    16
    Views
    1,058

    I've been using an SDIO connected uSD card with...

    I've been using an SDIO connected uSD card with the T4.0 and T4.1 and the SdFat-beta library, on a daily basis, for many months now. I imagine if there was an issue with the SdFat-beta library, I'd...
  38. Replies
    16
    Views
    1,058

    The consensus on this thread...

    The consensus on this thread was that it just was an error in the T4.0 schematic.

    When you say you're "having a hard time getting my T4.0 to talk to an SD card", are you using the SDIO pads on the...
  39. Replies
    3
    Views
    332

    A 3V coin cell on VBat will maintain the real...

    A 3V coin cell on VBat will maintain the real time clock while the main power is off.
  40. Replies
    14
    Views
    1,349

    I did that as well. DigiKey had the W25Q128JVSIQ...

    I did that as well. DigiKey had the W25Q128JVSIQ FLASH chip and the ESP32-WROVER-B (8MB) so I ordered both. Pried the shield off the ESP32 and removed the PSRAM chip with the aid of some solder wick...
  41. Replies
    13
    Views
    1,127

    I was lucky enough to start accumulating these...

    I was lucky enough to start accumulating these interlocking drawers many decades ago. (I was also lucky enough to add a whole bunch more when my father downsized his workshop.) I'd love to get even...
  42. Ahh, interesting. When DigiKey started stocking...

    Ahh, interesting. When DigiKey started stocking the Teensy 4.1 it was only a day between the entry showing up and stock being available. I'll have to remember to keep an eye on that over the next few...
  43. Replies
    2
    Views
    434

    Try this. It's a stripped down version of the...

    Try this. It's a stripped down version of the TimeTeensy3 example (yes it works with Teensy4, don't let the name throw you):


    /*
    * TimeTeensy3.ino
    * example code illustrating Time library...
  44. Replies
    4
    Views
    466

    I feel like I'm missing something obvious, but...

    I feel like I'm missing something obvious, but after a quick glance I got this:

    86400 seconds in a day.
    That's 86400000 mSecs in a day.
    unsigned long is 32 bits, with a maximum value of...
  45. What SD library are you using? SD? SdFat? Does it...

    What SD library are you using? SD? SdFat? Does it support a dateTimeCallback function? Did you set it up?
  46. Changing the optimization level can make these...

    Changing the optimization level can make these kinds of warnings pop up and disappear too, resulting in a "what the..." moment. switch() statements that set a variable in all cases followed by code...
  47. Replies
    23
    Views
    2,650

    The same: 1.53 with Arduino 1.8.13. Ran one...

    The same: 1.53 with Arduino 1.8.13.

    Ran one more test with Optimize = Faster, which is the default in the IDE. (I always use Optimize = Fast because, though I can't prove it with a simple example...
  48. Replies
    23
    Views
    2,650

    I loaded up the Test example from USBhost_t36 it...

    I loaded up the Test example from USBhost_t36 it on a T4.1 here and saw +5V on the USB host power pin as soon as I opened the Serial monitor so that the program could start and the USB host object...
  49. Replies
    23
    Views
    2,650

    I can verify that. With just a blink sketch...

    I can verify that. With just a blink sketch loaded, there was no voltage on the USB host +5 pin. Once USBHost_t36 was loaded and enabled the output that switches on USB host power, there was...
  50. Replies
    50
    Views
    10,183

    Sticky: No issues so far with ARM 32 on Raspbian Stretch,...

    No issues so far with ARM 32 on Raspbian Stretch, installed over 1.53b3.
Results 1 to 50 of 109
Page 1 of 3 1 2 3