MSPM0_ValvanoWare  1.0
ECE445L starter code
Functions
FlashFile.h File Reference

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...
 

Detailed Description

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

Version
ECE445M RTOS V1.2
Author
Jonathan Valvano
Warning
AS-IS
Note
For more information see http://users.ece.utexas.edu/~valvano/
Date
June 4, 2026

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