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

Thread: Advice on using SD card 3.5 teensy for bootup

  1. #1
    Member
    Join Date
    Jul 2018
    Location
    El Paso, TX
    Posts
    80

    Advice on using SD card 3.5 teensy for bootup

    Near the finish line on my art project. I need to up-load a compiled INO program to the SD card that will down load to the teensy 3.5 on power/boot up. That program will call a couple of bitmap pictures that display on the LED panel. To be clear - I need the teensy to power-up and run the read bitmap picture program; the BMPs are on the SD card and load fine if I load the program using USB. This will make the LED panel a stand-a-lone lighted painting. Any ideas would be greatly appreciated.

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,810
    Sounds like you want some form of a text file of commands or actions to load and run on powerup from the SD card? A compiled IO - can't be loaded and executed from SD card. The sketch would be already programmed and look for the command file and act accordingly.

  3. #3
    Member
    Join Date
    Jul 2018
    Location
    El Paso, TX
    Posts
    80
    What I need is to insure that the teensy program does not get corrupted by a power failure or some other interruption. The program runs fine once I up-load it so everything is working now. However over a period of time something will happen and I need to find a way to reload that program in an automatic way when that happens.

  4. #4
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    2,921
    Quote Originally Posted by johnwatterson View Post
    What I need is to insure that the teensy program does not get corrupted by a power failure or some other interruption. The program runs fine once I up-load it so everything is working now. However over a period of time something will happen and I need to find a way to reload that program in an automatic way when that happens.
    Right now, the only supported method is via USB. There are various other solutions people have thought about and some implemented with varying degrees of success.

    The simplest approach IMHO, is not to depend on reloading the program in the Teensy, but instead have the Teensy read the files on the SD card, and display BMP's (or other image formats), and possibly a simple text file that contains directions which the Teensy parses.

    One solution might be running micro python on the Teensy. There was a port in 2016 to the Teensy 3.2, but I don't know if it is actively maintained:

  5. #5
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,424
    The Teensy-flash will not get corrupted. Never heard that. And why do you think the flash on a card is better?
    Then, the loader that loads from SD would have to be where? Right.. the teensy-flash.

  6. #6
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,810
    Quote Originally Posted by Frank B View Post
    The Teensy-flash will not get corrupted. Never heard that. And why do you think the flash on a card is better?
    Indeed, the Teensy is likely to power up and function without needing to reload code longer than some number of flash cards will be usable. If something breaks that - there would likely be another bigger problem.

  7. #7
    Member
    Join Date
    Jul 2018
    Location
    El Paso, TX
    Posts
    80
    Thank you for the input. Really helpful and right to the point. Teensy is probably more reliable than the SD card. I am using both since the the BMP does get loaded from the SD card. Great feedback. Thanks.

Posting Permissions

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