Explorar o código

Compiled with 15 frames - usb serial working

Morio %!s(int64=2) %!d(string=hai) anos
pai
achega
33ad9a1c95
Modificáronse 2 ficheiros con 11 adicións e 5 borrados
  1. 7 1
      lib/ZuluSCSI_platform_RP2040/rp2040-daynaport.ld
  2. 4 4
      platformio.ini

+ 7 - 1
lib/ZuluSCSI_platform_RP2040/rp2040-daynaport.ld

@@ -87,7 +87,13 @@ SECTIONS
         *libc*:*toa*(.text .text*)
         *libminIni.a:(.text .text*)
         *libCUEParser.a:(.text .text*)
-
+        *libpicow*(.text .text*)
+        *libpico.a:*usb*(.text .text*)
+        *libpico.a:*msc*(.text .text*)
+        *libpico.a:*tusb*(.text .text*)
+        *libpico.a:*hid*(.text .text*)
+        *libpico.a:*cdc*(.text .text*)
+        *libpico.a:*dcd*(.text .text*)
         /* RP2040 breakpoints in RAM code don't always work very well
          * because the boot routine tends to overwrite them.
          * Uncommenting this line puts all code in flash.

+ 4 - 4
platformio.ini

@@ -156,7 +156,7 @@ lib_deps =
     SCSI2SD
     CUEParser
 build_flags =
-    -O2 -Isrc -ggdb -g3
+    -O2 -Isrc
     -Wall -Wno-sign-compare -Wno-ignored-qualifiers
     -DSPI_DRIVER_SELECT=3
     -DSD_CHIP_SELECT_MODE=2
@@ -169,11 +169,11 @@ build_flags =
 ; These take a large portion of the SRAM and can be adjusted
 ; It is important to leave enough free space for USB serial to work
 ;   Around 7220 bytes seems to be enough.
-    -DLOGBUFSIZE=6144
-    -DPREFETCH_BUFFER_SIZE=8192
+    -DLOGBUFSIZE=2048
+    -DPREFETCH_BUFFER_SIZE=0
     ; 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
-    -DNETWORK_PACKET_QUEUE_SIZE=10
+    -DNETWORK_PACKET_QUEUE_SIZE=15
 ; build flags mirroring the framework-arduinopico#v3.6.0-DaynaPORT static library build
     -DPICO_CYW43_ARCH_POLL=1
 	-DCYW43_LWIP=0