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. No. For Teensy 4.1, all you need is...

    No. For Teensy 4.1, all you need is Wire2.begin(), because pins 24 & 25 are the default pins for Wire2.

    After begin, you must use "Wire2", not "Wire", for all communication.

    If using a library...
  2. How do TeraTerm and Putty handle unplugging the...

    How do TeraTerm and Putty handle unplugging the USB cable while Teensy is connected? Do they consume excessive CPU and/or get stuck?
  3. Oh I'm so glad to hear this. Sounds like I might...

    Oh I'm so glad to hear this. Sounds like I might be saved from having to run Windows 11. ;)




    Sadly, the only workaround I can imagine involves polling, which fundamentally has a trade-off...
  4. Do you get the "Access is denied" error if you...

    Do you get the "Access is denied" error if you close the serial port in TeraTerm or Putty before attempting to upload with Arduino?
  5. Looks like I might finally have to get a machine...

    Looks like I might finally have to get a machine capable of running Windows 11.

    But first I have a couple (ugly) ideas for getting around the unreliable arrival of WM_DEVICECHANGE messages. ...
  6. Does killing the serial-discovery.exe process...

    Does killing the serial-discovery.exe process between starting the IDE and pressing Teensy's pushbutton make any change?
  7. I'm running Defragster's sketch from msg #7...

    I'm running Defragster's sketch from msg #7.

    To reproduce the problem, after uploading and opening the serial monitor (with Teensy Port selected), I quit and restart the IDE. When the IDE...
  8. Tried turning off "Arduino: Check For Updates". ...

    Tried turning off "Arduino: Check For Updates". At least for the problem I'm able to reproduce, made no difference.

    Likewise, trying quickly after starting the IDE versus waiting a minute for it...
  9. I'm continuing to investigate this problem. ...

    I'm continuing to investigate this problem. Seems like something is causing Windows WM_DEVICECHANGE messages to be delayed or sometimes not arrive at all, which plays havoc with teensy-discovery.exe...
  10. Some of those problems sound like the bugs in...

    Some of those problems sound like the bugs in pre-10 versions of Windows.

    Thankfully Microsoft finally shipped pretty good USB drivers with Windows 10.
  11. This page has the Teensy Wire library...

    This page has the Teensy Wire library documentation.

    https://www.pjrc.com/teensy/td_libs_Wire.html

    Scroll down to "Pin Configuration"

    Don't use pinMode() after Wire.begin(), as it will...
  12. Replies
    9
    Views
    611

    I photo etched a lot of PCBs in the 1990s. Made...

    I photo etched a lot of PCBs in the 1990s. Made a light exposure table with UV florescent tubes in 1989, and even built an "acid swishing machine" in 1992 with the stepper motors from old 8 inch...
  13. Indeed, so much shorthand is one of the things...

    Indeed, so much shorthand is one of the things that also confuses me at times.
  14. Very strange, I can only reliably reproduce the...

    Very strange, I can only reliably reproduce the problem once after restarting the IDE. If I close and reopen the serial monitor, it's able to reconnect after every button-triggered upload. Seems to...
  15. I'm running the code from msg #7. I do not fully...

    I'm running the code from msg #7. I do not fully understand all the instructions and description of the problem.

    But I was able to reproduce the issue (only on Windows) where sometimes the serial...
  16. Replies
    4
    Views
    140

    Maybe "Power Up Sequence" on this page can help?...

    Maybe "Power Up Sequence" on this page can help?

    https://www.pjrc.com/store/ic_mkl02_t4.html

    Be sure to click the little buttons above or below the schematic...
  17. This question has come up several times this...

    This question has come up several times this year.

    Maybe we should add an example to the SD library to demonstrate high speed writing with use of a large buffer?
  18. I changed all the examples with .pde to .ino in...

    I changed all the examples with .pde to .ino in the copy for Teensy.

    Or at least I thought I did. If you see any I missed, please let me know?
  19. Replies
    4
    Views
    198

    Click File > Preferences. The first item on the...

    Click File > Preferences. The first item on the Settings panel should be "Sketchbook location". Whatever pathname you see, I believe you're supposed to create a "libraries" folder at that location...
  20. Could be SoftwareSerial. On Teensy 3 & 4 the...

    Could be SoftwareSerial.

    On Teensy 3 & 4 the SoftwareSerial library uses the actual hardware if you choose pins which have hardware serial. So try something like this:


    SoftwareSerial...
  21. Replies
    6
    Views
    263

    I really want to figure out what's going wrong. ...

    I really want to figure out what's going wrong. Would you be willing to run some tests?
  22. Replies
    9
    Views
    417

    Yes. Documentation for all the possible audio...

    Yes. Documentation for all the possible audio interfaces is in the audio library design tool.

    https://www.pjrc.com/teensy/gui/

    As you click on the features on the left side panel, or drag them...
  23. Replies
    2
    Views
    129

    Yes. In fact, the next batch of audio shields...

    Yes. In fact, the next batch of audio shields will use the 20 pin part, since the 32 pin version is unavailable.




    Just connect the pins with the same signal names. The bottom side pad is...
  24. Replies
    5
    Views
    225

    Ok, I know this sounds strange, but trust me... ...

    Ok, I know this sounds strange, but trust me...

    Use Boards Manager to install 1.57.1. It should solve the FQBN error. Then use Boards Manager to go back to 0.58.2. You should see the FQBN error...
  25. I was able to reproduce the problem. Looks like...

    I was able to reproduce the problem. Looks like it's not just Teensy, as I was able to see it with Arduino Leonardo.

    I created this little demo video. Does this look like the same problem...
  26. I searched for "serial monitor" and read through...

    I searched for "serial monitor" and read through titles of 61 open issues. The only one I found that seems sort of close is 1508.

    https://github.com/arduino/arduino-ide/issues/1508

    Mostly just...
  27. Arduino has opened issue #1772 regarding this...

    Arduino has opened issue #1772 regarding this problem (Upload menu disabled, not the new thread about lack of serial monitor screen refresh)

    https://github.com/arduino/arduino-ide/issues/1722
    ...
  28. Info here: ...

    Info here:

    https://www.pjrc.com/arduino-ide-2-0-0-teensy-support/

    The install process using Arduino 2.0.x Boards Manager installs a copy of all the same libraries as you would get from the old...
  29. Replies
    37
    Views
    6,901

    The short answer is no, we really don't know when...

    The short answer is no, we really don't know when we'll be able to get Teensy 3.2 back in stock.

    We ordered a large number of Kinetis chips in 2021. Latest info shows NXP will deliver about 15%...
  30. Insight about the possible cause is nice, but...

    Insight about the possible cause is nice, but what's really needed is clearly described steps to reproduce the problem. If I can't reproduce it, odds pretty slim it'll ever get fixed.

    Especially...
  31. Upload definitely could not work at all, not even...

    Upload definitely could not work at all, not even begin, if the K66 chip is damaged.
  32. Replies
    3
    Views
    212

    Just a blind guess, since I can't see the rest of...

    Just a blind guess, since I can't see the rest of your program, but perhaps you're using FastLED with the default WS2812 driver which blocks interrupts? It's known to block incoming serial and...
  33. Replies
    5
    Views
    307

    Can't see the photo. Google wants a login just...

    Can't see the photo. Google wants a login just to view. Can you show it here in a message? Click the "insert image" button here on the forum to add it.

    Good news is NXP delivered more chips. ...
  34. Replies
    5
    Views
    194

    Maybe you're looking at "idle" (CPU not running)...

    Maybe you're looking at "idle" (CPU not running) current rather than "active"?

    Also pay close attention to the description of test conditions. Atmel specifies "active" current with all...
  35. The old PCB has 3 capacitors and 1 resistor. But...

    The old PCB has 3 capacitors and 1 resistor. But it's really 2 pairs of parts in parallel.

    The ones joining the grounds were completely unnecessary.

    The other pair became just a single 0.1uF...
  36. Replies
    2
    Views
    265

    The PWM pins can generate waveforms that are an...

    The PWM pins can generate waveforms that are an integer divide of the peripheral clock, which is 150 MHz when Teensy 4.1 runs at 600 MHz.

    So you can get 25 MHz with analogWriteFrequency() and...
  37. Ethernet magjacks have many different pinouts. ...

    Ethernet magjacks have many different pinouts. There is no official or de-facto standard.

    During Teensy 4.1 development, we used UDE RB1-125BAG1A, which has a completely different pinout from...
  38. Which ethernet magjack did you solder to your...

    Which ethernet magjack did you solder to your PCB?

    Design looks correct for Cetus J1B12111CCD or Link-PP LPJ4012AHNL (the 2 possible parts used on the ethernet kit - PJRC has used both of these...
  39. Maybe you're experiencing this bug? ...

    Maybe you're experiencing this bug?

    https://forum.pjrc.com/threads/71370-Teensy4-1-reading-from-Serial-Monitor-of-Arduino-IDE?p=316273&viewfull=1#post316273
  40. Replies
    13
    Views
    482

    Again, answers about "how" and "why" over the...

    Again, answers about "how" and "why" over the internet are usually just blind guesswork.

    But generally speaking, the BGA chips can handle a pretty incredible amount of heat if it is uniform across...
  41. To achieve fast write speeds, you will need to...

    To achieve fast write speeds, you will need to collect data into buffers in memory and write in fairly large chunks. 4096 bytes per write should work well with A1 & A2 cards. Larger sizes are...
  42. Replies
    5
    Views
    258

    Arduino 2.0.x does not support "portable mode" as...

    Arduino 2.0.x does not support "portable mode" as Arduino 1.8.x did.

    It has been requested here:

    https://github.com/arduino/arduino-ide/issues/122

    I can't speak for Arduino, whether they...
  43. Rather than pour a lot more time into this issue,...

    Rather than pour a lot more time into this issue, which is probably in the Arduino IDE code, I'm going to "solve" it by detecting when "Serial ports" was used to select Teensy. Future versions will...
  44. Replies
    13
    Views
    482

    I hope you can understand I'm only (sometimes)...

    I hope you can understand I'm only (sometimes) able to answer "what" on these sorts of over-the-internet hardware troubleshooting but rarely "how" or "why" things went wrong.

    In this case, the...
  45. Replies
    13
    Views
    482

    This is very likely caused by damage to the flash...

    This is very likely caused by damage to the flash memory chip, or connection between the flash chip and IMXRT processor.

    On Teensy 4.1 the flash chip is very close to I/O pins 24 and 26. Any...
  46. @Defragster - please start a new thread regarding...

    @Defragster - please start a new thread regarding any issues other than this problem where Arduino 2.0.2's Upload becomes disabled. Maybe edit msg #13 & msg #14 to be just a link to that new thread?...
  47. Ok, I read the Arduino forum thread and played...

    Ok, I read the Arduino forum thread and played with this more.

    It seems the problem depends on whether you select "Serial ports" or "teensy ports".

    29818

    Quick fix, just select the "teensy...
  48. I tried uploading the code from msg #16...

    I tried uploading the code from msg #16 to a Teensy 4.1 on Windows 10 with Arduino 2.0.2 and Teensyduino 1.57.1. I uploaded many times with the serial monitor open, but I could not reproduce any...
  49. Teensy LC lacks the ARM DWT hardware. An #ifdef...

    Teensy LC lacks the ARM DWT hardware. An #ifdef check would be needed to not compile it with Teensy LC.
  50. Can you be more specific about "not detected by...

    Can you be more specific about "not detected by laptop at all". Remember, nobody can see your screen or see which things you are attempting and the results your observing. Please try to be specific...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4