Is it possible to Flash RAK11720 through serial1 interface?

Hello everyone, at my company a new PCB was designed based on RAK11720 and the wrong uart interface was chosen as console logs and flashing port

image

I figured out how to properly set UART1 to receive AT commands like UART0 default interface, modifying ./variants/WisCore_RAK11720_Board/board_basic.h

#ifdef RAK2560_HUB_VA
#define DEFAULT_SERIAL_CONSOLE		SERIAL_UART1
#else
#ifdef SUPPORT_USB
#define DEFAULT_SERIAL_CONSOLE		SERIAL_USB0
#else
#define DEFAULT_SERIAL_CONSOLE		SERIAL_UART1
#endif
#endif

#define DEFAULT_SERIAL_UART0_MODE       SERVICE_MODE_TYPE_CLI
#define DEFAULT_SERIAL_UART1_MODE       SERVICE_MODE_TYPE_CLI
#define DEFAULT_SERIAL_UART2_MODE       SERVICE_MODE_TYPE_CUSTOM
#ifdef SUPPORT_USB
#define DEFAULT_SERIAL_USB0_MODE        SERVICE_MODE_TYPE_CLI
#endif
#ifdef SUPPORT_BLE
#define DEFAULT_SERIAL_BLE0_MODE        SERVICE_MODE_TYPE_CLI
#endif
#ifdef SUPPORT_NFC
#define DEFAULT_SERIAL_NFC_MODE         SERVICE_MODE_TYPE_CLI
#endif

#ifdef RAK2560_HUB_VA
#define DEFAULT_SERIAL_BAUDRATE		9600
#else
#define DEFAULT_SERIAL_BAUDRATE		115200
#endif

but the mcu stopped to response when I tried to flash it using that interface (UART1)

is there any aditional configuration that must be considered to make it work through standard arduino flashing?

Hi @jvech ,

If you are using RUI3, it is only available on UART0. There is no custom implementation that will allow you to bootload on UART1.