diff options
author | Damien George <damien@micropython.org> | 2025-04-22 11:54:13 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-05-21 13:14:42 +1000 |
commit | cc7eb1a5351c0d7d60f084dc79ccd0fa047b259e (patch) | |
tree | 85c965730684ca612d2fdc72c214bd7fc28ba2de | |
parent | e676b58d9fae4c4ebebfe0ea7fb787317dafba38 (diff) | |
download | micropython-cc7eb1a5351c0d7d60f084dc79ccd0fa047b259e.tar.gz micropython-cc7eb1a5351c0d7d60f084dc79ccd0fa047b259e.zip |
nrf/boards: Use 64 byte raw-paste buffer on PCA10028 and PCA10040.
To workaround issues with JLink CDC.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r-- | ports/nrf/boards/PCA10028/mpconfigboard.h | 5 | ||||
-rw-r--r-- | ports/nrf/boards/PCA10040/mpconfigboard.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ports/nrf/boards/PCA10028/mpconfigboard.h b/ports/nrf/boards/PCA10028/mpconfigboard.h index 3dc8ed3459..df2e4e85d9 100644 --- a/ports/nrf/boards/PCA10028/mpconfigboard.h +++ b/ports/nrf/boards/PCA10028/mpconfigboard.h @@ -60,3 +60,8 @@ #define MICROPY_HW_SPI0_MISO (28) #define HELP_TEXT_BOARD_LED "1,2,3,4" + +// The JLink CDC on the PCA10028 cannot accept more than 64 incoming bytes at a time. +// That makes the UART REPL unreliable in general. But it can be improved to some +// extent by setting the raw-paste buffer size to that limit of 64. +#define MICROPY_REPL_STDIN_BUFFER_MAX (64) diff --git a/ports/nrf/boards/PCA10040/mpconfigboard.h b/ports/nrf/boards/PCA10040/mpconfigboard.h index b965bf319d..2b1c4c7ef5 100644 --- a/ports/nrf/boards/PCA10040/mpconfigboard.h +++ b/ports/nrf/boards/PCA10040/mpconfigboard.h @@ -64,3 +64,8 @@ #define MICROPY_HW_PWM2_NAME "PWM2" #define HELP_TEXT_BOARD_LED "1,2,3,4" + +// The JLink CDC on the PCA10040 cannot accept more than 64 incoming bytes at a time. +// That makes the UART REPL unreliable in general. But it can be improved to some +// extent by setting the raw-paste buffer size to that limit of 64. +#define MICROPY_REPL_STDIN_BUFFER_MAX (64) |