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.
Tool/software:
Hi,
I would like to protect my QSPI FLASH from being accessed during system power down - ~ 5 seconds.
I have a power down event - callback function.
Is it possible to disable the OSPI flash controller (at the power down callback) so that no task can read/write the flash ?
Thanks,
Eli
Hi,
I have a power down event - callback function.
Can you emphasize more on this?
So, the read should not be bothering unless you have called one of the OSPI read/write APIs.
When it comes to disabling, I think from SW point of view you could close only the OSPI drivers which will make sure no instance of OSPI exists and now you can go ahead with the power down event.
Regards,
Vaibhav
Hi Vaibhav,
You've suggested "you could close only the OSPI drivers".
Can you please explain what lines should be added and where ?
What exactly is enough to close to block any access to FLASH ?
Thanks,
Regards,
Eli
Hello Eli,
Is it enough calling Drivers_ospiClose(); ?
Yes this should be fine. Also other workaround would be to make sure you do not call any write/read APIs.
Regards,
Vaibhav