Skip to content

Commit

Permalink
crc32: Increase local buffer size in STM32 impl to 1 KiB
Browse files Browse the repository at this point in the history
* ADIv5 will run in autoincrement mode for up to 10-bit boundary (1024 octets)
  • Loading branch information
ALTracer committed Jan 3, 2024
1 parent abcb458 commit 902d061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,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;

Expand Down

0 comments on commit 902d061

Please sign in to comment.