platformio.ini 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
  2. [platformio]
  3. default_envs = BlueSCSI_Pico
  4. ; To get the latest pico-sdk code:
  5. ; cd ~/.platformio/packages/framework-arduinopico
  6. ; git submodule update --remote --rebase pico-sdk
  7. ; cd ~/.platformio/packages/framework-arduinopico/tools/libpico
  8. ; ./make-libpico.sh
  9. ; clean and build in platformio
  10. ; BlueSCSI RP2040 hardware platform, based on the Raspberry Pi foundation RP2040 microcontroller
  11. [env:BlueSCSI_Pico]
  12. platform = https://github.com/maxgerhardt/platform-raspberrypi.git#19e30129fb1428b823be585c787dcb4ac0d9014c
  13. platform_packages =
  14. framework-arduinopico@https://github.com/BlueSCSI/arduino-pico-internal.git#v4.1.1-DaynaPORT
  15. framework = arduino
  16. board = rpipicow
  17. board_build.core = earlephilhower
  18. upload_protocol = cmsis-dap
  19. debug_tool = cmsis-dap ; new picoprobe.uf2's emulate cmsis-dap
  20. ; extra_scripts = src/build_bootloader.py
  21. ; ldscript_bootloader = lib/BlueSCSI_platform_RP2040/rp2040_btldr.ld
  22. lib_deps =
  23. SdFat=https://github.com/BlueSCSI/SdFat#3447b2eabb6c4d1e22c421b34d077bffecb7f81b
  24. minIni
  25. BlueSCSI_platform_RP2040
  26. SCSI2SD
  27. CUEParser
  28. debug_build_flags =
  29. -O2 -ggdb -g3
  30. ; The values can be adjusted down to get a debug build to fit in to SRAM
  31. -DLOGBUFSIZE=1024
  32. -DSCSI2SD_BUFFER_SIZE=57344
  33. -DPREFETCH_BUFFER_SIZE=6144
  34. build_flags =
  35. -O2 -Isrc -ggdb -g3
  36. -Wall -Wno-sign-compare -Wno-ignored-qualifiers
  37. -DSPI_DRIVER_SELECT=3
  38. -DSD_CHIP_SELECT_MODE=2
  39. -DENABLE_DEDICATED_SPI=1
  40. -DHAS_SDIO_CLASS
  41. -DUSE_ARDUINO=1
  42. -DPICO_DEFAULT_I2C_SDA_PIN=16
  43. -DPICO_DEFAULT_I2C_SCL_PIN=17
  44. -DBLUESCSI_NETWORK=1
  45. ; Arduino's default USB task/irq is conflicting with WiFi somehow
  46. -DUSE_TINYUSB
  47. ; build flags mirroring the framework-arduinopico#v4.1.1-DaynaPORT static library build
  48. -DPICO_CYW43_ARCH_POLL=1
  49. -DCYW43_LWIP=0
  50. -DCYW43_USE_OTP_MAC=0
  51. -DARCH_RP2040
  52. [env:BlueSCSI_Pico2]
  53. board = rpipico2w
  54. extends = env:BlueSCSI_Pico
  55. platform = https://github.com/maxgerhardt/platform-raspberrypi.git#19e30129fb1428b823be585c787dcb4ac0d9014c
  56. platform_packages =
  57. framework-arduinopico@https://github.com/BlueSCSI/arduino-pico-internal.git#v4.3.0-DaynaPORT
  58. build_flags =
  59. ${env:BlueSCSI_Pico.build_flags}
  60. -DCYW43_PIO_CLOCK_DIV_DYNAMIC=1
  61. -DBLUESCSI_PICO2=1
  62. ; build flags mirroring the framework-arduinopico#v4.1.1-DaynaPORT static library build
  63. -DPICO_CYW43_ARCH_POLL=1
  64. -DCYW43_LWIP=0
  65. -DCYW43_USE_OTP_MAC=0
  66. -DARCH_RP2350
  67. ; Experimental Audio build
  68. ; Requires separate hardware and overclock.
  69. ; For experimentation only, do not use.
  70. [env:BlueSCSI_Pico_Audio]
  71. extends = env:BlueSCSI_Pico
  72. build_flags =
  73. ${env:BlueSCSI_Pico.build_flags}
  74. -DENABLE_AUDIO_OUTPUT