From c869935a9be39c79268901204c15d78f7c564d0c Mon Sep 17 00:00:00 2001 From: ALTracer Date: Mon, 1 Jan 2024 19:35:00 +0300 Subject: [PATCH] crc32: Increase local buffer size in STM32 impl to 1 KiB * ADIv5 will run in autoincrement mode for up to 10-bit boundary (1024 octets) --- src/crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crc32.c b/src/crc32.c index 0762ceda489..6f33cb2753b 100644 --- a/src/crc32.c +++ b/src/crc32.c @@ -152,7 +152,7 @@ __attribute__((alias("generic_crc32"))) bool bmd_crc32( bool stm32_crc32(target_s *const target, uint32_t *const result, const uint32_t base, const size_t len) { - uint8_t bytes[128U]; + uint8_t bytes[1024U]; /* ADIv5 MEM-AP AutoInc range */ CRC_CR |= CRC_CR_RESET;