AnsweredAssumed Answered

Write to external flash when running from external flash using SPIFI

Question asked by lpcware Employee on Jun 15, 2016
Latest reply on Sep 2, 2016 by Cory Heuschkel
Content originally posted in LPCWare by gvandenbosch on Wed Mar 09 01:32:17 MST 2016
Hello,

I am running my image from external flash using SPIFI.
Now I want to write some files to the external flash as well.

When my image still ran from internal flash I did this the following way:

spifiDevSetMemMode(spifi_handle,0);
spifiDevUnlockDevice(spifi_handle);
//write to the device
spifiDevLockDevice(spifi_handle);
spifiDevSetMemMode(spifi_handle,1);

But now my application will crash when I do this because it is running in external flash using SPIFI as well.

Is there any way to accomplish to write to external flash while also running from it using SPIFI?

Cheers,
Gerard

Outcomes