From d7bacae29da2ffd2d8d3fe8d67441bb45098d4fb Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 12 Feb 2021 10:57:13 -0500 Subject: [PATCH] pru: Request the host not send more than 496 bytes to the pru Writes over 496 bytes don't fit in a single "rpmsg" page. Request the host limit the number of bytes outstanding to avoid getting "write: (22)Invalid argument" errors. Signed-off-by: Kevin O'Connor --- src/pru/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pru/main.c b/src/pru/main.c index 2528a223..37354d90 100644 --- a/src/pru/main.c +++ b/src/pru/main.c @@ -115,6 +115,9 @@ DECL_INIT(timer_init); * Console IO ****************************************************************/ +// Writes over 496 bytes don't fit in a single "rpmsg" page +DECL_CONSTANT("RECEIVE_WINDOW", 496 - 1); + // Process any incoming commands void console_task(void)