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

  1. 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...
  2. 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...
  3. Replies
    1,016
    Views
    82,936

    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...
  4. 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...
  5. Does "found" mean you actually tried...

    Does "found" mean you actually tried SPI.setSCK(14) before starting that library?
  6. 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...
  7. 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...
  8. 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...
  9. 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. ...
  10. 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.
  11. 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...
  12. Replies
    26
    Views
    1,404

    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...
  13. 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.
  14. 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...
  15. Replies
    21
    Views
    509

    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.
    ...
  16. 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.
  17. Replies
    21
    Views
    509

    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...
  18. 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...
  19. Replies
    21
    Views
    509

    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
  20. Replies
    21
    Views
    509

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

    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...
  22. 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,...
  23. 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.
  24. 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...
  25. 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...
  26. 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
  27. 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...
  28. 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 >...
  29. Replies
    1,016
    Views
    82,936

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

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

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

    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...
  34. Replies
    4
    Views
    166

    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!
  35. Replies
    4
    Views
    166

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

    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!
  37. 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...
  38. 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...
  39. Normally you need 3 wires, RX1->TXD, TX1->RXD,...

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

    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...
  41. Replies
    22
    Views
    529

    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"...
  42. Replies
    22
    Views
    529

    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...
  43. Replies
    22
    Views
    529

    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...
  44. 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...
  45. Replies
    27
    Views
    8,435

    This is the page with the bootloader chip. ...

    This is the page with the bootloader chip.

    https://www.pjrc.com/store/ic_mkl02_t4.html
  46. As of version 1.56, the only way would be to edit...

    As of version 1.56, the only way would be to edit platform.txt to disable this operation.
  47. Replies
    3
    Views
    238

    Whew, so many questions. Here's a quick try to...

    Whew, so many questions. Here's a quick try to answer them all.

    edit - looks like Defragster was faster! ;)




    RAM2 is writable. As far as bus access is concerned, flash is read only.
    ...
  48. Yes, indeed. The variable "LocalPointer" is...

    Yes, indeed. The variable "LocalPointer" is already the address you want to print. By using "&LocalPointer", you're telling the compiler to print the address where the address of your data is being...
  49. Probably like this. int32_t...

    Probably like this.



    int32_t TestChunkMemory[64];
    uint32_t TestChunkAdress=(uint32_t)&TestChunkMemory[0];

    void setup() {
    while (!Serial) ;
    Serial.print("Local adress: ");
  50. Yes, the Octo28 adaptor uses those original 8...

    Yes, the Octo28 adaptor uses those original 8 pins. If you pair it together with the audio shield (rev D) or any other use of I2S1, you'll get 3 pins conflicting.

    Ideally we would make another...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4