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

Thread: Teensy LC - Is it possible to save to permanent Memory?

  1. #1

    Teensy LC - Is it possible to save to permanent Memory?

    This is a curiosity question and my searches provided no results - though they could be out there.

    Anyway what I am thinking and the question is can something be saved in the process of the program that will be retained after power cycling.

    For Example - I want to permanently calibrate an Analog Axis. So I set up a button to press and while pressed then the program reads the DAC to get an upper endpoint number.. The Teensy then would Save this number permanently in itself to to be used as the upper limit of the analog axis..

    I know this can be done in the normal memory so it will be retained as long as the power is NOT turned off to the Teensy but is there any way to Permanently save it for access after a Power Cycle.

    Thank you,

  2. #2

  3. #3
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,920
    You can use the eeprom library.
    https://www.pjrc.com/teensy/td_libs_EEPROM.html

    Edit.. lol, crosspost, thebigg was faster

  4. #4
    Thank you, Don't know HOW I missed that looking through all the information...

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,458
    In Arduino, click File > Examples > EEPROM to open the examples which show how to use it.

  6. #6
    Thank you as well, I noticed the reference to that on the page that the other posted.

  7. #7
    Member
    Join Date
    Jan 2020
    Location
    Port Elizabeth
    Posts
    51

    Use a FRAM

    Quote Originally Posted by Brion Sohn View Post
    This is a curiosity question and my searches provided no results - though they could be out there.

    Anyway what I am thinking and the question is can something be saved in the process of the program that will be retained after power cycling.
    I us a 32 kb FRAM for this purpose.
    See https://www.adafruit.com/product/1895

  8. #8
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,920
    Or just a sd card, if the inbuilt eeprom is not enough.

Posting Permissions

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