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.15 seconds.

  1. Definitely does work with arduino-cli. ...

    Definitely does work with arduino-cli.


    ./arduino-cli monitor -v --port usb16/16-1/16-1.2

    Tested here with a Teensy 4.1 running RawHID. Haven't checked MTP.
  2. So far I've been focusing only on arduino-cli. ...

    So far I've been focusing only on arduino-cli. In theory the entire 2.0 IDE is supposed to be built on top of arduino-cli. In practice, this stuff is still pretty new and probably has a lot of...
  3. Turns out all hardware detection needs to be on...

    Turns out all hardware detection needs to be on the same thread in MacOS, because it's all based on "run loop" dispatch built deep into MacOS. So if you want to know when the initial detection of...
  4. Right now I'm working on a MacOS port for the...

    Right now I'm working on a MacOS port for the hardware discovery tool. Hope to at least give Windows a first look later today, to at least get an idea of how much work it's going to be.

    For these...
  5. Use the multiplier effect for amplitude...

    Use the multiplier effect for amplitude modulation.
  6. Good news. I've been working on arduino-cli...

    Good news. I've been working on arduino-cli support recently. So far only an experimental Linux x86_64 version is available. Here is the package index URL.
    ...
  7. I'm pretty sure the answer is yes, it almost...

    I'm pretty sure the answer is yes, it almost certainly does remove those bytes from the buffer is it reads them.

    But I hope you can understand this question is about about the precise behavior of...
  8. Another completely blind guess... or really, just...

    Another completely blind guess... or really, just mentioning a problem we've seen from time to time when people build projects with serial-to-serial communication between microcontrollers.

    If the...
  9. Replies
    1,016
    Views
    83,122

    You can store files in the portion of flash...

    You can store files in the portion of flash memory which isn't used for your code and isn't reserved eeprom emulation. Most program weigh in well under 1 MByte, so typically the majority of that...
  10. If you look at the setSCK code.... ...

    If you look at the setSCK code....

    https://github.com/PaulStoffregen/SPI/blob/574ab8c7a8a45ea21cc56dcc6b7361da90868e86/SPI.cpp#L533

    You can see it does write to sck_pin_index even if the...
  11. Does "found" mean you actually tried...

    Does "found" mean you actually tried SPI.setSCK(14) before starting that library?
  12. On the original question, for Teensy 3.2, I...

    On the original question, for Teensy 3.2, I believe you would want the ISF bit in the "PORT" register for whatever pin you're using. Like the similar bit for Teensy 4.x, you write a 1 to clear the...
  13. The pinout card guidance is conservative and...

    The pinout card guidance is conservative and mostly based on concern over heat dissipation.

    Adding a capacitor might help. But taken too far, it might also impact startup behavior by requiring a...
  14. This thread has some of wrong assumptions about...

    This thread has some of wrong assumptions about how the bootloader works. Maybe that's harmless, or maybe it's leading to wrong conclusions? So here's a quick attempt to clear up a few. Not sure...
  15. My gut feeling is you might be suffering from a...

    My gut feeling is you might be suffering from a power related issue. Teensy 4.1's processor alone at 600 MHz consumes about 100mA. The ethernet hardware consumes a significant amount of power. ...
  16. Yes, recently edited, also with a link to the...

    Yes, recently edited, also with a link to the thread about how to enable faster than 6 Mbit baud rates.
  17. Serial1 will default to pins 0 & 1. So no...

    Serial1 will default to pins 0 & 1. So no worries on PSRAM. Only a problem if you use Serial1.setRX(52) or Serial1.setTX(53) to switch to the alternate pins.

    Full hardware serial documentation...
  18. Replies
    26
    Views
    1,414

    First, the easy question: No, these aren't...

    First, the easy question:



    No, these aren't the cause of any problem. At most they can be a symptom of some problem. But often they don't mean anything at all.

    Windows has a very simple...
  19. If it does work, remember to set Tools > CPU...

    If it does work, remember to set Tools > CPU Speed to 528 MHz (or less) since the industrial temp version is only rated for 528 MHz.
  20. A1 (pin 15) should be usable. If you...

    A1 (pin 15) should be usable.




    If you want to reclaim A6, A7, A9, you could use I2S2 instead of I2S1. But then you'll need to disconnect the 5 I2S signals from their normal pins and use...
  21. Replies
    21
    Views
    525

    Before you completely give up on those boards,...

    Before you completely give up on those boards, maybe trying them with your Linux machine (assuming it really is Linux running natively, not inside a VM). Or even with another Windows machine.
    ...
  22. All that sounds pretty reasonable. The capacitor...

    All that sounds pretty reasonable. The capacitor needs to be a high frequency ceramic type, but the actual capacitance isn't critical. 22nF works just as well as 0.1uF.
  23. Replies
    21
    Views
    525

    I uploaded your HEX file several times to a...

    I uploaded your HEX file several times to a Teensy 3.2 here. Every time, my computer (running Ubuntu 20.04 Linux) properly detected the serial port (as /dev/ttyACM0, the name normally used on...
  24. Yes, this is possible. But you will need to...

    Yes, this is possible. But you will need to access hardware registers directly to do it, since no Arduino functions are defined for this purpose. The specific register names and details depend on...
  25. Replies
    21
    Views
    525

    put it into a zip file and try attaching the zip...

    put it into a zip file and try attaching the zip to your message
  26. Replies
    21
    Views
    525

    If you'd like me to check, you can post your HEX...

    If you'd like me to check, you can post your HEX file and I'll program it onto a Teensy 3.2 here. To get the hex file, you can use click Sketch > Export Compiled Binary. Or you can turn on verbose...
  27. Replies
    21
    Views
    525

    Probably not. To really mess up a Teensy 3,...

    Probably not.

    To really mess up a Teensy 3, you need to craft a very special program which both erases a part of the flash memory, and then programs it. If you change the FSEC and FOPT bytes in...
  28. I'm guessing this is Teensy 4.1? Usually...

    I'm guessing this is Teensy 4.1?

    Usually shorting an output pin to an unused pin is fine. On Teensy 4.1 the unused pins default to a weak "keeper" circuit. You might use pinMode(38,...
  29. Are you confident all the pins are still...

    Are you confident all the pins are still connected between your Teensy and the audio shield? This problem really sounds like what happens when 1 or more wire between the two boards is disconnected.
  30. But perhaps that page has slightly outdated info...

    But perhaps that page has slightly outdated info "Teensy Loader is not able to detect the capability of standard Teensy 4.0 or 4.1 boards". More precisely, it can't detect the security capability of...
  31. Best guess is an old Teensy 4.1, manufactured...

    Best guess is an old Teensy 4.1, manufactured before about June 2021. You said "also brand new", but does that mean recently purchased, or could these be older boards which simply haven't been...
  32. While it was meant for testing fault recovery on...

    While it was meant for testing fault recovery on Teensy 4, maybe the myFault examples can help give you some ideas?

    https://github.com/PaulStoffregen/MyFault
  33. Any idea which FTDI chip is used? Can you plug...

    Any idea which FTDI chip is used? Can you plug it into a PC and get the vid & pid numbers? Or edit USBHost_t36 to turn on USBHOST_PRINT_DEBUG and capture the huge amount of info it prints to the...
  34. FastLED.addLeds(leds,...

    FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);


    Use WS2812Serial. FastLED's normal WS2812B driver doesn't work well audio processing.

    In Arduino, click File > Examples >...
  35. Replies
    1,016
    Views
    83,122

    Some time ago I made minor updates to the my blue...

    Some time ago I made minor updates to the my blue breakout board (pictures on msg #184 and msg #547 and msg #671).

    The 14 pin display connector was changed to use pins 1 & 4 for D/C & CS, for the...
  36. Replies
    7
    Views
    177

    Sure sounds like connectivity between the chips...

    Sure sounds like connectivity between the chips has failed.

    From the verbose info log, your PC sends the request for Teensy to reboot into bootloader mode at 11:09:20.458


    11:09:20.458 (reboot...
  37. Make sure you're using the latest software, or at...

    Make sure you're using the latest software, or at least version 1.54. Older versions have the ancient Arduino SD library which can't possibly use more than 1 card. Newer versions use SdFat, where...
  38. Replies
    2
    Views
    113

    Sadly, the spambot editing was a big problem...

    Sadly, the spambot editing was a big problem before the 2 hour limit. We also had a couple cases where someone got frustrated and edited all their messages in a bad way, but that’s rare. I believe...
  39. Replies
    7
    Views
    177

    Two quick tests can confirm if the bootloader is...

    Two quick tests can confirm if the bootloader is running.

    First measure the voltage on the Program pin. It should be 3.3V, due to the internal pullup resistor in the bootloader chip. 3.3V...
  40. Replies
    4
    Views
    174

    Elsewhere on that page is documentation about the...

    Elsewhere on that page is documentation about the flush() function from Arduino's alpha versions, before the 1.0 release so many years ago. That's how long ago this page was originally written!
  41. Replies
    4
    Views
    174

    Ah, that web page writing is *very* old. I've...

    Ah, that web page writing is *very* old. I've just updated it.

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

    When it was written, many years ago, Teensy 4.0 & 4.1 did not exist. All the earlier...
  42. Replies
    4
    Views
    282

    With the chip shortages getting even worse,...

    With the chip shortages getting even worse, "soon" probably won't be anytime in the next 6 months!
  43. serialEvent() is called from yield(). It's not...

    serialEvent() is called from yield(). It's not called from interrupt context.

    I believe this problem does show that we need to improve Teensy's fork of SdFat to call yield() while it's spending...
  44. What you probably want is Arduino Portable mode...

    What you probably want is Arduino Portable mode. But unfortunately it's not supported on MacOS.

    I believe the main problem you're seeing is any library you install into...
  45. Normally you need 3 wires, RX1->TXD, TX1->RXD,...

    Normally you need 3 wires, RX1->TXD, TX1->RXD, and GND-GND.
  46. Replies
    5
    Views
    185

    You can get Teensy Loader without the Arduino...

    You can get Teensy Loader without the Arduino stuff.

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

    Just open the HEX or EHEX file with File > Open, since Arduino won't be there to tell it where the...
  47. Replies
    22
    Views
    534

    None of these audio DACs are really designed for...

    None of these audio DACs are really designed for DC output. They may give some DC offset when they're supposed to be zero.

    Most of them also use an internal voltage reference which is "stable"...
  48. Replies
    22
    Views
    534

    One other minor point. I2S is mentioned above. ...

    One other minor point. I2S is mentioned above. The audio shield with SGTL5000 chip always uses I2S.

    CS42448 can use either I2S or TDM. Normally TDM is used, because it requires fewer signals...
  49. Replies
    22
    Views
    534

    You can't just choose any spare pin. Only...

    You can't just choose any spare pin. Only certain pins can transmit digital audio.

    The pin functions are documented in 2 places. First is the pinout card, which comes with Teensy 4.1 and can...
  50. Maybe you're confusing 2 completely different...

    Maybe you're confusing 2 completely different things both named "event"?

    MTP has "events" which are 12 to 24 byte messages sent to the USB host. These messages inform the USB host when changes...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4