My SD Card unmounts itself mysteriously using fsrw26.
I have a method that parses an ASCII file, reading one line at a time, until the end of file. I have a second method that reopens the same file and parses the ASCII file in another way. I am not certain that the SD Card is unmounted. I only know that I have to mount the SD Card again before the second method can open and read the ASCII file.
Is there something about fsrw26 that requires the second method to re-mount the SD Card if no files are open after a short period of time?
Between the first and second parsing methods, the SPI bus is used to send information to another device on the same SPI bus. The SD Card and other device share the DO CLK DI pins. Each has its own CS pin. I am using pull up resistors and have uncommented the command mov dira,#0 in safe_spi PASM to tristate all lines so that the SPI bus can be shared with other devices.
Could there be something about sharing the SPI bus that causes the SD Card to need re-mounting between file accesses?