Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 25 of 48

Thread: Teensy 3.6, after Reset SD Card does not always initialize.

Threaded View

  1. #1
    Senior Member
    Join Date
    Jan 2015
    Posts
    111

    Teensy 3.6, after Reset SD Card does not always initialize.

    Sorry if this is a well-known issue, I did do a quick search on google.

    For the past 2 weeks, I've been using the T3.6 in one of my projects. Basically, capturing images from an Arducam-Mini, and displaying on LCD, and also writing BMP and JPEG files to the SD card. The T3.6 is just great for this, as I am using 3 different SPI ports for the 3 peripherals [native SD card slot of course]. I was having very little luck with this lashup previously on the T3.1, due to SPI buss conflicts, although it works very well on regular Arduinos.

    All in all, I am very happy, as the monster clock on the T3.6 does image-processing quickly, and the monster RAM in the T3.6 allows me to capture complete 320x240 RGB565 images to RAM.

    In any case, the problem is as described in the title of this thread. Very often, when I reboot the T3.6 after uploading a sketch, the SD card will not initialize for the new run, and/or when I press Reset when the board is already powered-up. Therefore I have to power down the board, after which the SD Card always initializes properly. I am currently running the T3.6 at 240-MHz, but don't think that's the issue, as I've also seen the problem at 180-MHz. Also, I am using Teensyduino 1.32-beta2 over top Arduino IDE 1.6.13.

    FWIW, I can remember also having this same problem with the SD Card on Arduinos, going back for 2-3 years.

    I am using the regular example listfiles, Cardinfo, and ReadWrite sketches that come with Teensyduino, and nothing fancy, and am embedding them into my [rather large, 81KB Flash and 172KB RAM] program.
    Last edited by oric_dan; 01-03-2017 at 02:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •