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
    6
    Views
    150

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

    Try this:

    void doReboot() {
    SCB_AIRCR = 0x05FA0004;
    }
  2. Replies
    14
    Views
    463

    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...
  3. 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...
  4. 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...
  5. 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...
  6. Replies
    86
    Views
    8,441

    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...
  7. Replies
    86
    Views
    8,441

    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.
  8. Replies
    86
    Views
    8,441

    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...
  9. Replies
    86
    Views
    8,441

    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...
  10. Replies
    86
    Views
    8,441

    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...
  11. Replies
    86
    Views
    8,441

    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...
  12. Replies
    86
    Views
    8,441

    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...
  13. 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....
  14. Replies
    9
    Views
    602

    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...
  15. Replies
    12
    Views
    557

    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:
    ...
  16. Replies
    12
    Views
    557

    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?
  17. Replies
    12
    Views
    557

    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...
  18. 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.
  19. 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.
  20. 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...
  21. 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...
  22. 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...
  23. 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)...
  24. 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...
  25. 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...
  26. 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.
  27. 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...
  28. Replies
    2
    Views
    261

    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...
  29. Replies
    8
    Views
    490

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

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

    Something like if (Serial) { ...

    Something like

    if (Serial) {
    Serial.print(...);
    }
    should do the trick, I think.
  32. 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...
  33. Replies
    24
    Views
    1,237

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

    Good to hear that you've got it working.
  35. 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,...
  36. Replies
    7
    Views
    836

    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!
  37. 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.
  38. 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:...
  39. 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...
  40. 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...
  41. 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...
  42. DNS or hosting snafu, perhaps? It's working here...

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

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

    Digikey now has stock of the PSRAM chip.
  46. 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))) {
    .
    .
  47. Replies
    16
    Views
    1,444

    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...
  48. Replies
    16
    Views
    1,444

    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...
  49. Replies
    16
    Views
    1,444

    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...
  50. Replies
    16
    Views
    1,444

    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...
Results 1 to 50 of 121
Page 1 of 3 1 2 3