mirror of
https://github.com/dkgrizzly/GreenSCSI.git
synced 2024-11-22 04:31:03 +00:00
37 lines
1.1 KiB
INI
37 lines
1.1 KiB
INI
; PlatformIO Project Configuration File https://docs.platformio.org/page/projectconf.html
|
|
|
|
[env:genericSTM32F103C8]
|
|
platform = ststm32
|
|
board = genericSTM32F103C8
|
|
board_build.mcu = stm32f103c8t6
|
|
board_build.core = maple
|
|
framework = arduino
|
|
lib_deps =
|
|
greiman/SdFat @ ^2.0.4
|
|
upload_protocol = stlink
|
|
; Older gcc version produces much faster binaries than the latest.
|
|
platform_packages = toolchain-gccarmnoneeabi@1.40804.0
|
|
build_unflags =
|
|
-Os
|
|
-DARDUINO_ARCH_STM32F1
|
|
build_flags =
|
|
-O3
|
|
-w
|
|
-DDEBUG_LEVEL=DEBUG_NONE
|
|
-DARDUINO_GENERIC_STM32F103C
|
|
-DARDUINO_LIB_DISCOVERY_PHASE
|
|
-DARDUINO=10813
|
|
-DARDUINO_ARCH_STM32
|
|
; --param max-inline-insns-single=500 ; PlatformIO doesnt like this?
|
|
|
|
; Possible work around for clones, untested.
|
|
; https://community.platformio.org/t/cannot-upload-to-stm32-bluepill-board-over-stlink-v2/3492/25
|
|
; upload_flags = -c set CPUTAPID 0x2ba01477
|
|
|
|
; Unsure if needed to ignore anymore or not.
|
|
; lib_ignore = USBComposite/, FreeRTOS701, FreeRTOS821, FreeRTOS900, Ethernet_STM, libmaple
|
|
|
|
; [env:debug]
|
|
; build_type = debug
|
|
; debug_tool = stlink
|