HAL SD Constants ¶
SD Transfer Timeout definition ¶
- group SD_Transfer_Timeout
- group SD_Transfer_Timeout
-
Defines
-
HAL_SD_DATA_MAX_TIMEOUT
0xFFFFFFFFU
-
SD data timeout
-
HAL_SD_STOP_XFER_MAX_TIMEOUT
500U
-
SD erase timeout 500ms
-
HAL_SD_ERASE_MAX_TIMEOUT
63000U
-
SD max erase Timeout 63s
-
HAL_SD_DATA_MAX_TIMEOUT
0xFFFFFFFFU
- group SD_Transfer_Timeout
-
Defines
-
HAL_SD_DATA_MAX_TIMEOUT
0xFFFFFFFFU
-
SD data timeout
-
HAL_SD_STOP_XFER_MAX_TIMEOUT
500U
-
SD erase timeout 500ms
-
HAL_SD_ERASE_MAX_TIMEOUT
63000U
-
SD max erase Timeout 63s
-
HAL_SD_DATA_MAX_TIMEOUT
0xFFFFFFFFU
SD Error status definition ¶
- group SD_Error_Status
-
Defines
-
HAL_SD_ERROR_NONE
SDMMC_ERROR_NONE
¶
-
No error
-
HAL_SD_ERROR_CMD_CRC_FAIL
SDMMC_ERROR_CMD_CRC_FAIL
¶
-
Command response received (but CRC check failed)
-
HAL_SD_ERROR_DATA_CRC_FAIL
SDMMC_ERROR_DATA_CRC_FAIL
¶
-
Data block sent/received (CRC check failed)
-
HAL_SD_ERROR_CMD_RSP_TIMEOUT
SDMMC_ERROR_CMD_RSP_TIMEOUT
¶
-
Command response timeout
-
HAL_SD_ERROR_DATA_TIMEOUT
SDMMC_ERROR_DATA_TIMEOUT
¶
-
Data timeout
-
HAL_SD_ERROR_TX_UNDERRUN
SDMMC_ERROR_TX_UNDERRUN
¶
-
Transmit FIFO underrun
-
HAL_SD_ERROR_RX_OVERRUN
SDMMC_ERROR_RX_OVERRUN
¶
-
Receive FIFO overrun
-
HAL_SD_ERROR_ADDR_MISALIGNED
SDMMC_ERROR_ADDR_MISALIGNED
¶
-
Misaligned address
-
HAL_SD_ERROR_BLOCK_LEN_ERR
SDMMC_ERROR_BLOCK_LEN_ERR
¶
-
Transferred block length is not allowed for the card or the number of transferred bytes does not match the block length
-
HAL_SD_ERROR_ERASE_SEQ_ERR
SDMMC_ERROR_ERASE_SEQ_ERR
¶
-
An error in the sequence of erase command occurs
-
HAL_SD_ERROR_BAD_ERASE_PARAM
SDMMC_ERROR_BAD_ERASE_PARAM
¶
-
An invalid selection for erase groups
-
HAL_SD_ERROR_WRITE_PROT_VIOLATION
SDMMC_ERROR_WRITE_PROT_VIOLATION
¶
-
Attempt to program a write protect block
-
HAL_SD_ERROR_LOCK_UNLOCK_FAILED
SDMMC_ERROR_LOCK_UNLOCK_FAILED
¶
-
Sequence or password error has been detected in unlock
-
HAL_SD_ERROR_COM_CRC_FAILED
SDMMC_ERROR_COM_CRC_FAILED
¶
-
CRC check of the previous command failed
-
HAL_SD_ERROR_ILLEGAL_CMD
SDMMC_ERROR_ILLEGAL_CMD
¶
-
Command is not legal for the card state
-
HAL_SD_ERROR_CARD_ECC_FAILED
SDMMC_ERROR_CARD_ECC_FAILED
¶
-
Card internal ECC was applied but failed to correct the data
-
HAL_SD_ERROR_CC_ERR
SDMMC_ERROR_CC_ERR
¶
-
Internal card controller error
-
HAL_SD_ERROR_GENERAL_UNKNOWN_ERR
SDMMC_ERROR_GENERAL_UNKNOWN_ERR
¶
-
General or unknown error
-
HAL_SD_ERROR_STREAM_READ_UNDERRUN
SDMMC_ERROR_STREAM_READ_UNDERRUN
¶
-
The card could not sustain data reading in stream mode
-
HAL_SD_ERROR_STREAM_WRITE_OVERRUN
SDMMC_ERROR_STREAM_WRITE_OVERRUN
¶
-
The card could not sustain data programming in stream mode
-
HAL_SD_ERROR_CID_CSD_OVERWRITE
SDMMC_ERROR_CID_CSD_OVERWRITE
¶
-
CID/CSD overwrite error
-
HAL_SD_ERROR_WP_ERASE_SKIP
SDMMC_ERROR_WP_ERASE_SKIP
¶
-
Only partial address space was erased
-
HAL_SD_ERROR_CARD_ECC_DISABLED
SDMMC_ERROR_CARD_ECC_DISABLED
¶
-
Command has been executed without using internal ECC
-
HAL_SD_ERROR_ERASE_RESET
SDMMC_ERROR_ERASE_RESET
¶
-
Erase sequence was cleared before executing because an out of erase sequence command was received
-
HAL_SD_ERROR_AKE_SEQ_ERR
SDMMC_ERROR_AKE_SEQ_ERR
¶
-
Error in sequence of authentication
-
HAL_SD_ERROR_INVALID_VOLTRANGE
SDMMC_ERROR_INVALID_VOLTRANGE
¶
-
Error in case of invalid voltage range
-
HAL_SD_ERROR_ADDR_OUT_OF_RANGE
SDMMC_ERROR_ADDR_OUT_OF_RANGE
¶
-
Error when addressed block is out of range
-
HAL_SD_ERROR_REQUEST_NOT_APPLICABLE
SDMMC_ERROR_REQUEST_NOT_APPLICABLE
¶
-
Error when command request is not applicable
-
HAL_SD_ERROR_INVALID_PARAM
SDMMC_ERROR_INVALID_PARAMETER
¶
-
the used parameter is not valid
-
HAL_SD_ERROR_UNSUPPORTED_FEATURE
SDMMC_ERROR_UNSUPPORTED_FEATURE
¶
-
Error when feature is not supported
-
HAL_SD_ERROR_BUSY
SDMMC_ERROR_BUSY
¶
-
Error when transfer process is busy
-
HAL_SD_ERROR_DMA
SDMMC_ERROR_DMA
¶
-
Error while DMA transfer
-
HAL_SD_ERROR_TIMEOUT
SDMMC_ERROR_TIMEOUT
¶
-
Timeout error
-
HAL_SD_ERROR_NONE
SDMMC_ERROR_NONE
¶
- group SD_Error_Status
-
Defines
-
HAL_SD_ERROR_NONE
SDMMC_ERROR_NONE
-
No error
-
HAL_SD_ERROR_CMD_CRC_FAIL
SDMMC_ERROR_CMD_CRC_FAIL
-
Command response received (but CRC check failed)
-
HAL_SD_ERROR_DATA_CRC_FAIL
SDMMC_ERROR_DATA_CRC_FAIL
-
Data block sent/received (CRC check failed)
-
HAL_SD_ERROR_CMD_RSP_TIMEOUT
SDMMC_ERROR_CMD_RSP_TIMEOUT
-
Command response timeout
-
HAL_SD_ERROR_DATA_TIMEOUT
SDMMC_ERROR_DATA_TIMEOUT
-
Data timeout
-
HAL_SD_ERROR_TX_UNDERRUN
SDMMC_ERROR_TX_UNDERRUN
-
Transmit FIFO underrun
-
HAL_SD_ERROR_RX_OVERRUN
SDMMC_ERROR_RX_OVERRUN
-
Receive FIFO overrun
-
HAL_SD_ERROR_ADDR_MISALIGNED
SDMMC_ERROR_ADDR_MISALIGNED
-
Misaligned address
-
HAL_SD_ERROR_BLOCK_LEN_ERR
SDMMC_ERROR_BLOCK_LEN_ERR
-
Transferred block length is not allowed for the card or the number of transferred bytes does not match the block length
-
HAL_SD_ERROR_ERASE_SEQ_ERR
SDMMC_ERROR_ERASE_SEQ_ERR
-
An error in the sequence of erase command occurs
-
HAL_SD_ERROR_BAD_ERASE_PARAM
SDMMC_ERROR_BAD_ERASE_PARAM
-
An invalid selection for erase groups
-
HAL_SD_ERROR_WRITE_PROT_VIOLATION
SDMMC_ERROR_WRITE_PROT_VIOLATION
-
Attempt to program a write protect block
-
HAL_SD_ERROR_LOCK_UNLOCK_FAILED
SDMMC_ERROR_LOCK_UNLOCK_FAILED
-
Sequence or password error has been detected in unlock
-
HAL_SD_ERROR_COM_CRC_FAILED
SDMMC_ERROR_COM_CRC_FAILED
-
CRC check of the previous command failed
-
HAL_SD_ERROR_ILLEGAL_CMD
SDMMC_ERROR_ILLEGAL_CMD
-
Command is not legal for the card state
-
HAL_SD_ERROR_CARD_ECC_FAILED
SDMMC_ERROR_CARD_ECC_FAILED
-
Card internal ECC was applied but failed to correct the data
-
HAL_SD_ERROR_CC_ERR
SDMMC_ERROR_CC_ERR
-
Internal card controller error
-
HAL_SD_ERROR_GENERAL_UNKNOWN_ERR
SDMMC_ERROR_GENERAL_UNKNOWN_ERR
-
General or unknown error
-
HAL_SD_ERROR_STREAM_READ_UNDERRUN
SDMMC_ERROR_STREAM_READ_UNDERRUN
-
The card could not sustain data reading in stream mode
-
HAL_SD_ERROR_STREAM_WRITE_OVERRUN
SDMMC_ERROR_STREAM_WRITE_OVERRUN
-
The card could not sustain data programming in stream mode
-
HAL_SD_ERROR_CID_CSD_OVERWRITE
SDMMC_ERROR_CID_CSD_OVERWRITE
-
CID/CSD overwrite error
-
HAL_SD_ERROR_WP_ERASE_SKIP
SDMMC_ERROR_WP_ERASE_SKIP
-
Only partial address space was erased
-
HAL_SD_ERROR_CARD_ECC_DISABLED
SDMMC_ERROR_CARD_ECC_DISABLED
-
Command has been executed without using internal ECC
-
HAL_SD_ERROR_ERASE_RESET
SDMMC_ERROR_ERASE_RESET
-
Erase sequence was cleared before executing because an out of erase sequence command was received
-
HAL_SD_ERROR_AKE_SEQ_ERR
SDMMC_ERROR_AKE_SEQ_ERR
-
Error in sequence of authentication
-
HAL_SD_ERROR_INVALID_VOLTRANGE
SDMMC_ERROR_INVALID_VOLTRANGE
-
Error in case of invalid voltage range
-
HAL_SD_ERROR_ADDR_OUT_OF_RANGE
SDMMC_ERROR_ADDR_OUT_OF_RANGE
-
Error when addressed block is out of range
-
HAL_SD_ERROR_REQUEST_NOT_APPLICABLE
SDMMC_ERROR_REQUEST_NOT_APPLICABLE
-
Error when command request is not applicable
-
HAL_SD_ERROR_INVALID_PARAM
SDMMC_ERROR_INVALID_PARAMETER
-
the used parameter is not valid
-
HAL_SD_ERROR_UNSUPPORTED_FEATURE
SDMMC_ERROR_UNSUPPORTED_FEATURE
-
Error when feature is not supported
-
HAL_SD_ERROR_BUSY
SDMMC_ERROR_BUSY
-
Error when transfer process is busy
-
HAL_SD_ERROR_DMA
SDMMC_ERROR_DMA
-
Error while DMA transfer
-
HAL_SD_ERROR_TIMEOUT
SDMMC_ERROR_TIMEOUT
-
Timeout error
-
HAL_SD_ERROR_NONE
SDMMC_ERROR_NONE
- group SD_Error_Status
-
Defines
-
HAL_SD_ERROR_NONE
SDMMC_ERROR_NONE
-
No error
-
HAL_SD_ERROR_CMD_CRC_FAIL
SDMMC_ERROR_CMD_CRC_FAIL
-
Command response received (but CRC check failed)
-
HAL_SD_ERROR_DATA_CRC_FAIL
SDMMC_ERROR_DATA_CRC_FAIL
-
Data block sent/received (CRC check failed)
-
HAL_SD_ERROR_CMD_RSP_TIMEOUT
SDMMC_ERROR_CMD_RSP_TIMEOUT
-
Command response timeout
-
HAL_SD_ERROR_DATA_TIMEOUT
SDMMC_ERROR_DATA_TIMEOUT
-
Data timeout
-
HAL_SD_ERROR_TX_UNDERRUN
SDMMC_ERROR_TX_UNDERRUN
-
Transmit FIFO underrun
-
HAL_SD_ERROR_RX_OVERRUN
SDMMC_ERROR_RX_OVERRUN
-
Receive FIFO overrun
-
HAL_SD_ERROR_ADDR_MISALIGNED
SDMMC_ERROR_ADDR_MISALIGNED
-
Misaligned address
-
HAL_SD_ERROR_BLOCK_LEN_ERR
SDMMC_ERROR_BLOCK_LEN_ERR
-
Transferred block length is not allowed for the card or the number of transferred bytes does not match the block length
-
HAL_SD_ERROR_ERASE_SEQ_ERR
SDMMC_ERROR_ERASE_SEQ_ERR
-
An error in the sequence of erase command occurs
-
HAL_SD_ERROR_BAD_ERASE_PARAM
SDMMC_ERROR_BAD_ERASE_PARAM
-
An invalid selection for erase groups
-
HAL_SD_ERROR_WRITE_PROT_VIOLATION
SDMMC_ERROR_WRITE_PROT_VIOLATION
-
Attempt to program a write protect block
-
HAL_SD_ERROR_LOCK_UNLOCK_FAILED
SDMMC_ERROR_LOCK_UNLOCK_FAILED
-
Sequence or password error has been detected in unlock
-
HAL_SD_ERROR_COM_CRC_FAILED
SDMMC_ERROR_COM_CRC_FAILED
-
CRC check of the previous command failed
-
HAL_SD_ERROR_ILLEGAL_CMD
SDMMC_ERROR_ILLEGAL_CMD
-
Command is not legal for the card state
-
HAL_SD_ERROR_CARD_ECC_FAILED
SDMMC_ERROR_CARD_ECC_FAILED
-
Card internal ECC was applied but failed to correct the data
-
HAL_SD_ERROR_CC_ERR
SDMMC_ERROR_CC_ERR
-
Internal card controller error
-
HAL_SD_ERROR_GENERAL_UNKNOWN_ERR
SDMMC_ERROR_GENERAL_UNKNOWN_ERR
-
General or unknown error
-
HAL_SD_ERROR_STREAM_READ_UNDERRUN
SDMMC_ERROR_STREAM_READ_UNDERRUN
-
The card could not sustain data reading in stream mode
-
HAL_SD_ERROR_STREAM_WRITE_OVERRUN
SDMMC_ERROR_STREAM_WRITE_OVERRUN
-
The card could not sustain data programming in stream mode
-
HAL_SD_ERROR_CID_CSD_OVERWRITE
SDMMC_ERROR_CID_CSD_OVERWRITE
-
CID/CSD overwrite error
-
HAL_SD_ERROR_WP_ERASE_SKIP
SDMMC_ERROR_WP_ERASE_SKIP
-
Only partial address space was erased
-
HAL_SD_ERROR_CARD_ECC_DISABLED
SDMMC_ERROR_CARD_ECC_DISABLED
-
Command has been executed without using internal ECC
-
HAL_SD_ERROR_ERASE_RESET
SDMMC_ERROR_ERASE_RESET
-
Erase sequence was cleared before executing because an out of erase sequence command was received
-
HAL_SD_ERROR_AKE_SEQ_ERR
SDMMC_ERROR_AKE_SEQ_ERR
-
Error in sequence of authentication
-
HAL_SD_ERROR_INVALID_VOLTRANGE
SDMMC_ERROR_INVALID_VOLTRANGE
-
Error in case of invalid voltage range
-
HAL_SD_ERROR_ADDR_OUT_OF_RANGE
SDMMC_ERROR_ADDR_OUT_OF_RANGE
-
Error when addressed block is out of range
-
HAL_SD_ERROR_REQUEST_NOT_APPLICABLE
SDMMC_ERROR_REQUEST_NOT_APPLICABLE
-
Error when command request is not applicable
-
HAL_SD_ERROR_INVALID_PARAM
SDMMC_ERROR_INVALID_PARAMETER
-
the used parameter is not valid
-
HAL_SD_ERROR_UNSUPPORTED_FEATURE
SDMMC_ERROR_UNSUPPORTED_FEATURE
-
Error when feature is not supported
-
HAL_SD_ERROR_BUSY
SDMMC_ERROR_BUSY
-
Error when transfer process is busy
-
HAL_SD_ERROR_DMA
SDMMC_ERROR_DMA
-
Error while DMA transfer
-
HAL_SD_ERROR_TIMEOUT
SDMMC_ERROR_TIMEOUT
-
Timeout error
-
HAL_SD_ERROR_NONE
SDMMC_ERROR_NONE