Posted on September 04, 2017 at 08:51The original post was too long to process during our migration. Please click on the attachment to read the original post.
and check if the UART pins i.e STLK_TX and STLK_RX are the same as configured using the STMCube. You can check the UART pins in a file that reads something like stm32l4xx_hal_msp.c, and search for void HAL_UART_MspInit(UART_HandleTypeDef* huart). To receive from hyperterminal these pins should match the UART pins mentioned in schematic.
Can you confirm you are using USART2 with PD5 (USART_TX) and PD6 (USART_RX)? Is USART2 connected to PC through the ST-Link Virtual Com Port (VCP)? In such case, there is no modification needed on the board, and you should be able to send/receive through the VCP thanks to the ST-Link USB cable. See
User manual Discovery kit with STM32L476VG MCU § 7.9 USART configuration.
I would not recommend to use PA2 and PA3 as I would conflict with JOY_RIGHT and JOY_UP (or you'll have to remove R52 & R56 resistors).
Regards
Bruno
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.