From f35d8128999a3a21caee9f389d329031b552115c Mon Sep 17 00:00:00 2001 From: josesimoes Date: Wed, 15 May 2024 17:30:55 +0100 Subject: [PATCH] Move temp buffer for write check to global memory --- targets/ChibiOS/ORGPAL_PALX/target_littlefs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/targets/ChibiOS/ORGPAL_PALX/target_littlefs.c b/targets/ChibiOS/ORGPAL_PALX/target_littlefs.c index 8b9c7aa3b8..5dd12c3fcb 100644 --- a/targets/ChibiOS/ORGPAL_PALX/target_littlefs.c +++ b/targets/ChibiOS/ORGPAL_PALX/target_littlefs.c @@ -14,6 +14,10 @@ CC_ALIGN_DATA(CACHE_LINE_SIZE) #endif uint8_t dataBuffer_0[CACHE_SIZE_ALIGN(uint8_t, W25Q128_PAGE_SIZE)]; +#ifdef DEBUG +uint8_t tempBuffer[W25Q128_PAGE_SIZE]; +#endif + /////////////// // declarations @@ -82,7 +86,6 @@ int32_t hal_lfs_prog_0( #ifdef DEBUG - uint8_t tempBuffer[size]; memset(tempBuffer, 0xBB, size); // read back and compare