|
@@ -1,8 +1,7 @@
|
|
|
; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
|
|
; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
|
|
|
|
|
|
|
|
[platformio]
|
|
[platformio]
|
|
|
-;default_envs = ZuluSCSIv1_0, ZuluSCSIv1_0_mini, ZuluSCSIv1_1_plus, ZuluSCSI_RP2040, ZuluSCSI_RP2040_Audio, ZuluSCSI_Pico, ZuluSCSI_Pico_DaynaPORT, ZuluSCSI_BS2, ZuluSCSI_Pico_2
|
|
|
|
|
-default_envs = ZuluSCSI_Pico_2
|
|
|
|
|
|
|
+default_envs = ZuluSCSIv1_0, ZuluSCSIv1_0_mini, ZuluSCSIv1_1_plus, ZuluSCSI_RP2040, ZuluSCSI_RP2040_Audio, ZuluSCSI_Pico, ZuluSCSI_Pico_DaynaPORT, ZuluSCSI_BS2, ZuluSCSI_Pico_2
|
|
|
|
|
|
|
|
; Example platform to serve as a base for porting efforts
|
|
; Example platform to serve as a base for porting efforts
|
|
|
[env:template]
|
|
[env:template]
|
|
@@ -93,35 +92,26 @@ build_flags =
|
|
|
-DSDFAT_NOARDUINO
|
|
-DSDFAT_NOARDUINO
|
|
|
-DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
-DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
|
|
|
-; ZuluSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
|
|
|
|
|
-[env:ZuluSCSI_RP2040]
|
|
|
|
|
-platform = https://github.com/maxgerhardt/platform-raspberrypi.git#5e87ae34ca025274df25b3303e9e9cb6c120123c
|
|
|
|
|
|
|
+; ZuluSCSI setting shared among Raspberry Pi microcontroller like the RP2040 and RP2350
|
|
|
|
|
+[env:ZuluSCSI_RP_BASE]
|
|
|
|
|
+platform = https://github.com/maxgerhardt/platform-raspberrypi.git#2d445020acf8b792768a5fa5ba1870ac9607c11c
|
|
|
platform_packages =
|
|
platform_packages =
|
|
|
- framework-arduinopico@https://github.com/rabbitholecomputing/arduino-pico.git#v3.6.0-DaynaPORT
|
|
|
|
|
-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 saved in flash
|
|
|
|
|
-; Changing this will cause issues with boards that already have a ROM drive in flash
|
|
|
|
|
-program_flash_allocation = 360448
|
|
|
|
|
|
|
+ framework-arduinopico@https://github.com/rabbitholecomputing/arduino-pico.git#v4.1.1-DaynaPORT
|
|
|
extra_scripts =
|
|
extra_scripts =
|
|
|
src/build_bootloader.py
|
|
src/build_bootloader.py
|
|
|
- lib/ZuluSCSI_platform_RP2040/process-linker-script.py
|
|
|
|
|
-board_build.ldscript = ${BUILD_DIR}/rp2040.ld
|
|
|
|
|
-ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
|
|
|
|
|
|
|
+ src/process-linker-script.py
|
|
|
|
|
+board_build.core = earlephilhower
|
|
|
|
|
+board_build.ldscript = ${BUILD_DIR}/rp_linker.ld ; created by src/process-linker-script.py
|
|
|
|
|
+framework = arduino
|
|
|
lib_deps =
|
|
lib_deps =
|
|
|
SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.3-gpt
|
|
SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.3-gpt
|
|
|
minIni
|
|
minIni
|
|
|
- ZuluSCSI_platform_RP2040
|
|
|
|
|
SCSI2SD
|
|
SCSI2SD
|
|
|
CUEParser
|
|
CUEParser
|
|
|
upload_protocol = cmsis-dap
|
|
upload_protocol = cmsis-dap
|
|
|
debug_tool = cmsis-dap
|
|
debug_tool = cmsis-dap
|
|
|
debug_build_flags =
|
|
debug_build_flags =
|
|
|
-O2 -ggdb -g3
|
|
-O2 -ggdb -g3
|
|
|
-; The values can be adjusted down to get a debug build to fit in to SRAM
|
|
|
|
|
- -DLOGBUFSIZE=4096
|
|
|
|
|
build_flags =
|
|
build_flags =
|
|
|
-O2 -Isrc -ggdb -g3
|
|
-O2 -Isrc -ggdb -g3
|
|
|
-Wall -Wno-sign-compare -Wno-ignored-qualifiers
|
|
-Wall -Wno-sign-compare -Wno-ignored-qualifiers
|
|
@@ -131,14 +121,36 @@ build_flags =
|
|
|
-DHAS_SDIO_CLASS
|
|
-DHAS_SDIO_CLASS
|
|
|
-DUSE_ARDUINO=1
|
|
-DUSE_ARDUINO=1
|
|
|
-DPICO_FLASH_SPI_CLKDIV=2
|
|
-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
|
|
|
|
|
|
|
+ -DPLATFORM_MASS_STORAGE
|
|
|
|
|
+ -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
+; build flags mirroring the framework-arduinopico#v4.1.1-DaynaPORT static library build
|
|
|
-DPICO_CYW43_ARCH_POLL=1
|
|
-DPICO_CYW43_ARCH_POLL=1
|
|
|
-DCYW43_LWIP=0
|
|
-DCYW43_LWIP=0
|
|
|
-DCYW43_USE_OTP_MAC=0
|
|
-DCYW43_USE_OTP_MAC=0
|
|
|
- -DPLATFORM_MASS_STORAGE
|
|
|
|
|
- -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+; ZuluSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
|
|
|
|
|
+[env:ZuluSCSI_RP2040]
|
|
|
|
|
+extends = env:ZuluSCSI_RP_BASE
|
|
|
|
|
+board = zuluscsi_rp2040
|
|
|
|
|
+; How much flash in bytes the bootloader and main app will be allocated
|
|
|
|
|
+; 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
|
|
|
|
|
+linker_script_template = lib/ZuluSCSI_platform_RP2040/rp2040-template.ld
|
|
|
|
|
+ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
|
|
|
|
|
+lib_deps =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.lib_deps}
|
|
|
|
|
+ ZuluSCSI_platform_RP2040
|
|
|
|
|
+debug_build_flags =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.debug_build_flags}
|
|
|
|
|
+; The values can be adjusted down to get a debug build to fit in to SRAM
|
|
|
|
|
+ -DLOGBUFSIZE=4096
|
|
|
|
|
+build_flags =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.build_flags}
|
|
|
|
|
+ -DZULUSCSI_V2_0
|
|
|
|
|
+ -DROMDRIVE_OFFSET=${env:ZuluSCSI_RP2040.program_flash_allocation}
|
|
|
|
|
|
|
|
; ZuluSCSI RP2040 hardware platform, as above, but with audio output support enabled
|
|
; ZuluSCSI RP2040 hardware platform, as above, but with audio output support enabled
|
|
|
[env:ZuluSCSI_RP2040_Audio]
|
|
[env:ZuluSCSI_RP2040_Audio]
|
|
@@ -151,70 +163,47 @@ build_flags =
|
|
|
; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
|
|
; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
|
|
|
; Part of the ZuluSCSI_RP2040 platform, but with different pins.
|
|
; Part of the ZuluSCSI_RP2040 platform, but with different pins.
|
|
|
[env:ZuluSCSI_Pico]
|
|
[env:ZuluSCSI_Pico]
|
|
|
-extends = env:ZuluSCSI_RP2040
|
|
|
|
|
|
|
+extends = env:ZuluSCSI_RP_BASE
|
|
|
|
|
+board = rpipico
|
|
|
|
|
+lib_deps =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.lib_deps}
|
|
|
|
|
+ ZuluSCSI_platform_RP2040
|
|
|
|
|
+program_flash_allocation = 360448
|
|
|
|
|
+linker_script_template = lib/ZuluSCSI_platform_RP2040/rp2040-template.ld
|
|
|
|
|
+ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
|
|
|
build_flags =
|
|
build_flags =
|
|
|
- -O2 -Isrc -ggdb -g3
|
|
|
|
|
- -Wall -Wno-sign-compare -Wno-ignored-qualifiers
|
|
|
|
|
- -DSPI_DRIVER_SELECT=3
|
|
|
|
|
- -DSD_CHIP_SELECT_MODE=2
|
|
|
|
|
- -DENABLE_DEDICATED_SPI=1
|
|
|
|
|
- -DHAS_SDIO_CLASS
|
|
|
|
|
- -DUSE_ARDUINO=1
|
|
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.build_flags}
|
|
|
-DZULUSCSI_PICO
|
|
-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
|
|
|
|
|
- -DCYW43_USE_OTP_MAC=0
|
|
|
|
|
- -DPLATFORM_MASS_STORAGE
|
|
|
|
|
- -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
|
|
+ -DROMDRIVE_OFFSET=${env:ZuluSCSI_Pico.program_flash_allocation}
|
|
|
|
|
|
|
|
; Build for the ZuluSCSI Pico carrier board with a Pico-W
|
|
; Build for the ZuluSCSI Pico carrier board with a Pico-W
|
|
|
; for SCSI DaynaPORT emulation
|
|
; for SCSI DaynaPORT emulation
|
|
|
[env:ZuluSCSI_Pico_DaynaPORT]
|
|
[env:ZuluSCSI_Pico_DaynaPORT]
|
|
|
-platform = https://github.com/maxgerhardt/platform-raspberrypi.git#5e87ae34ca025274df25b3303e9e9cb6c120123c
|
|
|
|
|
-platform_packages =
|
|
|
|
|
- framework-arduinopico@https://github.com/rabbitholecomputing/arduino-pico.git#v3.6.0-DaynaPORT
|
|
|
|
|
-framework = arduino
|
|
|
|
|
|
|
+extends = env:ZuluSCSI_RP_BASE
|
|
|
board = rpipicow
|
|
board = rpipicow
|
|
|
-board_build.core = earlephilhower
|
|
|
|
|
; How much flash in bytes the bootloader and main app will be allocated
|
|
; How much flash in bytes the bootloader and main app will be allocated
|
|
|
; It is used as the starting point for a ROM image saved in flash
|
|
; It is used as the starting point for a ROM image saved in flash
|
|
|
program_flash_allocation = 589824
|
|
program_flash_allocation = 589824
|
|
|
-extra_scripts =
|
|
|
|
|
- src/build_bootloader.py
|
|
|
|
|
- lib/ZuluSCSI_platform_RP2040/process-linker-script.py
|
|
|
|
|
|
|
+linker_script_template = lib/ZuluSCSI_platform_RP2040/rp2040-template.ld
|
|
|
ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
|
|
ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
|
|
|
-board_build.ldscript = ${BUILD_DIR}/rp2040.ld
|
|
|
|
|
-debug_tool = cmsis-dap
|
|
|
|
|
|
|
+lib_deps =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.lib_deps}
|
|
|
|
|
+ ZuluSCSI_platform_RP2040
|
|
|
|
|
+
|
|
|
debug_build_flags =
|
|
debug_build_flags =
|
|
|
- -O2 -ggdb -g3
|
|
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.debug_build_flags}
|
|
|
-DLOGBUFSIZE=4096
|
|
-DLOGBUFSIZE=4096
|
|
|
-DPREFETCH_BUFFER_SIZE=0
|
|
-DPREFETCH_BUFFER_SIZE=0
|
|
|
-DSCSI2SD_BUFFER_SIZE=57344
|
|
-DSCSI2SD_BUFFER_SIZE=57344
|
|
|
; This controls the depth NETWORK_PACKET_MAX_SIZE (1520 bytes)
|
|
; This controls the depth NETWORK_PACKET_MAX_SIZE (1520 bytes)
|
|
|
; For example a queue size of 10 would be 10 x 1520 = 30400 bytes
|
|
; For example a queue size of 10 would be 10 x 1520 = 30400 bytes
|
|
|
- -DNETWORK_PACKET_QUEUE_SIZE=10
|
|
|
|
|
|
|
+ -DNETWORK_PACKET_QUEUE_SIZE=8
|
|
|
; This flag enables verbose logging of TCP/IP traffic and other information
|
|
; This flag enables verbose logging of TCP/IP traffic and other information
|
|
|
; it also takes up a bit of SRAM so it should be disabled with production code
|
|
; it also takes up a bit of SRAM so it should be disabled with production code
|
|
|
-DNETWORK_DEBUG_LOGGING
|
|
-DNETWORK_DEBUG_LOGGING
|
|
|
- -DPLATFORM_MASS_STORAGE
|
|
|
|
|
- -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
|
|
|
|
|
-lib_deps =
|
|
|
|
|
- SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.3-gpt
|
|
|
|
|
- minIni
|
|
|
|
|
- ZuluSCSI_platform_RP2040
|
|
|
|
|
- SCSI2SD
|
|
|
|
|
- CUEParser
|
|
|
|
|
build_flags =
|
|
build_flags =
|
|
|
- -O2 -Isrc
|
|
|
|
|
- -Wall -Wno-sign-compare -Wno-ignored-qualifiers
|
|
|
|
|
- -DSPI_DRIVER_SELECT=3
|
|
|
|
|
- -DSD_CHIP_SELECT_MODE=2
|
|
|
|
|
- -DENABLE_DEDICATED_SPI=1
|
|
|
|
|
- -DHAS_SDIO_CLASS
|
|
|
|
|
- -DUSE_ARDUINO=1
|
|
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.build_flags}
|
|
|
-DZULUSCSI_PICO
|
|
-DZULUSCSI_PICO
|
|
|
-DZULUSCSI_NETWORK
|
|
-DZULUSCSI_NETWORK
|
|
|
-DZULUSCSI_DAYNAPORT
|
|
-DZULUSCSI_DAYNAPORT
|
|
@@ -226,39 +215,46 @@ build_flags =
|
|
|
; This controls the depth of NETWORK_PACKET_MAX_SIZE (1520 bytes)
|
|
; This controls the depth of NETWORK_PACKET_MAX_SIZE (1520 bytes)
|
|
|
; For example a queue size of 10 would be 10 x 1520 = 15200 bytes
|
|
; For example a queue size of 10 would be 10 x 1520 = 15200 bytes
|
|
|
-DNETWORK_PACKET_QUEUE_SIZE=14
|
|
-DNETWORK_PACKET_QUEUE_SIZE=14
|
|
|
-
|
|
|
|
|
; This flag enables verbose logging of TCP/IP traffic and other information
|
|
; This flag enables verbose logging of TCP/IP traffic and other information
|
|
|
; it also takes up a bit of SRAM so it should be disabled with production code
|
|
; it also takes up a bit of SRAM so it should be disabled with production code
|
|
|
- ;-DNETWORK_DEBUG_LOGGING
|
|
|
|
|
|
|
+ ; -DNETWORK_DEBUG_LOGGING
|
|
|
|
|
|
|
|
-; 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
|
|
|
|
|
- ; -DPIO_FRAMEWORK_ARDUINO_NO_USB
|
|
|
|
|
- -DPLATFORM_MASS_STORAGE
|
|
|
|
|
- -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
|
|
|
|
|
; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
|
|
; Variant of RP2040 platform, based on Raspberry Pico board and a carrier PCB
|
|
|
; Differs in pinout from ZuluSCSI_RP2040 platform, but shares most of the code.
|
|
; Differs in pinout from ZuluSCSI_RP2040 platform, but shares most of the code.
|
|
|
[env:ZuluSCSI_BS2]
|
|
[env:ZuluSCSI_BS2]
|
|
|
-extends = env:ZuluSCSI_RP2040
|
|
|
|
|
|
|
+extends = env:ZuluSCSI_RP_BASE
|
|
|
|
|
+board = rpipico
|
|
|
|
|
+program_flash_allocation = 360448
|
|
|
|
|
+linker_script_template = lib/ZuluSCSI_platform_RP2040/rp2040-template.ld
|
|
|
|
|
+ldscript_bootloader = lib/ZuluSCSI_platform_RP2040/rp2040_btldr.ld
|
|
|
|
|
+lib_deps =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.lib_deps}
|
|
|
|
|
+ ZuluSCSI_platform_RP2040
|
|
|
build_flags =
|
|
build_flags =
|
|
|
- -O2 -Isrc -ggdb -g3
|
|
|
|
|
- -Wall -Wno-sign-compare -Wno-ignored-qualifiers
|
|
|
|
|
- -DSPI_DRIVER_SELECT=3
|
|
|
|
|
- -DSD_CHIP_SELECT_MODE=2
|
|
|
|
|
- -DENABLE_DEDICATED_SPI=1
|
|
|
|
|
- -DHAS_SDIO_CLASS
|
|
|
|
|
- -DUSE_ARDUINO=1
|
|
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.build_flags}
|
|
|
-DZULUSCSI_BS2
|
|
-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
|
|
|
|
|
- -DCYW43_USE_OTP_MAC=0
|
|
|
|
|
- -DPLATFORM_MASS_STORAGE
|
|
|
|
|
- -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
|
|
+ -DROMDRIVE_OFFSET=${env:ZuluSCSI_BS2.program_flash_allocation}
|
|
|
|
|
+
|
|
|
|
|
+; ZuluSCSI Pico2 hardware platform, based on the Raspberry Pi foundation RP2350A microcontroller
|
|
|
|
|
+[env:ZuluSCSI_Pico_2]
|
|
|
|
|
+extends = env:ZuluSCSI_RP_BASE
|
|
|
|
|
+board = rpipico2
|
|
|
|
|
+lib_deps =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.lib_deps}
|
|
|
|
|
+ ZuluSCSI_platform_RP2350
|
|
|
|
|
+; How much flash in bytes the bootloader and main app will be allocated
|
|
|
|
|
+; 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
|
|
|
|
|
+linker_script_template = lib/ZuluSCSI_platform_RP2350/rp2350-template.ld
|
|
|
|
|
+ldscript_bootloader = lib/ZuluSCSI_platform_RP2350/rp2350_btldr.ld
|
|
|
|
|
+debug_build_flags =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.debug_build_flags}
|
|
|
|
|
+build_flags =
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.build_flags}
|
|
|
|
|
+ -DZULUSCSI_PICO_2
|
|
|
|
|
+ -DROMDRIVE_OFFSET=${env:ZuluSCSI_Pico_2.program_flash_allocation}
|
|
|
|
|
|
|
|
; ZuluSCSI VF4 hardware platform with GD32F450ZET6 CPU.
|
|
; ZuluSCSI VF4 hardware platform with GD32F450ZET6 CPU.
|
|
|
[env:ZULUSCSIv1_4]
|
|
[env:ZULUSCSIv1_4]
|
|
@@ -292,7 +288,7 @@ build_flags =
|
|
|
-D__SYSTEM_CLOCK_200M_PLL_IRC16M=200000000
|
|
-D__SYSTEM_CLOCK_200M_PLL_IRC16M=200000000
|
|
|
-DSPI_DRIVER_SELECT=3
|
|
-DSPI_DRIVER_SELECT=3
|
|
|
-DSD_CHIP_SELECT_MODE=2
|
|
-DSD_CHIP_SELECT_MODE=2
|
|
|
- -DENABLE_DEDICATED_SPI=1
|
|
|
|
|
|
|
+ -DENABLE_DEDICATED_SPI=1
|
|
|
-DHAS_SDIO_CLASS
|
|
-DHAS_SDIO_CLASS
|
|
|
-DPIO_USBFS_DEVICE_CDC
|
|
-DPIO_USBFS_DEVICE_CDC
|
|
|
-DZULUSCSI_V1_4
|
|
-DZULUSCSI_V1_4
|
|
@@ -303,48 +299,21 @@ build_flags =
|
|
|
|
|
|
|
|
;========================================
|
|
;========================================
|
|
|
; ZuluSCSI RP2350 hardware platform, based on the Raspberry Pi foundation RP2350 microcontroller
|
|
; ZuluSCSI RP2350 hardware platform, based on the Raspberry Pi foundation RP2350 microcontroller
|
|
|
-[env:ZuluSCSI_Pico_2]
|
|
|
|
|
-platform = https://github.com/maxgerhardt/platform-raspberrypi.git#5e87ae34ca025274df25b3303e9e9cb6c120123c
|
|
|
|
|
-platform_packages =
|
|
|
|
|
- framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#f49d058477ac8dacd802ff65b528cf755b6de191
|
|
|
|
|
-board_build.core = earlephilhower
|
|
|
|
|
-board = rpipico2
|
|
|
|
|
-framework = arduino
|
|
|
|
|
|
|
+[env:ZuluSCSI_RP2350A]
|
|
|
|
|
+extends = env:ZuluSCSI_RP_BASE
|
|
|
|
|
+board = zuluscsi_RP2350A
|
|
|
; How much flash in bytes the bootloader and main app will be allocated
|
|
; How much flash in bytes the bootloader and main app will be allocated
|
|
|
; It is used as the starting point for a ROM image saved 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
|
|
; Changing this will cause issues with boards that already have a ROM drive in flash
|
|
|
program_flash_allocation = 360448
|
|
program_flash_allocation = 360448
|
|
|
-extra_scripts =
|
|
|
|
|
- src/build_bootloader.py
|
|
|
|
|
- lib/ZuluSCSI_platform_RP2350/process-linker-script.py
|
|
|
|
|
-board_build.ldscript = ${BUILD_DIR}/rp2350.ld
|
|
|
|
|
|
|
+linker_script_template = lib/ZuluSCSI_platform_RP2350/rp2350-template.ld
|
|
|
ldscript_bootloader = lib/ZuluSCSI_platform_RP2350/rp2350_btldr.ld
|
|
ldscript_bootloader = lib/ZuluSCSI_platform_RP2350/rp2350_btldr.ld
|
|
|
lib_deps =
|
|
lib_deps =
|
|
|
- SdFat=https://github.com/rabbitholecomputing/SdFat#2.2.3-gpt
|
|
|
|
|
- minIni
|
|
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.lib_deps}
|
|
|
ZuluSCSI_platform_RP2350
|
|
ZuluSCSI_platform_RP2350
|
|
|
- SCSI2SD
|
|
|
|
|
- CUEParser
|
|
|
|
|
-upload_protocol = cmsis-dap
|
|
|
|
|
-debug_tool = cmsis-dap
|
|
|
|
|
debug_build_flags =
|
|
debug_build_flags =
|
|
|
- -O2 -ggdb -g3
|
|
|
|
|
-; The values can be adjusted down to get a debug build to fit in to SRAM
|
|
|
|
|
- -DLOGBUFSIZE=4096
|
|
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.debug_build_flags}
|
|
|
build_flags =
|
|
build_flags =
|
|
|
- -O2 -Isrc -ggdb -g3
|
|
|
|
|
- -Wall -Wno-sign-compare -Wno-ignored-qualifiers
|
|
|
|
|
- -DSPI_DRIVER_SELECT=3
|
|
|
|
|
- -DSD_CHIP_SELECT_MODE=2
|
|
|
|
|
- -DENABLE_DEDICATED_SPI=1
|
|
|
|
|
- -DHAS_SDIO_CLASS
|
|
|
|
|
- -DUSE_ARDUINO=1
|
|
|
|
|
- -DZULUSCSI_PICO
|
|
|
|
|
- -DROMDRIVE_OFFSET=${env:ZuluSCSI_RP2040.program_flash_allocation}
|
|
|
|
|
- -DFILE_COPY_CONSTRUCTOR_SELECT=FILE_COPY_CONSTRUCTOR_PUBLIC
|
|
|
|
|
-
|
|
|
|
|
-; 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
|
|
|
|
|
- ; -DPLATFORM_MASS_STORAGE
|
|
|
|
|
|
|
+ ${env:ZuluSCSI_RP_BASE.build_flags}
|
|
|
|
|
+ -DZULUSCSI_RP2350
|
|
|
|
|
+ -DROMDRIVE_OFFSET=${env:ZuluSCSI_RP2350A.program_flash_allocation}
|