From 4cc5d11142bb6dec6b435b1fb604f1f5116cb403 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 18 Aug 2026 18:02:25 +0200 Subject: [PATCH] Fix VCP reply buffer alignment --- App/app/uart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App/app/uart.c b/App/app/uart.c index 49be1082..177666b5 100644 --- a/App/app/uart.c +++ b/App/app/uart.c @@ -197,7 +197,8 @@ typedef union #ifdef ENABLE_USB static void SendReply_VCP(void *pReply, uint16_t Size) { - static uint8_t VCP_ReplyBuf[MAX_REPLY_SIZE + sizeof(Header_t) + sizeof(Footer_t)]; + static uint8_t VCP_ReplyBuf[MAX_REPLY_SIZE + sizeof(Header_t) + sizeof(Footer_t)] + __attribute__((aligned(4))); // !! if (Size > MAX_REPLY_SIZE)