Skip to content

Commit

Permalink
Merge pull request #16 from maxgerhardt/master
Browse files Browse the repository at this point in the history
Update PlatformIO build to use new platform
  • Loading branch information
EFeru authored Aug 19, 2021
2 parents 1842991 + a62ecb6 commit 7fca71b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 65 deletions.
3 changes: 0 additions & 3 deletions add_nanolib.py

This file was deleted.

40 changes: 0 additions & 40 deletions boards/gd32f130c6.json

This file was deleted.

32 changes: 10 additions & 22 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ src_dir = Src
;================================================================

[env]
platform_packages = maxgerhardt/framework-spl@2.10301.0 ; Add GD32 support package: globally override framework-spl for all environments
; use new GD32 platform and the bleeding-edge SPL package for it
platform = https://github.com/CommunityGD32Cores/platform-gd32.git
platform_packages =
framework-spl-gd32@https://github.com/CommunityGD32Cores/gd32-pio-spl-package.git

;================================================================

[env:VARIANT_DEBUG]
platform = ststm32
board = gd32f130c6
board = genericGD32F130C6
debug_tool = stlink
upload_protocol = stlink
framework = spl
extra_scripts = add_nanolib.py ; adds nanolib to reduce printf memory foot print
board_build.ldscript = ./GD32F130C6T_FLASH.ld


; Serial Port settings (make sure the COM port is correct)
Expand All @@ -41,53 +43,39 @@ build_flags =
-IInc
-ISrc
-DUSE_STDPERIPH_DRIVER
-DGD32F130_150
-T./GD32F130C6T_FLASH.ld
-lc
-lm
-g -ggdb
-D VARIANT_DEBUG


;================================================================

[env:VARIANT_HOVERCAR]
platform = ststm32
board = gd32f130c6
board = genericGD32F130C6
debug_tool = stlink
upload_protocol = stlink
framework = spl
extra_scripts = add_nanolib.py
board_build.ldscript = ./GD32F130C6T_FLASH.ld

build_flags =
-IInc
-ISrc
-DUSE_STDPERIPH_DRIVER
-DGD32F130_150
-T./GD32F130C6T_FLASH.ld
-lc
-lm
-g -ggdb
-D VARIANT_HOVERCAR

;================================================================

[env:VARIANT_HOVERBOARD]
platform = ststm32
board = gd32f130c6
board = genericGD32F130C6
debug_tool = stlink
upload_protocol = stlink
framework = spl
extra_scripts = add_nanolib.py
board_build.ldscript = ./GD32F130C6T_FLASH.ld

build_flags =
-IInc
-ISrc
-DUSE_STDPERIPH_DRIVER
-DGD32F130_150
-T./GD32F130C6T_FLASH.ld
-lc
-lm
-g -ggdb
-D VARIANT_HOVERBOARD

Expand Down

0 comments on commit 7fca71b

Please sign in to comment.