Explorar o código

Adjust prefetch buffer to fix SRAM overflow

The fixes a linker issue where new code pushed the SRAM utilization
over 100%. Making the prefetch buffer smaller fixes the issue.
Morio %!s(int64=2) %!d(string=hai) anos
pai
achega
9f61b3cdfb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platformio.ini

+ 1 - 1
platformio.ini

@@ -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