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

  1. Replies
    2
    Views
    83

    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...
  2. Replies
    4
    Views
    61

    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...
  3. Replies
    4
    Views
    114

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

    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...
  5. Replies
    4
    Views
    224

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

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

    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...
  10. Replies
    22
    Views
    471

    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"...
  11. Replies
    22
    Views
    471

    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...
  12. Replies
    22
    Views
    471

    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...
  13. 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...
  14. Replies
    27
    Views
    8,385

    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
  15. 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.
  16. Replies
    3
    Views
    199

    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.
    ...
  17. 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...
  18. 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: ");
  19. 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...
  20. But maybe we should just support 255 byte...

    But maybe we should just support 255 byte filename length?

    Any chance you could try some of Defragster's huge file sets with LittleFS formatted to allow 255 vs 39 bytes. Does it make any real...
  21. This needs to be done inside LittleFS. It can't...

    This needs to be done inside LittleFS. It can't go into MTP_Storage, because MTP_Storage doesn't "know" these filesystem-specific limitations.
  22. If this matters, we could also check for...

    If this matters, we could also check for OpenSession in the timer.




    Agreed, I've never seen Windows transmit CloseSession. We would also need to look at the something like usb_configuration....
  23. It wasn't compiling after I synced to the latest...

    It wasn't compiling after I synced to the latest changes, so I put those #if lines back in.

    If it's causing you trouble now, I could just install MemoryHexDump here as a short-term solution. But...
  24. On Teensy 4.x, OctoWS2811 supports use of a...

    On Teensy 4.x, OctoWS2811 supports use of a custom pin list. See the Teensy4_PinList example for details. Unfortunately, (so far) FastLED's API doesn't provide any way to specify the pin list, or...
  25. OctoWS2811 defaults to use of pins 2, 14, 7, 8,...

    OctoWS2811 defaults to use of pins 2, 14, 7, 8, 6, 20, 21, 5 on all Teensy models.

    AudioOutputI2S uses pins 21, 23, 7, 20 on Teensy 4.0.

    27236

    27237

    Hopefully a deep dive into DMA &...
  26. Yes, FastLED can use OctoWS2811 as a "driver", so...

    Yes, FastLED can use OctoWS2811 as a "driver", so you use FastLED to do all the color & animation stuff and it uses OctoWS2811 to actually talk to the hardware. You get the best of both worlds......
  27. The 4682 product should work fine with Teensy...

    The 4682 product should work fine with Teensy 4.1.

    The 254 one might need slower SPI clock, because of delay from its buffer chip.
  28. I've updated the SdFat_Usage example to show how...

    I've updated the SdFat_Usage example to show how to use SPI1.

    https://github.com/PaulStoffregen/SD/commit/9912b57a0fa05de883ae8a0953386cbaf054b37b

    Here is a ready to go copy.



    /*
    SdFat...
  29. First, make sure you have the latest Teensyduino...

    First, make sure you have the latest Teensyduino (version 1.56). Versions older than 1.54 can't possibly use SPI1. In Arduino, click Help > About to check.

    You'll need to use the SdFat begin()...
  30. Replies
    6
    Views
    252

    Just to answer your "idea of what is going on"...

    Just to answer your "idea of what is going on" question, from the info you've given, sounds like the board is mistakenly going into bootloader mode as if you had pressed the pushbutton. So perhaps...
  31. Can you give me a link to DiskIOV2? Maybe 1 or...

    Can you give me a link to DiskIOV2?

    Maybe 1 or more functions which should be FLASHMEM are PROGMEM? Normally FLASHMEM is for functions and PROGMEM is for variables. But if you have no PROGMEM...
  32. Replies
    6
    Views
    252

    Might be a hardware problem. Did you buy this...

    Might be a hardware problem. Did you buy this Teensy 3.2 direct from PJRC, or through a distributor?
  33. I ran it here on a Teensy 3.6 connected to a...

    I ran it here on a Teensy 3.6 connected to a Raspberry Pi 4. Seems to work fine.

    27232

    (fwiw, this screenshot is a window on my Ubuntu 20.04 PC desktop machine, remotely logged into the Pi)
  34. Replies
    8
    Views
    157

    TeensyControls is an X-Plane plugin. It runs on...

    TeensyControls is an X-Plane plugin. It runs on your Mac or PC, not on Teensy.

    Then for the Teensy side, you click Tools > USB Type and select Flight Sim Controls. There is no additional library...
  35. Seems reasonable to support a bool operator like...

    Seems reasonable to support a bool operator like the other USB device classes.

    It should probably be based on whether we've received OpenSession and not CloseSession. Windows sends OpenSession...
  36. I'm not familiar with how LittleFS actually...

    I'm not familiar with how LittleFS actually stores the filename. Do you know? Does increasing to 256 chars cost much?
  37. I tried but could not reproduce this issue. ...

    I tried but could not reproduce this issue.

    First I renamed a file on the SD card to "06abc678901234567890123456789.jpg". Then I copied to the Windows desktop, then copied it to the SPI flash...
  38. Yes, Frank is correct, at least a CRC should be...

    Yes, Frank is correct, at least a CRC should be used. I believe Defraster's testing involves a full binary compare of the copied files against the originals.

    But the (old) problem of going too...
  39. I see the audio shield in your photo. Please be...

    I see the audio shield in your photo. Please be aware the audio shield will not respond to I2C without MCLK. The chip remains in a low power mode and simply can not work at all until it has a clock...
  40. Replies
    2
    Views
    338

    Not EOL. Teensy 3.2, 3.5, 3.6 are only...

    Not EOL. Teensy 3.2, 3.5, 3.6 are only temporarily out of stock, due to chip shortage. Chips have been ordered (they were actually ordered just slightly over 1 year ago, in January 2021). These...
  41. I didn't do anything in the rewrite to address...

    I didn't do anything in the rewrite to address Windows becoming impatient if the write speed is under ~85 Kbytes/sec
  42. Also, and hopefully this isn't too "obvious", the...

    Also, and hopefully this isn't too "obvious", the default Serial1 receive buffer is only 64 bytes. Unless you've used attachRts() and whatever is sending the data stops when RTS signals Teensy's...
  43. I don't know why. I would like to investigate,...

    I don't know why. I would like to investigate, but I need a reasonably small test program to reproduce the problem. I looked briefly as your ZIP file. It is 21 files with a total of 7758 lines. ...
  44. Replies
    2
    Views
    123

    Maybe you're using an older version of...

    Maybe you're using an older version of Teensyduino or FastLED? Timing bugs were fixed some time ago, so you should check that you're running Teensyduino 1.56. In Arduino, click Help > About to see...
  45. We need to keep in mind these tests copying...

    We need to keep in mind these tests copying thousands of tiny files are not the expected usage pattern. Slow performance and inefficient use of space are an acceptable result. If we can improve...
  46. I committed support for UTF8, so filenames,...

    I committed support for UTF8, so filenames, storage names and other strings can have international characters and symbols.
    ...
  47. Not really odd at all. 27208 30 MHz is the...

    Not really odd at all.

    27208

    30 MHz is the maximum rated SPI frequency. Anything over 30 MHz is overclocking, which often works, but should not be expected 100% reliable!

    Even at 30 MHz,...
  48. The I2S mic is best, since it doesn't need CPU...

    The I2S mic is best, since it doesn't need CPU time to low pass filter the bitstream.

    This should be the required connection.

    SCK -> BCLK1 -> Arduino 21 -> M.2 pin 50
    WS -> LRCLK1 -> Arduino...
  49. I haven't tried to use them yet. I believe they...

    I haven't tried to use them yet. I believe they may be wired to the wrong pins?
  50. I made a couple commits to fix issues that come...

    I made a couple commits to fix issues that come up with the Android File Transfer app on MacOS. Files can now be copied from Mac to Teensy.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4