Question
STM32C8T6 UART Not working
Posted on March 23, 2018 at 06:40
Trying to get
STM32C8T6 UART to send data but nothing comes through. I configured the RCC, SYS, USART1 (baud 9600) and the integrated led on cubemx. Tx connected to A9, Rx to A10. My code is as follows:
UART_HandleTypeDef huart1;uint8_t bufftx[10]='HELLO';void SystemClock_Config(void);int main(void){ HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); MX_DMA_Init(); MX_USART1_UART_Init(); while (1) { HAL_GPIO_TogglePin(LED_GPIO_Port,LED_Pin); HAL_UART_Transmit(&huart1, bufftx,10,100); HAL_Delay(200); }}As you can see there's not much to it. Im using the same code in my nucleo f103 and it works fine. Why doesnt it work on the blue pill?