Re: Flash and critical sections
Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Shawn Silverman wrote: > I have some native methods that work with flash. Is it a good idea to > disable interrupts as well as enter a critical section for code that > writes and erases flash? > > My code currently enters a critical section when erasing. How will > interrupts affect this "in general"? Most flash memories do not like memory accesses while operating on write or erase commands. If you are not accessing the flash you are erasing, you should be OK. -- -- Bryan Armstrong bryan.armstrong-6tN4nzCoH/[email protected] _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini