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. 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.
    ...
  2. Replies
    1
    Views
    51

    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...
  3. No, MK66FN2M0VMD18 will not work.

    No, MK66FN2M0VMD18 will not work.
  4. 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. ...
  5. Replies
    103
    Views
    48,627

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

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

    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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. Replies
    11
    Views
    196

    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...
  12. Replies
    11
    Views
    196

    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.
  13. Replies
    11
    Views
    196

    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...
  14. Replies
    11
    Views
    196

    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...
  15. Replies
    11
    Views
    196

    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...
  16. Replies
    11
    Views
    196

    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.
  17. Replies
    11
    Views
    196

    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...
  18. Replies
    5
    Views
    104

    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...
  19. Replies
    2
    Views
    117

    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...
  20. Replies
    8
    Views
    261

    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...
  21. Replies
    8
    Views
    261

    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...
  22. 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...
  23. 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...
  24. 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...
  25. The pinlist example might help. In Arduino,...

    The pinlist example might help. In Arduino, click File > Examples > OctoWS2811 > Teensy4_PinList.
  26. 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...
  27. Replies
    11
    Views
    1,285

    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...
  28. Glad you found it. These sorts of little details...

    Glad you found it. These sorts of little details can be quite a challenge!
  29. 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...
  30. Replies
    8
    Views
    347

    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.
  31. Replies
    2
    Views
    100

    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...
  32. 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.
  33. Sorry, Teensy doesn't support STM32F405RGT6.

    Sorry, Teensy doesn't support STM32F405RGT6.
  34. Replies
    96
    Views
    2,324

    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. ...
  35. Replies
    7
    Views
    165

    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...
  36. Replies
    7
    Views
    165

    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.
  37. Replies
    7
    Views
    165

    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...
  38. 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...
  39. 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...
  40. 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
  41. Replies
    96
    Views
    2,324

    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.
    ...
  42. Replies
    96
    Views
    2,324

    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...
  43. Replies
    96
    Views
    2,324

    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)).
    ...
  44. Replies
    10
    Views
    281

    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...
  45. Many more Teensy 4.1 are coming in October. NXP...

    Many more Teensy 4.1 are coming in October. NXP recently said they would send chip for more Teensy 4.0 in November, so we should have more 4.0 in late November or early December.
  46. Replies
    2
    Views
    95

    Install Teensyduino 1.57. This is a known...

    Install Teensyduino 1.57.

    This is a known issue with 1.56 and earlier, where having an Arduino IDE 2.0.0 install on the same PC interferes with Arduino 1.8.x using Teensyduino 1.56 or earlier.
    ...
  47. The same Tools > USB Type menu exists for Teensy...

    The same Tools > USB Type menu exists for Teensy 4.0.

    If that doesn't fully solve your problem, we still might be able to help, but you need to show us enough to at least see the issue, and...
  48. Any chance you can post screenshots? I'm pretty...

    Any chance you can post screenshots? I'm pretty sure this is an Arduino IDE 2.0.0, but it's difficult to even begin to describe it without the ability to see what happened on the screen,...
  49. @PerT - if you have a moment, any thoughts on...

    @PerT - if you have a moment, any thoughts on this thread?

    https://forum.pjrc.com/threads/71112-Arduino-IDE-2-0-0-selection-USB-port-when-using-2-Teensy4-0-parallel

    Looks like IDE 2.0.0 is...
  50. I don't know why this is happening. But I can...

    I don't know why this is happening. But I can comment on this:



    08:28:08.084 (reboot 44): location = usb:80001/3/0/2


    This line in the log data means Arduino 2.0.0 told...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4