2017f02r8t6nuceo board uart2 serial port problems

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.