Skip to main content
young su cho
Visitor II
June 8, 2017
Question

STM32F103RCT6 HOW TO USE SDIO & UART4

  • June 8, 2017
  • 2 replies
  • 908 views
Posted on June 08, 2017 at 15:19

I Have a problem using sdio(1bit) and UART4.

UART4 TX does not work when SDIO is INIT.

If SDIO is not INIT, UART4 TX work.

Please tell me how to fix it.

CUBE setting are shown below.

0690X00000603sAQAQ.jpg

  MX_GPIO_Init();

  MX_DMA_Init();

  MX_ADC1_Init();

  MX_IWDG_Init();

  MX_SDIO_SD_Init();

  MX_SPI1_Init();

  MX_SPI3_Init();

  MX_UART4_Init();

  MX_USART1_UART_Init();

  MX_USART2_UART_Init();

  MX_USART3_UART_Init();

  MX_FATFS_Init();

  MX_TIM6_Init();

HAL_UART_Transmit(&UART4, aTxBuffer, Transmit_Size,1000);

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    June 8, 2017
    Posted on June 08, 2017 at 15:44

    The F1 series has peripheral level remapping rather than pin level, I think PC10/PC11 probably have commonality between UART4 and SDIO, so they will conflict.

    Consider a F2/F4 part where pin level association with specific peripherals is possible.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    ST Technical Moderator
    June 8, 2017
    Posted on June 08, 2017 at 15:50

    Hi

    yougnsu.cho

    ,

    There is alimitation related to SDIO and UART4 as mentioned in the

    http://www.st.com/content/ccc/resource/technical/document/errata_sheet/f5/50/c9/46/56/db/4a/f6/CD001977pdf/files/CD001977pdf/jcr:content/translations/en.CD001977pdf

    .

    Please have a look to this section :2.8.8 SDIO with USART3 remapped and UART4

    0690X00000607HSQAY.png

    Best Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks