From 6fbf6b29864c4469d3fc3b6bb3e2a81cf65e6f28 Mon Sep 17 00:00:00 2001 From: geeksville Date: Fri, 10 Jul 2020 13:24:00 -0700 Subject: [PATCH] RAK815 WIP - use 115200 for serial to USB on this board, best it can do --- platformio.ini | 2 ++ src/configuration.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/platformio.ini b/platformio.ini index 816373ace..b78f387b5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -189,6 +189,8 @@ board = rak815 debug_tool = jlink upload_protocol = jlink monitor_port = /dev/ttyUSB0 +; this board's serial chip can only run at 115200, not faster +monitor_speed = 115200 # For experimenting with RAM sizes # board_build.ldscript = linker/nrf52840_s140_sim832.ld diff --git a/src/configuration.h b/src/configuration.h index d51978afb..18ea757a8 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -297,7 +297,11 @@ along with this program. If not, see . // DEBUG // ----------------------------------------------------------------------------- +#ifdef CONSOLE_MAX_BAUD +#define SERIAL_BAUD CONSOLE_MAX_BAUD +#else #define SERIAL_BAUD 921600 // Serial debug baud rate +#endif #include "SerialConsole.h"