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. Replies
    27
    Views
    958

    For SDA1 and SCL1, use Wire1 rather than Wire.

    For SDA1 and SCL1, use Wire1 rather than Wire.
  2. Replies
    10
    Views
    486

    Yeah, I wondered about that... then I noticed...

    Yeah, I wondered about that... then I noticed that the voltage measurement was slowing drifting upwards. I turned on a regulated 5V bench supply and measured that and got 5.7V, drifting upwards. Hmm!...
  3. Replies
    10
    Views
    486

    I was impressed. :) I decided that it had done...

    I was impressed. :) I decided that it had done its duty and replaced it with a "Basics" battery from a certain well known Internet retailer. We'll see how it does. 3.5V to start.
  4. Replies
    10
    Views
    486

    I've had the same CR2032 hooked up to a Teensy...

    I've had the same CR2032 hooked up to a Teensy 4.0 for 23 months now. I just popped the top off the case it's in to measure the voltage and it's only down to 2.73V. Not bad for a dollar store battery.
  5. Replies
    6
    Views
    437

    Try this: void doReboot() { SCB_AIRCR =...

    Try this:

    void doReboot() {
    SCB_AIRCR = 0x05FA0004;
    }
  6. Replies
    14
    Views
    745

    Ditto that. Putting a tiny bit of solder on kitty...

    Ditto that. Putting a tiny bit of solder on kitty corner pads (and then taking most of it off with solder wick) seems to help me tack the chip down and then go to work on the remaining pins. Stone...
  7. On the T4, TimeLib is really handy for extracting...

    On the T4, TimeLib is really handy for extracting values out of the timestamp that the RTC returns, and for formatting time strings, and lots of auxiliary stuff like that. But that's about all I use...
  8. Your code never sets the RTC with a call to...

    Your code never sets the RTC with a call to Teensy3Clock.set(time).

    Honestly, the only thing I ever use the stuff in TimeLib for is formatting the time I get from the RTC. Having library routines...
  9. At first glance, the culprit seems to be in...

    At first glance, the culprit seems to be in String::move, which is the function that ends up being called by destination_string = source_string.substring(2,2);. In this case, the lhs has an available...
  10. Replies
    94
    Views
    11,004

    As wwatson says, it's only cosmetic; the loader...

    As wwatson says, it's only cosmetic; the loader still works afterwards. But if you're looking at where to insert a redraw or two, here's some more data points:


    The picture disappears at the...
  11. Replies
    94
    Views
    11,004

    I vaguely remember doing some GTK2 to GTK3...

    I vaguely remember doing some GTK2 to GTK3 updating years ago, and running into a few "well, it mostly works" situations along the way. "Quirky" and "had to tweak" pretty much sums how I remember it.
  12. Replies
    94
    Views
    11,004

    A minor oddity with the TeensyLoader in beta9:...

    A minor oddity with the TeensyLoader in beta9: after the upload completes, the picture disappears.

    Before loading
    24825

    After loading
    24826

    The loader continues to work fine. I don't see...
  13. Replies
    94
    Views
    11,004

    No. If I wait 3 seconds after uploading, I get...

    No. If I wait 3 seconds after uploading, I get nothing at all. If I wait less than that, I get various lengths of the tail end depending on how long I wait. If I open the monitor right away after...
  14. Replies
    94
    Views
    11,004

    Ahh... figured out how to make the error message...

    Ahh... figured out how to make the error message appear.

    I decided to take the error message at face value. It finds a folder in the libraries folder. So it expects to find at least a header file...
  15. Replies
    94
    Views
    11,004

    Hmm. I tried this on Raspbian (Linux ARM) and...

    Hmm. I tried this on Raspbian (Linux ARM) and couldn't reproduce it. If it was an IDE issue I'd have expected it to crop up here too.

    Modified the BlinkWithoutDelay sketch to print out millis when...
  16. Replies
    94
    Views
    11,004

    Installed 1.8.15 and latest beta9 on a Raspberry...

    Installed 1.8.15 and latest beta9 on a Raspberry Pi 3B. Teensyduino installer prompted me to copy 00-teensy.rules over to /etc/udev/rules.d/; I had an existing 49-teensy.rules there but I guess...
  17. 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....
  18. Replies
    9
    Views
    762

    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...
  19. Replies
    12
    Views
    735

    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:
    ...
  20. Replies
    12
    Views
    735

    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?
  21. Replies
    12
    Views
    735

    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...
  22. 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.
  23. 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.
  24. 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...
  25. 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...
  26. 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...
  27. 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)...
  28. 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...
  29. 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...
  30. 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.
  31. 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...
  32. Replies
    2
    Views
    313

    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...
  33. Replies
    8
    Views
    681

    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;...
  34. Thank you for adding the back side! Those little...

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

    Something like if (Serial) { ...

    Something like

    if (Serial) {
    Serial.print(...);
    }
    should do the trick, I think.
  36. 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...
  37. Replies
    29
    Views
    2,066

    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.
  38. Good to hear that you've got it working.

    Good to hear that you've got it working.
  39. 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,...
  40. Replies
    7
    Views
    1,108

    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!
  41. 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.
  42. 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:...
  43. 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...
  44. 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...
  45. 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...
  46. DNS or hosting snafu, perhaps? It's working here...

    DNS or hosting snafu, perhaps? It's working here as well.
  47. 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.
  48. Replies
    16
    Views
    1,801

    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.
  49. Digikey now has stock of the PSRAM chip...

    Digikey now has stock of the PSRAM chip.
  50. 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))) {
    .
    .
Results 1 to 50 of 125
Page 1 of 3 1 2 3