cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103RCT6 HOW TO USE SDIO & UART4

young su cho
Associate
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);

2 REPLIES 2
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
Up vote any posts that you find helpful, it shows what's working..
Imen.D
ST Employee
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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen