Selaa lähdekoodia

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 2 vuotta sitten
vanhempi
sitoutus
9f61b3cdfb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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