This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Writing data to flash?

Is there a simple way to write data to flash memory and retrieve it?  We are reading a transducer, calculating some numbers from the readings, and we want to store some of the calculated results for later analysis (after the run).

We expect to write records of four floating point numbers, about every 0.25 seconds on average, for a total of about 600 to 1200 records.  After the run, we want to get these data records and look at them.

Any suggestions would be appreciated!  (We are new at this).

  • Patrick Sparks said:

    Is there a simple way to write data to flash memory and retrieve it?  We are reading a transducer, calculating some numbers from the readings, and we want to store some of the calculated results for later analysis (after the run).

    We expect to write records of four floating point numbers, about every 0.25 seconds on average, for a total of about 600 to 1200 records.  After the run, we want to get these data records and look at them.

    Any suggestions would be appreciated!  (We are new at this).

    The 28x flash can be written to using the flash API.  It can be read just like any other memory.  Note the flash itself is not available when you are programming so the current application must be executing from RAM or external memory (XINTF) when this occurs.

    There is an application note you may find helpful called EEPROM emulation with the TMS320F28x

    www.ti.com/lit/sprab69

    And associated code: www.ti.com/lit/zip/sprab69

    Other flash frequently asked questions can be found on the TI wiki:

    http://processors.wiki.ti.com/index.php/C2000_Flash_Common_Issues/FAQs

    Cheers

    Lori

     

  • Hi Lori,

    Thank you for helping us once again!   We were able to get it to write, but did not know how to read it.  Will study the docs.

     

    Patrick Sparks

  • hi Lori

    I'm using a DSP2808. so I've try to use your exemple program for the EEPROM using the flash API.

    I had some results, but unfortunatly, I think that it locks my chip !

    I can't writte my program into the Flash memory !

    I've look to the password locations (0x3f7ff8-0x3f7fff) , and it's all 0000.

    I can't do anything else now, so hoz can you help me ?

    Regards