File_Init()

… visits
Parent Previous Next

Syntax

File_Init(), Byte

Return status

Value

Meaning

cErrOK

Initialization successful.

cErrNoResponse

No response from the SD card.

cErrInvalidFormat

SD card not formatted with FAT16 or FAT32.

cErrRWError

Read/write error.

Overview

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: Write eBooks for the Kindle