Hi,
I notice there is a config option for setting drive strength when setting up an SD card interface. But when I change this option I am not seeing any change on my scope at all. What is going on?
/*! @brief SD card driver strength */
typedef enum _sd_driver_strength
{
kSD_DriverStrengthTypeB = 0U, /*!< default driver strength*/
kSD_DriverStrengthTypeA = 1U, /*!< driver strength TYPE A */
kSD_DriverStrengthTypeC = 2U, /*!< driver strength TYPE C */
kSD_DriverStrengthTypeD = 3U, /*!< driver strength TYPE D */
} sd_driver_strength_t;
Hi,
First of all, sorry for the later reply.
I checked RT product reference manual and could not find related Driver Strength setting register with uSDHC module.
The MCUXpresso SDK software driver would like to suitable for NXP all products. Related <fsl_sd.c> also want to works with all NXP MCU & MPU has ARM-M4 core products. I am not sure if other MCU family using the different SD module with SD padS driver strength setting. For RT product, related setting should not work.
Thanks for the attention.
Mike
Hi,
Thank you for guide to the SD card commands.
That setting is related to SD protocol CMD6, which provide more setting for card, includes driver strength.
Please refer below picture about CMD6 function.
Driver strength is located CMD6[11:8] bits with four type selection, default is Type B.
Type Current/power limitation
Type-B 200mA/0.72W
Type-A 400mA/1.44W
Type-C 600mA/2.16W
Type-D 800mA/2.88W
I could find this CMD6 working with UHS-I SD card.
More detailed info, it need to check SD protocol spec.
Thanks for the attention.
Mike
Hi,
Customer can call the SD_SetDriverStrength() API function to config SD card driver strength.
While, at the general situation (normal successful communication), using scope to measure the signal voltage/quality could not reflect the effection of driver strength change. When there with communication abnormal happen, call this SD_SetDriverStrength() API function change card driver strength could help to enhance signal quality to make the communication back to normal.
Thanks for the attention.
Mike