From 6ac05af8e1408a1f5cd27d57c8581a9f4197a2f5 Mon Sep 17 00:00:00 2001 From: Philipp Ebensberger Date: Sun, 7 Jun 2020 18:23:36 +0200 Subject: [PATCH] mimxrt/tusb_config.h: Preliminary fix for TinyUSB HS endpoint overflow. Sending more than 64 bytes to the USB CDC endpoint in HS mode will lead to a hard crash. This commit fixes the issue, although there may be a better fix from upstream TinyUSB in the future. --- ports/mimxrt/tusb_config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ports/mimxrt/tusb_config.h b/ports/mimxrt/tusb_config.h index f2367c2044..c7ec05e632 100644 --- a/ports/mimxrt/tusb_config.h +++ b/ports/mimxrt/tusb_config.h @@ -30,7 +30,8 @@ #define CFG_TUSB_OS (OPT_OS_NONE) #define CFG_TUD_CDC (1) -#define CFG_TUD_CDC_RX_BUFSIZE (256) -#define CFG_TUD_CDC_TX_BUFSIZE (256) +#define CFG_TUD_CDC_RX_BUFSIZE (512) +#define CFG_TUD_CDC_TX_BUFSIZE (512) +#define CFG_TUD_CDC_EPSIZE (512) #endif // MICROPY_INCLUDED_MIMXRT_TUSB_CONFIG_H