Bladeren bron

Forgot to commit this change with the merge

Morio 1 jaar geleden
bovenliggende
commit
68df5a0bb0
1 gewijzigde bestanden met toevoegingen van 11 en 2 verwijderingen
  1. 11 2
      platformio.ini

+ 11 - 2
platformio.ini

@@ -92,7 +92,8 @@ board_build.core = earlephilhower
 board = zuluscsi_rp2040
 framework = arduino
 ; How much flash in bytes the bootloader and main app will be allocated
-; It is used as the starting point for a ROM image save in flash
+; It is used as the starting point for a ROM image saved in flash
+; Changing this will cause issues with boards that already have a ROM drive in flash
 program_flash_allocation = 360448
 extra_scripts =
     src/build_bootloader.py
@@ -120,6 +121,12 @@ build_flags =
     -DUSE_ARDUINO=1
     -DPICO_FLASH_SPI_CLKDIV=2
     -DZULUSCSI_V2_0
+    -DROMDRIVE_OFFSET=${env:ZuluSCSI_RP2040.program_flash_allocation}
+; build flags mirroring the framework-arduinopico#v3.6.0-DaynaPORT static library build
+    -DPICO_CYW43_ARCH_POLL=1
+	-DCYW43_LWIP=0
+	-DCYW43_USE_OTP_MAC=0
+
 
 ; ZuluSCSI RP2040 hardware platform, as above, but with audio output support enabled
 [env:ZuluSCSI_RP2040_Audio]
@@ -142,6 +149,7 @@ build_flags =
     -DHAS_SDIO_CLASS
     -DUSE_ARDUINO=1
     -DZULUSCSI_PICO
+    -DROMDRIVE_OFFSET=${env:ZuluSCSI_RP2040.program_flash_allocation}
 ; build flags mirroring the framework-arduinopico#v3.6.0-DaynaPORT static library build
     -DPICO_CYW43_ARCH_POLL=1
 	-DCYW43_LWIP=0
@@ -157,7 +165,7 @@ framework = arduino
 board = rpipicow
 board_build.core = earlephilhower
 ; How much flash in bytes the bootloader and main app will be allocated
-; It is used as the starting point for a ROM image save in flash
+; It is used as the starting point for a ROM image saved in flash
 program_flash_allocation = 589824
 extra_scripts =
     src/build_bootloader.py
@@ -226,6 +234,7 @@ build_flags =
     -DHAS_SDIO_CLASS
     -DUSE_ARDUINO=1
     -DZULUSCSI_BS2
+    -DROMDRIVE_OFFSET=${env:ZuluSCSI_RP2040.program_flash_allocation}
 ; build flags mirroring the framework-arduinopico#v3.6.0-DaynaPORT static library build
     -DPICO_CYW43_ARCH_POLL=1
 	-DCYW43_LWIP=0