File_Init()

Parent Previous Next

File_Init(), Byte


Return Status:

• cErrOK: Initialization successful.

• cErrNoResponse: No response from the SD card.

• cErrInvalidFormat: SD card not formatted with FAT16 or FAT32.

• cErrRWError: Read/write error.


Initialize SD Card


This procedure initializes the SD card by setting input/output pins, switching to SPI mode, and reading the Master Boot Record (MBR) and Boot Record. It must be called before using the SD card.


Example:

File_Init()


Note: Once initialized successfully, this command does not need to be called again unless a new SD card is inserted.






Created with the Personal Edition of HelpNDoc: Effortlessly Spot and Fix Problems in Your Documentation with HelpNDoc's Project Analyzer