2019-10-06 13:09:15 +00:00
|
|
|
; PlatformIO Project Configuration File2
|
|
|
|
; http://docs.platformio.org/page/projectconf.html
|
|
|
|
|
|
|
|
[platformio]
|
|
|
|
include_dir = Inc
|
|
|
|
src_dir = Src
|
|
|
|
|
2019-12-23 11:12:01 +00:00
|
|
|
;=================== VARIANT SELECTION ==========================
|
2020-01-05 13:28:02 +00:00
|
|
|
;
|
|
|
|
; Choose one or all variants get built
|
|
|
|
;
|
2020-01-03 23:09:57 +00:00
|
|
|
;default_envs = VARIANT_ADC ; Variant for control via ADC input
|
2020-01-18 00:08:47 +00:00
|
|
|
;default_envs = VARIANT_USART ; Variant for Serial control via USART3 input
|
2020-01-29 20:20:04 +00:00
|
|
|
;default_envs = VARIANT_NUNCHUK ; Variant for Nunchuk controlled vehicle build
|
2020-01-03 23:09:57 +00:00
|
|
|
;default_envs = VARIANT_PPM ; Variant for RC-Remotes with PPM-Sum signal
|
2020-03-24 18:57:08 +00:00
|
|
|
;default_envs = VARIANT_PWM ; Variant for RC-Remotes with PWM signal
|
2020-01-07 20:01:17 +00:00
|
|
|
;default_envs = VARIANT_IBUS ; Variant for RC-Remotes with FLYSKY IBUS
|
2020-01-07 17:09:19 +00:00
|
|
|
;default_envs = VARIANT_HOVERCAR ; Variant for HOVERCAR build
|
2020-02-16 20:58:15 +00:00
|
|
|
;default_envs = VARIANT_HOVERBOARD ; Variant for HOVERBOARD
|
2020-01-07 17:09:19 +00:00
|
|
|
;default_envs = VARIANT_TRANSPOTTER ; Variant for TRANSPOTTER build https://github.com/NiklasFauth/hoverboard-firmware-hack/wiki/Build-Instruction:-TranspOtter https://hackaday.io/project/161891-transpotter-ng
|
2020-07-20 18:33:42 +00:00
|
|
|
;default_envs = VARIANT_SKATEBOARD ; Variant for SKATEBOARD build controlled via RC-Remotes with PWM signal
|
2020-01-07 17:09:19 +00:00
|
|
|
;================================================================
|
|
|
|
|
2019-12-23 11:12:01 +00:00
|
|
|
;================================================================
|
|
|
|
|
|
|
|
[env:VARIANT_ADC]
|
2019-10-06 13:09:15 +00:00
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
; Serial Port settings (make sure the COM port is correct)
|
|
|
|
monitor_port = COM5
|
2019-11-29 16:31:53 +00:00
|
|
|
monitor_speed = 38400
|
2019-10-06 13:09:15 +00:00
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
2019-12-31 12:35:01 +00:00
|
|
|
-D VARIANT_ADC
|
2019-12-23 11:12:01 +00:00
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
;================================================================
|
|
|
|
|
2020-01-18 00:08:47 +00:00
|
|
|
[env:VARIANT_USART]
|
2019-12-23 11:12:01 +00:00
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
; Serial Port settings (make sure the COM port is correct)
|
|
|
|
monitor_port = COM5
|
|
|
|
monitor_speed = 38400
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
2020-01-18 00:08:47 +00:00
|
|
|
-D VARIANT_USART
|
2019-12-23 11:12:01 +00:00
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
;================================================================
|
|
|
|
|
2020-01-18 00:15:45 +00:00
|
|
|
[env:VARIANT_NUNCHUK]
|
2019-12-31 12:35:01 +00:00
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
2020-01-18 00:15:45 +00:00
|
|
|
-D VARIANT_NUNCHUK
|
2019-12-31 12:35:01 +00:00
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
;================================================================
|
|
|
|
|
|
|
|
[env:VARIANT_PPM]
|
2019-12-23 11:12:01 +00:00
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
2020-01-07 17:09:19 +00:00
|
|
|
-D VARIANT_PPM
|
2020-01-03 23:09:57 +00:00
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
;================================================================
|
|
|
|
|
2020-03-21 18:24:29 +00:00
|
|
|
[env:VARIANT_PWM]
|
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
|
|
|
-D VARIANT_PWM
|
|
|
|
|
|
|
|
;================================================================
|
|
|
|
|
2020-01-07 20:01:17 +00:00
|
|
|
[env:VARIANT_IBUS]
|
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
|
|
|
-D VARIANT_IBUS
|
|
|
|
|
|
|
|
;================================================================
|
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
[env:VARIANT_HOVERCAR]
|
2020-01-03 23:09:57 +00:00
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
; Serial Port settings (make sure the COM port is correct)
|
|
|
|
monitor_port = COM5
|
|
|
|
monitor_speed = 38400
|
|
|
|
|
2020-01-03 23:09:57 +00:00
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
2020-01-07 17:09:19 +00:00
|
|
|
-D VARIANT_HOVERCAR
|
2020-01-03 23:09:57 +00:00
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
;================================================================
|
|
|
|
|
2020-02-16 20:58:15 +00:00
|
|
|
[env:VARIANT_HOVERBOARD]
|
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
; Serial Port settings (make sure the COM port is correct)
|
|
|
|
monitor_port = COM5
|
|
|
|
monitor_speed = 38400
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
|
|
|
-D VARIANT_HOVERBOARD
|
|
|
|
|
|
|
|
;================================================================
|
|
|
|
|
2020-01-07 17:09:19 +00:00
|
|
|
[env:VARIANT_TRANSPOTTER]
|
2020-01-03 23:09:57 +00:00
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
2020-01-07 17:09:19 +00:00
|
|
|
-D VARIANT_TRANSPOTTER
|
|
|
|
|
2020-01-26 20:19:58 +00:00
|
|
|
;================================================================
|
2020-07-20 18:33:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
[env:VARIANT_SKATEBOARD]
|
|
|
|
platform = ststm32
|
|
|
|
framework = stm32cube
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
build_flags =
|
|
|
|
-DUSE_HAL_DRIVER
|
|
|
|
-DSTM32F103xE
|
|
|
|
-Wl,-T./STM32F103RCTx_FLASH.ld
|
|
|
|
-Wl,-lc
|
|
|
|
-Wl,-lm
|
|
|
|
-g -ggdb ; to generate correctly the 'firmware.elf' for STM STUDIO vizualization
|
|
|
|
# -Wl,-lnosys
|
|
|
|
-D VARIANT_SKATEBOARD
|
|
|
|
|
|
|
|
;================================================================
|