![]() |
MSPM0_ValvanoWare
1.0
ECE445L starter code
|
High-level implementation of the file system implementation. More...
Go to the source code of this file.
Functions | |
| uint32_t | OS_File_New (uint32_t buf[64]) |
| create new file More... | |
| uint32_t | OS_File_Size (uint32_t num) |
| file size new file More... | |
| uint32_t | OS_File_Append (uint32_t num, uint32_t buf[64]) |
| append to existing file More... | |
| uint32_t * | OS_File_Read (uint32_t num, uint32_t location) |
| read from existing file More... | |
| uint32_t | OS_File_Format (void) |
| create new file More... | |
High-level implementation of the file system implementation.
Runs on MSPM0G3507. One memory bank as MAIN memory. Each flash word is 8 bytes (64 bits). Each word line is 16 word lines, 128 bytes. Each sector 8 word lines, 1024 bytes (minimum erase size). There is one Bank on MSPM0G3507, with 128k bytes, 128 sectors. Once a byte has been programmed, it cannot be reprogrammed unless the sector is erased
This solution is predicated on the assumption that erased flash will read as all 1's The data sheet says flash is indeterminate after erasing, but experimentation shows it as all 1's
After erasing
Write data size is 64 bits, 8 bytes, one flash word
Directory/FAT are in last two sectors of Flash Rom