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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.13 seconds.

  1. Thanks for testing. Could I talk you into...

    Thanks for testing. Could I talk you into sending a pull request?
  2. There are a few different FreeRTOS ports. I'm...

    There are a few different FreeRTOS ports. I'm guessing you used this one?

    https://github.com/tsandmann/freertos-teensy

    Looks like it has an implementation of _gettimeofday() in...
  3. Really depends on the scope of words possible and...

    Really depends on the scope of words possible and editing.

    Deep knowledge of the SAMD timers (which I do not have) would be needed to add all the hardware abstraction defines. It's theoretically...
  4. The sei() function is meant for AVR, where a...

    The sei() function is meant for AVR, where a single bit manages whether interrupts can happen.

    ARM is much more sophisticated. Priority levels are the main mechanism which manages whether an...
  5. It isn't just 1 place. The answer depends on...

    It isn't just 1 place. The answer depends on which audio library objects you've instantiated and the order they where created, and of course which Teensy you're using.
  6. Sounds like you're working with a bare ILI9341...

    Sounds like you're working with a bare ILI9341 display rather than one on a PCB. Any chance for a photo? Might help people who later find this thread more quickly understand when this issue with...
  7. If you have a really old version of the software,...

    If you have a really old version of the software, and you're running Microsoft Windows, here are direct links to download the installers to update.
    ...
  8. Replies
    2
    Views
    80

    Usually best to call this _reboot_Teensyduino_()...

    Usually best to call this _reboot_Teensyduino_() function.

    https://github.com/PaulStoffregen/cores/blob/master/teensy4/usb.c#L215

    If the process changes in the future, this function will get...
  9. No, MK66FN2M0VMD18 will not work.

    No, MK66FN2M0VMD18 will not work.
  10. I believe on MacOS the files are stored in a...

    I believe on MacOS the files are stored in a "Library" folder which is in your home directory but hidden by MacOS Finder. You'll probably need to use Terminal and type "cd ~/Library" to get to it. ...
  11. Replies
    103
    Views
    48,642

    Yes, that's exactly what "-" rather than pins...

    Yes, that's exactly what "-" rather than pins numbers means, no CTS is available.
  12. Replies
    1
    Views
    126

    The 11880ms limit is due to a 16 bit integer...

    The 11880ms limit is due to a 16 bit integer which counts the number of 8 sample updates. 65535 * 8 / 44100 = ~11.89 seconds.

    But another limitation is small error which accumulates due to...
  13. That's not what happened, but it's easy to...

    That's not what happened, but it's easy to misinterpret this way.

    Arduino 1.8.x has complicated rules for where it will find files for boards and libraries. One of the places Arduino 1.8.x...
  14. Only 6 can be pressed at the same time, plus the...

    Only 6 can be pressed at the same time, plus the 4 modifier keys (shift, ctrl, alt, windows/cmd).

    Nearly all USB keyboards have this limitation. They all use the same protocol which supports only...
  15. Teensy's USB keyboard interface uses the same...

    Teensy's USB keyboard interface uses the same protocol as virtually all USB keyboards (top-tier gaming keyboards being the exception). The only real difference is the speed of "typing".

    Maybe...
  16. All sorts of unrelated problems are possible with...

    All sorts of unrelated problems are possible with low quality DC-DC converters. Especially the very small ones tend to not have enough capacitance at the input and output. Some people (including...
  17. Replies
    11
    Views
    203

    Another gotcha is PSWITCH. It will not work if...

    Another gotcha is PSWITCH. It will not work if simply wired to 3.3V. NXP's documentation about this quite misleading. It's not a simple active-high enable. A low to high transition is required...
  18. Replies
    11
    Views
    203

    Maybe not the answers you wanted, but hopefully...

    Maybe not the answers you wanted, but hopefully this gives you the info you need to get started, rather then wasting a lot of time on reverse engineering.
  19. Replies
    11
    Views
    203

    SWD absolutely will not work. All Teensy 4.1...

    SWD absolutely will not work. All Teensy 4.1 boards are permanently fuse configured for JTAG. NXP did not implement dynamic switch between SWD & JTAG as ARM's documentation says. It will only talk...
  20. Replies
    11
    Views
    203

    If you play with JTAG boundary scan, the IMXRT...

    If you play with JTAG boundary scan, the IMXRT chips have an undocumented bug were weird/wrong things happen if you stay in the various scan states for more than about 8 seconds. Parking in the...
  21. Replies
    11
    Views
    203

    If you do attempt this, here are the signal...

    If you do attempt this, here are the signal locations you'll need.

    29461

    BOOT0 needs to be connected to GND for normal operation.

    PSWITCH needs a low-to-high transition to turn on the 1.15V...
  22. Replies
    11
    Views
    203

    Teensy 4.1 uses JTAG, not SWD. It would in...

    Teensy 4.1 uses JTAG, not SWD. It would in theory be done if you solder more wires and use a JTAG adaptor. Just know that SWD can not work.
  23. Replies
    11
    Views
    203

    Teensy 4.0 & 4.1 schematics haven't been updated...

    Teensy 4.0 & 4.1 schematics haven't been updated for the U2 chip substitution. Realistically, they probably won't ever get updated. This U2 part is meant to be a temporary change until the original...
  24. Replies
    5
    Views
    118

    Quick answer would be no, or at least not known...

    Quick answer would be no, or at least not known to me.

    But some of these libraries, like ModbusRtu, do use specific pins depending on their config. Maybe start looking there?

    I can also say...
  25. Replies
    2
    Views
    125

    The reason why is really the intersection of 3...

    The reason why is really the intersection of 3 factors.

    1: NXP designed this way.

    2: Many difficult decisions had to be made about which of the chip's GPIO pins to bring to the outside edges of...
  26. Replies
    8
    Views
    268

    If the same code works when built with...

    If the same code works when built with Arduino+Teensyduino but fails when compiled with PlatformIO, that's an issue you should report to the PlatformIO developers on github. Of course they'll need a...
  27. Replies
    8
    Views
    268

    Two questions... Can you reproduce the problem...

    Two questions...

    Can you reproduce the problem without PlatformIO, only using Arduino IDE with Teensyduino 1.57 installed?

    Can you give us the Arduino sketch and Python code and any other...
  28. I can't help with PlatformIO. But I can at least...

    I can't help with PlatformIO. But I can at least answer some of your questions....




    You could just run the "teensy_secure" program manually, with the pathname of your HEX file and your...
  29. Sounds like you haven't yet tried or looked at...

    Sounds like you haven't yet tried or looked at the pinlist example?

    In Arduino, it's just a few mouse clicks away: File > Examples > OctoWS2811 > Teensy4_PinList.

    It's really not very...
  30. Very unlikely the bootloader (any version) is...

    Very unlikely the bootloader (any version) is causing a program to crash. While your program runs, the bootloader (all versions) watches for either a pushbutton press or a the processor to go into...
  31. The pinlist example might help. In Arduino,...

    The pinlist example might help. In Arduino, click File > Examples > OctoWS2811 > Teensy4_PinList.
  32. I expect the Arduino IDE to be so much smarter...

    I expect the Arduino IDE to be so much smarter than this!

    An error message like "Error: 13 INTERNAL: Error downloading tool" is correct on a technical level. But from a usability and UI design...
  33. Replies
    11
    Views
    1,290

    Yes, correct. Crystal oscillators use total...

    Yes, correct.

    Crystal oscillators use total capacitance on each pin twice the rating of the crystal (because the 2 capacitors are effectively in series relative to the crystal). Pin has approx...
  34. Glad you found it. These sorts of little details...

    Glad you found it. These sorts of little details can be quite a challenge!
  35. GD25Q16 is not on the list of LittleFS (for...

    GD25Q16 is not on the list of LittleFS (for Teensy) supported chips. Maybe it could work if it is similar enough to one of the Winbond chips, but that's just a guess. I really don't know anything...
  36. Replies
    8
    Views
    357

    Can you use Teensy 3.5? I have a few left over...

    Can you use Teensy 3.5? I have a few left over which were saved for special software testing.
  37. Replies
    2
    Views
    105

    Everything in this message is about signing for...

    Everything in this message is about signing for Microsoft Windows. Apple has a similar system for MacOS. Unlike Apple, for Microsoft delegates all the certificate stuff to 3rd party certificate...
  38. Difficult decisions has to be made about which...

    Difficult decisions has to be made about which features to make available in such a small size Teensy 4.0 circuit board.

    Teensy 4.1 brings out much capability with the extra space.
  39. Sorry, Teensy doesn't support STM32F405RGT6.

    Sorry, Teensy doesn't support STM32F405RGT6.
  40. Replies
    96
    Views
    2,366

    Today the Arduino prefs for compiler warnings...

    Today the Arduino prefs for compiler warnings aren't used. I'm not a fan of the "None" setting, which is the default, so when Arduino added this (years ago) I didn't bother to adopt it for Teensy. ...
  41. Replies
    7
    Views
    175

    Looked at the datasheet. Page 38 says the...

    Looked at the datasheet. Page 38 says the interrupt pin is open drain.

    You probably need to add a pullup resistor, like 4.7K to 10K. Or maybe using pinMode INPUT_PULLUP at the beginning of...
  42. Replies
    7
    Views
    175

    If pins 7 and 8 are shorted or interfering, and...

    If pins 7 and 8 are shorted or interfering, and pin 8 stays low, maybe your could could get into an infinite interrupt loop? Might be better to use FALLING instead of LOW with attachInterrupt.
  43. Replies
    7
    Views
    175

    I ran it here with nothing connected to the...

    I ran it here with nothing connected to the Teensy pins. These are the waveforms my scope sees on pins 7, 11, 12, 13.

    29423

    Looks like pin 7 is working as a chip select, though it might be...
  44. It's not overkill at all. The Interface_3x3...

    It's not overkill at all. The Interface_3x3 example is the correct way.

    The actual data format used by USB MIDI is not the same as traditional Serial MIDI. Messages are aligned to 32 bit...
  45. 2 meters of wire connected directly to a GPIO pin...

    2 meters of wire connected directly to a GPIO pin with a "no extra parts" design philosophy is a recipe for a product which seems to work at first but fails prematurely when installed in a less than...
  46. This is an uninstall option, but it's sort of...

    This is an uninstall option, but it's sort of hidden.

    Hover your mouse over "INSTALLED".

    29415

    It will change to "UNINSTALL".

    29416
  47. Replies
    96
    Views
    2,366

    One compiler warning I can't find a way to solve...

    One compiler warning I can't find a way to solve is this line in TeensyThreads Tests example:



    char x[128]; // use up some stack space


    Of course this gives an ununsed variable warning.
    ...
  48. Replies
    96
    Views
    2,366

    I'm a bit embarrassed to admit many of these...

    I'm a bit embarrassed to admit many of these compiler warnings have been with us for years on gcc 5.4.1. But warnings like misleading white space and string truncation are new. Maybe spending so...
  49. Replies
    96
    Views
    2,366

    Turns out the ATOMIC_BLOCK stuff really wants to...

    Turns out the ATOMIC_BLOCK stuff really wants to be inline, but with gcc 11.3.1 when optimizing for small code size (the default on Teensy LC) it isn't without __attribute__((always_inline)).
    ...
  50. Replies
    10
    Views
    286

    The "M" flash chip is required. "Q" version will...

    The "M" flash chip is required. "Q" version will not work.

    I don't understand why that would give 10 blinks. Something else is likely wrong, but I'm afraid I just can't even guess from the info...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4