Skip to content

Commit

Permalink
Move temp buffer for write check to global memory
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes committed May 15, 2024
1 parent 247120c commit f35d812
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion targets/ChibiOS/ORGPAL_PALX/target_littlefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -82,7 +86,6 @@ int32_t hal_lfs_prog_0(

#ifdef DEBUG

uint8_t tempBuffer[size];
memset(tempBuffer, 0xBB, size);

// read back and compare
Expand Down

0 comments on commit f35d812

Please sign in to comment.