![]() ![]() This means that the Nucleo board is configured to use the USART2 peripheral of target MCU. As we can see in the following picture, the USART_TX and USART_RX ports are connected to PA2 and PA3 pins. Now we have to take a look to the Nucleo schematics. Looking to STM32CubeMX tool, we discover that the STM32F401RETx processor has 3 different USARTs: USART1, USART2 and USART6. First: pinoutĪ complex yet flexible MCU like the STM32 provides I/Os that have "overloaded" functionalities.This means that, before we can use a peripheral (in our case, the USART), we need to configure the peripherals associated to corresponding pins. I'll assume the Nucleo-F401RE model, but it should be really easy to rearrange instructions to properly use your specific Nucleo. ST provides the full hardware project of the STM32 Nucleo (the board is designed using the Altium Designer CAD, a professional CAD used in the electronics industry, but you are not required to have a so expensive piece of software to use your Nucleo). But, before we start coding, it could be really useful take a look to the hardware. In this post I'll show you how to properly configure and use the integrated virtual COM port of STM32 Nucleo board. The serial port is mostly useful for two reasons: if you want to debug your firmware printing messages (not strictly necessary with the ARM architecture, since we can also use ARM semihosting) or if you want to exchange commands and messages between your Nucleo board and your PC (perhaps, using a dedicated application you are building). Usually, this device is named something similar to tty.usbmodemXXXX, as shown below. If you use a Linux PC or a Mac, you'll find a new terminal in the /dev directory. When you install the ST-Link drivers, a new device appears in your hardware devices list: the ST-Link Virtual COM port. But, it provides at least another really useful feature: a Virtual COM port. ST Link is mainly designed to allow flashing of target MCU trough the mini-USB interface. – Ethernet compliant with IEEE-802.As we have seen in the previous tutorial about this new developing board from ST, the STM32 Nucleo provides an integrated ST Link v2.1 interface. – External or internal SMPS to generate Vcore logic supply Including IAR™, Keil®, and GCC-based IDEs – Support of a wide choice of Integrated Development Environments (IDEs) – Comprehensive free software libraries and examples available with the – On-board ST-LINK debugger/programmer with USB re-enumerationĬapability: mass storage, Virtual COM port, and debug port – Flexible power-supply options: ST-LINK, USB VBUS or external sources ◦ ST Zio expansion connector including ARDUINO® Uno V3 – STM32 microcontroller in LQFP144 package For the compatible boards, the internal or external SMPS significantlyreduces power consumption in Run mode.The ST Zio connector, which extends the ARDUINO® Uno V3 connectivity, and theST morpho headers provide an easy means of expanding the functionality of theNucleo open development platform with a wide choice of specialized shields.The STM32 Nucleo-144 board does not require any separate probe as it integratesthe ST-LINK debugger/programmer.The STM32 Nucleo-144 board comes with the STM32 comprehensive free softwarelibraries and examples available with the STM32Cube MCU Package. The STM32 Nucleo-144 board provides an affordable and flexible way for users to tryout new concepts and build prototypes by choosing from the various combinations ofperformance and power consumption features, provided by the STM32microcontroller.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |