Solved! Go to Solution.
Hi
If you can be sure that there is no interrupt code that will try to access the data Flash when it is being written or erased there is no need to disable interrupts.
Regards
Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements
For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/iMX/RT1064.html
Hi
If you can be sure that there is no interrupt code that will try to access the data Flash when it is being written or erased there is no need to disable interrupts.
Regards
Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements
For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/iMX/RT1064.html
Hi,
I am performing erase and write in one of the timer interrupts when I see that a particular GPIO has switched the state. In rest of the interrupts, there is no activity related to Data flash.
So can I be sure that all other interrupts are not using this Data Flash? As per my understanding, these interrupts would be using Program Flash and SRAM during their execution.
Also since I am performing the write operation in one the FTM timer interrupts itself, will it cause some problem?
Can you please confirm?
Thanks & Regards,
Vaibhavi P
Hi
>>So can I be sure that all other interrupts are not using this Data Flash?
If you wrote the other interrupts code you will know whether they are accessing data flash or not. Very probably not and a naked interrupt won't be doing so.
>>Also since I am performing the write operation in one the FTM timer interrupts itself, will it cause some problem?
Flash operations take some time (eg. 200us for word write or several 10s of ms of sector erase) but the operation itself doesn't care whether called from an interrupt or not. The impact on blocking lower priority interrupts during slow operations is the thing to consider.
Regards
Mark
Thank you so much for your help!