Dear RAK Development Team,
I hope this message finds you well. I am currently working on a project using the RAK3172 module as a master device. The setup involves utilizing the two available UART peripherals: UART1 and UART2.
Project Overview:
UART1: I plan to connect an RS485 interface to receive data from a temperature sensor.
UART2: I would like to use this UART for both sending AT commands and serial debugging, allowing me to output received data and diagnostic messages to a serial monitor simultaneously.
However, I have noticed in the datasheet that:
PA3/UART2_RX: Reserved - UART2/LPUART1 Interface (AT Commands and Firmware Update)
PA2/UART2_TX: Reserved - UART2/LPUART1 Interface (AT Commands and Firmware Update
PB6/UART1_TX UART1 Interface
PB7/UART1_RX UART1 Interface
Questions:
- Is it possible to use UART2 for both AT commands and serial debugging simultaneously, despite UART2 being reserved for AT commands and firmware updates?
- If yes, could you provide guidance or best practices on how to implement this? Specifically, Iām interested in how to configure the UARTs and manage threading to avoid any conflicts.
- Are there any limitations or considerations I should be aware of regarding simultaneous UART usage in this manner?
I appreciate your assistance and look forward to your guidance on how to achieve this setup effectively.
Thank you for your support!
Best regards,
Anupam
[email protected]