Skip to main content
Explorer II
November 5, 2024
Solved

stm32u5 internal pull-up resistors on SDIO pins

  • November 5, 2024
  • 2 replies
  • 1445 views

Hi. 
Isn't it possible to turn on the internal pull-up resistors for SDIO lines in STM32U585?
In cubeMX configuration, It doesn't show pull up option in gpio config. Also choosing pull up in the init code doesn't look like enabling it. 
is there anywhere in the datasheet or reference manual that explains this?

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    I'm not reproducing the issue on STM32CubeMx version 6.12.1:

    SofLit_0-1730969428193.png

    Are you using the latest version?

    2 replies

    Technical Moderator
    November 6, 2024

    Hello, 

    I don’t think it’s recommended to use internal gpio pull ups for SDIO.

    To me there are two reasons: 

    1- at power up the GPIOs are not yet configured and at this time the sdio pins are floating.

    2- The values of the resistors.

    So need to use external pull ups.

    If internal pull ups was a solution it was adopted for many ST reference designs / examples.

    Meanwhile to answer your remark regarding how to configure pull-up/down resistors in CubeMx on already configured pins for peripherals, you need to go to GPIO -> SDMMC and select what GPIO you need to set the internal resistor as indicated in the following screenshot:

    SofLit_0-1730894086893.png

     

     

    Explorer II
    November 6, 2024

    Hi @mƎALLEm , 
    I understand that the recommendations ask for external pull-up. however for our use case we would like to see if the internal pull up on cmd line can work. 

    regarding the screen shot that you shared, is it STM32U5 series? because I can't select pull-up there (my screen shot is for CMD line but that's the same for other SDIO pins as well):

    miladmohtashamirad_0-1730936804554.png

    Kind regards.





    mƎALLEmAnswer
    Technical Moderator
    November 7, 2024

    Hello,

    I'm not reproducing the issue on STM32CubeMx version 6.12.1:

    SofLit_0-1730969428193.png

    Are you using the latest version?

    Explorer II
    November 7, 2024

    Hi. 
    No. I'm using 6.11.1-RC2. 
    Ok. if it's showing up in later versions of CubeMx, it proves that probably there's no hardware limit for turning pull resistors.
    Thank you.