Skip to content

Commit

Permalink
Adjust prefetch buffer to fix SRAM overflow
Browse files Browse the repository at this point in the history
The fixes a linker issue where new code pushed the SRAM utilization
over 100%. Making the prefetch buffer smaller fixes the issue.
  • Loading branch information
morio committed Oct 20, 2023
1 parent 8e46b47 commit 9f61b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ build_flags =
-DZULUSCSI_DAYNAPORT
; These take a large portion of the SRAM and can be adjusted
-DLOGBUFSIZE=8192
-DPREFETCH_BUFFER_SIZE=8192
-DPREFETCH_BUFFER_SIZE=7168
-DSCSI2SD_BUFFER_SIZE=57344
; This controls the depth of 2 x NETWORK_PACKET_MAX_SIZE (1520 bytes)
; For example a queue size of 10 would be 10 x 2 x 1520 = 30400 bytes
Expand Down

0 comments on commit 9f61b3c

Please sign in to comment.