![]() In this way, you can display on PC the messages received from the board over the virtual communication Port and the other way around. You can download many open-source tools as Tera Term. A tool that emulates the serial communication terminal is necessary to view received messages and send them. In addition, USART2 is selected to communicate with the PC via the ST-Link Virtual COM Port. The USART2 peripheral uses PA2 and PA3 pins, which are wired to the ST-Link connector. A Type-A to mini-B USB cable must be connected between the board and the computer. The ST-Link USB connector is used both for serial data communications, and firmware downloading and debugging on the MCU. For our examples, so also a Windows PC is required. files from STM32CubeMXĪs already said, we will use for our examples a NUCLEO-L053R8 board. Obviously, this is a very simple practical example, but peripherals, communication protocols and anything else can be configured in a similar way. The steps required to configure a core board are explained below. This can be easily done with a Nucleo board by configuring a GPIO (General Purpose Input Output) pin. In this case when the switch is closed the Led is ON, when the switch is open the Led is OFF. Now we must be able to turn off the led, to do it we need a switch to connect and disconnect the power supply as shown below. What resistance value must be considered to limit the current to 20 mA (see the formula below)? We must connect in series to LED a resistor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |