You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are several efforts to add a low-level flash interface to RIOT:
Flash interface #2239 by @d00616 proposes an interface with memcpy-semantics, which appears to be designed with memory-mapped NOR flash in mind (?). It also comes with an implementation of the interface for native (using mmap) and the nrf51822.
Furthermore, an interface to access SD cards already exists in diskio.h, which is implemented for the lpc2387 (msba2). This one also provides page-aligned access.
I'd like to kick off a discussion on which kind of low-level interface we want for RIOT, since I think that, for simplicity, there ought to be only one.
I currently favor the interface proposed in #5365, since I feel that thinking of flash in terms of memory mapped I/O is dangerous: writing to the same address over and over is common in RAM, but destructive on flash. #5365 is relatively straight forward and can be extended with partial page writes/reads if necessary. We could even deprecate the diskio.h MCI interface after porting its functionality.
Currently there are several efforts to add a low-level flash interface to RIOT:
diskio.h, which is implemented for the lpc2387 (msba2). This one also provides page-aligned access.I'd like to kick off a discussion on which kind of low-level interface we want for RIOT, since I think that, for simplicity, there ought to be only one.
I currently favor the interface proposed in #5365, since I feel that thinking of flash in terms of memory mapped I/O is dangerous: writing to the same address over and over is common in RAM, but destructive on flash. #5365 is relatively straight forward and can be extended with partial page writes/reads if necessary. We could even deprecate the
diskio.hMCI interface after porting its functionality./cc @kYc0o @authmillenon @OlegHahm @kaspar030 @cgundogan