You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/07 11:28:05 UTC

[GitHub] [incubator-nuttx] qbazd commented on issue #6796: NUCLEO-L4R5ZI - SDMMC - SDIO - no communication on CMD line

qbazd commented on issue #6796:
URL: https://github.com/apache/incubator-nuttx/issues/6796#issuecomment-1207386999

   @davids5 
   
   Hi, tnx for reply.
   
   > Did you add the HW and and pull ~50 pull ups on all the lines to the card but not the clock line?
   
   Yes - I have 10k each line - clk, cmd, d0-d3
   
   I've confirmed my hardware setup by working software made with stm32duino (arduino framework) for this NUCLEO-L4R5ZI board.
   
   > Check that "MMC cards support" is disabled Check the pin assignments. 
   
   Here is my screen of config:
   
   ![image](https://user-images.githubusercontent.com/5228328/183287956-b7c17064-b3cd-4c3c-8acf-1bf38cd0184a.png)
   
   > Ensure the pins are setup correctly (Verify it with JTAG by looking at the GPIO registers). 
   > Break after the [pins are setup](https://github.com/apache/incubator-nuttx/blob/master/arch/arm/src/stm32/stm32_sdio.c#L3062) > Then check them again when used to probe the card. 
   > Some times anther pin is being used and has the wrong config.
   
   I understand. I will try to debug GPIO PINS setup registers of SDMMC. Have to learn how exactly, what addresses/values. Will get back with results.
   
   > It could over write one of the SDIO pins. Remember too that the interface is booted in 1 Bit mode first and the clock should be <= 400 Khz see SDIO_INIT_CLKDIV.
   
   Tried to manipulate SDIO_INIT_CLKDIV without success (CLK varies then in +/- couple kHz)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org