21ic bought a 1 yuan movable board, transplanted RTT (RT-THREAD) Chinese embedded operating system. the system can run normally. Then, according to the tutorial on the RTT official website, a serial port driver is written.
It was originally defined as the uart1 port, but the usart1 pin of the Board was not found. Although the stm32 can be mapped, there is still no fl pin. at the beginning, I took a look at the user manual on the official website and found that usart2 was cited in the figure.
Take a look,
Good guyConnect Tx and Rx to the USB-to-serial port of the PC.
When the cup came, I found that no program was output or printed in any way, And I suspected that my code was faulty. I tried using the binfile in the mbed example and found that I couldn't. Is it a level problem? I changed the USB-to-serial port between the Development Board and PC used by others. Oh mygod !! Still not.
It's cool and cool. There's nothing wrong with it. Is there a problem with the serial port software? Try another serial port for a try. -----> the serial port data has come out !!!
Why is the data not from a USB to a serial port, but from a serial port ......
I'm sure this board has an authority. Let's take a look at the user manual.
GoodGuy, it turns out to be a USB-to-virtual serial port. It's so powerful! Data can be obtained from you.
Okay, let's see how to make it happen if I want to be different from you. Let's take a look at the usart connection settings chapter in the user manual.
Chicken sausageSaid, the mode is indeed the usart2 and the ST-LINK is connected. If there is a set need to do some switch settings. Which switch, see the picture of chicken sausage
Blog from: http://blog.csdn.net/lan120576664? Viewmode = Contents