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

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

    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...
  4. Replies
    19
    Views
    373

    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"...
  5. Replies
    19
    Views
    373

    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...
  6. Replies
    19
    Views
    373

    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...
  7. 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...
  8. Replies
    27
    Views
    8,312

    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
  9. 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.
  10. Replies
    3
    Views
    137

    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.
    ...
  11. 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...
  12. 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: ");
  13. 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...
  14. 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...
  15. 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.
  16. 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....
  17. 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...
  18. 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...
  19. 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 &...
  20. 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......
  21. 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.
  22. 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...
  23. 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()...
  24. Replies
    6
    Views
    230

    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...
  25. 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...
  26. Replies
    6
    Views
    230

    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?
  27. 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)
  28. Replies
    8
    Views
    138

    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...
  29. 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...
  30. 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?
  31. 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...
  32. 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...
  33. 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...
  34. Replies
    2
    Views
    275

    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...
  35. 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
  36. 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...
  37. 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. ...
  38. Replies
    2
    Views
    110

    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...
  39. 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...
  40. 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.
    ...
  41. 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,...
  42. 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...
  43. 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?
  44. 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.
  45. I have 2 of those W25N02KVZEIR chips left. ...

    I have 2 of those W25N02KVZEIR chips left. You're welcome to have them both. Just let me know how you want them... soldered to boards or loose in a bag?
  46. For global variables, I do not know of any way to...

    For global variables, I do not know of any way to use the convenient "string literal" syntax for a char pointer. I believe both of the ways you mentioned work, though using the fixed array size...
  47. Replies
    11
    Views
    235

    Recommend using Arduino 1.8.19 and Teensyduino...

    Recommend using Arduino 1.8.19 and Teensyduino 1.56, at least for testing. With PlatformIO, copies of old libraries are a common problem. So are variation in settings with INI files. Test with the...
  48. Yes. Just connect the cathode to ground. Of...

    Yes. Just connect the cathode to ground. Of course, use reasonable resistors, like 150 ohms or higher.
  49. I've updated the PT8211 page with schematics for...

    I've updated the PT8211 page with schematics for both T3 and T4 versions.

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

    Hopefully that helps?
  50. Replies
    10
    Views
    428

    More European links ...

    More European links

    https://www.tinytronics.nl/shop/en/development-boards/microcontroller-boards/teensy/teensy-3.5

    https://www.berrybase.de/dev.-boards/teensy/teensy-3.5-ohne-header
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4