platformio.ini 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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
  13. platform_packages = platformio/toolchain-gccarmnoneeabi@1.120301.0
  14. framework-arduinopico@https://github.com/BlueSCSI/arduino-pico-internal.git#e139b9c7816602597f473b3231032cca5d71a48a
  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#2.2.0-gpt
  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. ; -DLOGBUFSIZE=8192
  45. ; -DPREFETCH_BUFFER_SIZE=6144
  46. ; -DSCSI2SD_BUFFER_SIZE=57344
  47. ; Experimental Audio build
  48. ; Requires separate hardware and overclock.
  49. ; For experimentation only, do not use.
  50. [env:BlueSCSI_Pico_Audio]
  51. extends = env:BlueSCSI_Pico
  52. build_flags =
  53. ${env:BlueSCSI_Pico.build_flags}
  54. -DENABLE_AUDIO_OUTPUT