using the UART on Semtech SX1272MB2DAS Lora shield plugged onto the SMT32L475 Discovery kit IoT
I'm using the Semtech SX1272MB2DAS Lora shield on the SMT32L475 Discovery kit IoT node.
ON the Lora shield there is a UART plug which takes a Grove cable. I connected that to a legacy PCB which I managed to operate using an Arduino. It's just a simple serial connection, where commands are transmitted and received via Tx/Rx.
I have an oscilloscope attached to the Tx/Rx pins, and with the Arduino I would see the voltage oscillations as I send data, indicateing that it is working.
When I use the following code, nothing happens:
MX_USART2_UART_Init();
HAL_UART_Transmit(&huart2, msg, sizeof(msg), 1000); msg contains a particular byte sequence which the sensor expects. How can I address the Grove UART on the Lora schield. According to the specs, the UART has been pinned through to the STM32L475 MCU so it should be adressable.
Failing that, how can I communicate with this device using UART from the STM32 Discovery kit IoT Node?