Ok, so rcc_periph_clock_enable(RCC_USART2);. was missing so USART2 can't do its job. I can send and receive data now.
確定! 回上一頁