DSPRelated.com
Forums

BF518f - Reading and writing to the SPI FLASH and to the on-chip FLASH

Started by Chagai Ensenberg October 21, 2010
Hi,

My application boots from the external flash. then is runs for a while and
aquires and generates some data. Then it goes back to sleep for a while.
When it wakes up again (reset), I need the program to reboot but this time
of course it has to retreive the data from its last operation too.

I know how to boot from the flash - when using the vdsp. but how do i save
some data on the non-volatile flash so i can use it later again (after power
down)?

Is there a simple command like: "SAVE_TO_FLASH (ARR);" ???

Thanks,
Chagai
You might have to write the routine your self, but yes, you can write to
flash. Usually it takes 3 to 7 microseconds per byte, so you'll have to
put in some time delays. Normally you write a5, 5a then data - but
different manufacturers have different order so check the flash manual.

If you are using an EZ kit, check the manual. There may be an entry point
that will write whole blocks for you on a single call. You just have to
make sure you wait long enough for it to finish.

Patience, persistence, truth,
Dr. mike

On Wed, 20 Oct 2010, Chagai Ensenberg wrote:

> Hi,
>
> My application boots from the external flash. then is runs for a while and
> aquires and generates some data. Then it goes back to sleep for a while.
> When it wakes up again (reset), I need the program to reboot but this time
> of course it has to retreive the data from its last operation too.
>
> I know how to boot from the flash - when using the vdsp. but how do i save
> some data on the non-volatile flash so i can use it later again (after power
> down)?
>
> Is there a simple command like: "SAVE_TO_FLASH (ARR);" ???
>
> Thanks,
> Chagai
>