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. 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
  2. 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...
  3. 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 >...
  4. Replies
    1,009
    Views
    81,764

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

    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...
  6. 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...
  7. Replies
    2
    Views
    105

    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...
  8. Replies
    7
    Views
    119

    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...
  9. Replies
    4
    Views
    124

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

    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...
  11. Replies
    4
    Views
    231

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

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

    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...
  16. Replies
    22
    Views
    475

    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"...
  17. Replies
    22
    Views
    475

    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...
  18. Replies
    22
    Views
    475

    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...
  19. 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...
  20. Replies
    27
    Views
    8,400

    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
  21. 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.
  22. Replies
    3
    Views
    209

    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.
    ...
  23. 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...
  24. 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: ");
  25. 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...
  26. 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...
  27. 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.
  28. 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....
  29. 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...
  30. 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...
  31. 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 &...
  32. 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......
  33. 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.
  34. 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...
  35. 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()...
  36. Replies
    6
    Views
    253

    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...
  37. 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...
  38. Replies
    6
    Views
    253

    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?
  39. 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)
  40. Replies
    8
    Views
    158

    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...
  41. 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...
  42. 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?
  43. 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...
  44. 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...
  45. 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...
  46. Replies
    2
    Views
    347

    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...
  47. 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
  48. 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...
  49. 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. ...
  50. Replies
    2
    Views
    124

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4