Question
Serial communication via UART on SMT32L475 Discovery kit IoT
on the SMT32L475 Discovery kit IoT, I would like to implement the following commands from Arduino:
Serial1.begin(BPS, SERIAL_7N2);
Serial1.print(msg)
while (Serial1.available())
{
t = Serial1.read();
wmsg[ct] = t;
ct++;
*bufflen = ct;
}According to the pinout, the pins PA0&PA1 are connected to Tx&Rx resp.That corresponsds to UART4. So I tried doing this with:
MX_USART4_UART_Init();
HAL_UART_Transmit(&huart4, msg, sizeof(msg), 1000);
huart4_status = HAL_UART_Receive(&huart4, pData, sizeof(pData), 1000);But nothing is transmitted on the Tx/Rx wires, and nothing comes back.
How can I do Tx/Rx comms with an external board from the SMT32L475 Discovery kit IoT?