Skip to content

Commit cc7eb1a

Browse files
committed
nrf/boards: Use 64 byte raw-paste buffer on PCA10028 and PCA10040.
To workaround issues with JLink CDC. Signed-off-by: Damien George <[email protected]>
1 parent e676b58 commit cc7eb1a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ports/nrf/boards/PCA10028/mpconfigboard.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@
6060
#define MICROPY_HW_SPI0_MISO (28)
6161

6262
#define HELP_TEXT_BOARD_LED "1,2,3,4"
63+
64+
// The JLink CDC on the PCA10028 cannot accept more than 64 incoming bytes at a time.
65+
// That makes the UART REPL unreliable in general. But it can be improved to some
66+
// extent by setting the raw-paste buffer size to that limit of 64.
67+
#define MICROPY_REPL_STDIN_BUFFER_MAX (64)

ports/nrf/boards/PCA10040/mpconfigboard.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@
6464
#define MICROPY_HW_PWM2_NAME "PWM2"
6565

6666
#define HELP_TEXT_BOARD_LED "1,2,3,4"
67+
68+
// The JLink CDC on the PCA10040 cannot accept more than 64 incoming bytes at a time.
69+
// That makes the UART REPL unreliable in general. But it can be improved to some
70+
// extent by setting the raw-paste buffer size to that limit of 64.
71+
#define MICROPY_REPL_STDIN_BUFFER_MAX (64)

0 commit comments

Comments
 (0)