In the main.c , at USART1 configuartion:
Code: Select all
/*
* Activates the serial driver 1 using the driver default configuration.
* PA9(TX) and PA10(RX) are routed to USART1.
*/
sdStart(&SD1, NULL);
palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7));
palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7));but for STM32F30x, PC4(TX) and PC5(RX) are routed to USART1, PA2(TX) and PA3(RX) routed to USART2, PB10(TX) and PB11(RX) routed to USART3. I 've fixed it and it run like a charm