platformio.ini 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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#2d445020acf8b792768a5fa5ba1870ac9607c11c
  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. ; Experimental Audio build
  52. ; Requires separate hardware and overclock.
  53. ; For experimentation only, do not use.
  54. [env:BlueSCSI_Pico_Audio]
  55. extends = env:BlueSCSI_Pico
  56. build_flags =
  57. ${env:BlueSCSI_Pico.build_flags}
  58. -DENABLE_AUDIO_OUTPUT