Skip to main content
abhijith
Visitor II
November 18, 2015
Question

SD High Speed Switching

  • November 18, 2015
  • 1 reply
  • 547 views
Posted on November 18, 2015 at 15:20

Hi,

 do anybody know how to switch SD operation from Default mode to High Speed Mode in WICED using SD_CMD_HS_SWITCH command??

I have added

    SDIO_CmdInitStructure.SDIO_Argument = 0x80FFFF01;

    SDIO_CmdInitStructure.SDIO_CmdIndex = SD_CMD_HS_SWITCH;

    SDIO_CmdInitStructure.SDIO_Response = SDIO_Response_Short;

    SDIO_CmdInitStructure.SDIO_Wait = SDIO_Wait_No;

    SDIO_CmdInitStructure.SDIO_CPSM = SDIO_CPSM_Enable;

    SDIO_SendCommand (&SDIO_CmdInitStructure);

    errorstatus = CmdResp1Error (SD_CMD_HS_SWITCH );

this within SD_init() fuction , but its not working 

#sdcard #!stm32f4-!stm32f401-!rtc
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
November 18, 2015
Posted on November 18, 2015 at 17:54

I thought WICED was a Broadcom thing, so unsure of it's context here.

Sorry ''not working'' tells us very little, is there some error, did something time out, you're going to have to be more precise.

Here's some HAL code where the HS_SWITCH is used with some context.

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Attachments/43376/stm32f4xx_hal_sd.c

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..