(solved)nucleo h743zi2 : help, serial port
Posted: Wed Apr 07, 2021 9:33 pm
Hello everybody,
I am trying to wirte a projet which use the serial1 of the nucleo h743zi2.
I am able to send data but no sucess to receive.
for this serial1, the variant.h gives the following
but when I look at the PeripheralPin.C in the section for HAL_UART_MODULE I see that the line whith PB_7 is commented
Is it normal or is it an error in this file ? I yes, how is it possible to correct it ?
Thank you
I am trying to wirte a projet which use the serial1 of the nucleo h743zi2.
I am able to send data but no sucess to receive.
for this serial1, the variant.h gives the following
Code: Select all
PB_7, //D0 - USART_A_RX
PB_6, //D1 - USART_A_TX
but when I look at the PeripheralPin.C in the section for HAL_UART_MODULE I see that the line whith PB_7 is commented
Is it normal or is it an error in this file ? I yes, how is it possible to correct it ?
Thank you
Code: Select all
#ifdef HAL_UART_MODULE_ENABLED
WEAK const PinMap PinMap_UART_RX[] = {
// {PA_1, UART4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)}, // ETH RMII Ref Clk
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
// {PA_8, UART7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF11_UART7)}, // USB SOF
// {PA_10, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_LPUART)}, // USB ID
// {PA_10, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // USB ID
// {PA_11, UART4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_UART4)}, // USB DM
{PB_3, UART7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF11_UART7)}, // SWO
{PB_5, UART5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF14_UART5)},
// {PB_7, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART)}, // LD2 LED_BLUE (ZI)
// {PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // LD2 LED_BLUE (ZI)