,īut as I already said, at the cost of loosing the virtual serial port. But at the cost of loosing the virtual serial port. So when this solder bridge is OFF (ON by default) we should be able to use Serial2 (USART2) for user projects. Nevertheless, according chapter 6.9 "USART virtual communication" of the User manual the PA_2 pin is connected to the USB serial communication chip over the SB2 solder bridge. Selection-mode switch to use the kit as a standalone ST-LINK/V2-1. On-board ST-LINK/V2-1 debugger/programmer with SWD connector. But I'm afraid that you won't be able to find other than pin PA_2 to configure as TX pin for SerialPort2. STMicroelectronics Morpho extension pin headers for full access to all STM32 I/Os. STM32 Nucleo-32 development board with STM32L432KC MCU, supports Arduino connectivity Product Dimensions, 4 x 3 x 1 inches Item Weight, 0.01 ounces. However, because PinMap_UART_TX and PinMap_UART_RX are defined as weak ( MBED_WEAK) in the PeripheralPins.c file, you can try to define your own PinMap_UART_TX and PinMap_UART_RX in your code (remember to omit the MBED_WEAK specifier) which will override the original ones. I think that PA_3 is indicated in the pinout picture as UART2_RX by mistake, since that definition is commented out in the PeripheralPins.c file (I think that the reported error is most likely caused by missing UART RX pinmap for pin PA_3). Precio y disponibilidad para millones de componentes electrónicos de Digi-Key Electronics. And because those pins, on a NUCLEO-L432KC board, are physically connected also to the other chip located on the board and used for serial communiction over the the USB connector (for pin PA_2, which is available at the CN4 connector, this is indicated by highlighting its pin name backround in dark blue color - see the pin legend), we cannot use them for our own design. NUCLEO-L432KC ürününü STM Nucleo kategorisinden uygun fiyat, ayn gün kargo ve hzl teslimat avantajyla SAMM Market’ten hemen sipari verebilirsiniz. NUCLEO-L432KC - Desarrollo compatible con STM32L432KC, mbed Nucleo-32 STM32L4 ARM® Cortex®-M4 MCU 32 bits Placas de evaluación - integradas de STMicroelectronics. Then the mbed code (provided in the mbed library) will recognize, based on the pin names passed to the constructor, that SerialPort2 shall be used (this is defined by the files you can find in the folders indicated on the NUCLEO-L432KC mbed page).
0 Comments
Leave a Reply. |