2023-10-16 14:26:16 -07:00
|
|
|
; PlatformIO Project Configuration File
|
|
|
|
;
|
|
|
|
; Build options: build flags, source filter
|
|
|
|
; Upload options: custom upload port, speed and extra flags
|
|
|
|
; Library options: dependencies, extra library storages
|
|
|
|
; Advanced options: extra scripting
|
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
|
|
|
|
[env]
|
|
|
|
platform = nxplpc ; not actually this and we are not using a framework
|
2023-10-19 16:20:41 -07:00
|
|
|
; setting platform = nxplpc makes everything happy
|
2023-10-16 14:26:16 -07:00
|
|
|
; as we'll get nano specs and any other needed shit
|
|
|
|
board = generic_py32f030x6
|
2023-10-21 07:32:48 -07:00
|
|
|
board_build.ldscript = py32f030x6.ld
|
2023-10-16 14:26:16 -07:00
|
|
|
|
2023-10-31 07:46:25 -07:00
|
|
|
|
2023-10-16 14:26:16 -07:00
|
|
|
debug_tool = custom ; built-in pyocd support does not allow config file override
|
|
|
|
debug_server = $PYTHONEXE
|
|
|
|
${platformio.packages_dir}/tool-pyocd/pyocd-gdbserver.py
|
|
|
|
--config
|
|
|
|
$PROJECT_DIR/pyocd.yaml
|
|
|
|
-t
|
|
|
|
PY32F030x6
|
|
|
|
debug_extra_cmds =
|
|
|
|
set mem inaccessible-by-default off
|
|
|
|
|
2023-10-21 07:32:48 -07:00
|
|
|
debug_svd_path = misc/svd/py32f030xx.svd
|
|
|
|
|
2023-10-16 14:26:16 -07:00
|
|
|
upload_protocol = custom
|
|
|
|
upload_command = $PYTHONEXE ${platformio.packages_dir}/tool-pyocd/pyocd-flashtool.py --config $PROJECT_DIR/pyocd.yaml -t PY32F030x6 $SOURCE
|
|
|
|
|
|
|
|
platform_packages =
|
|
|
|
toolchain-gccarmnoneeabi@1.100301.220327 ; build issues with GCC12, use GCC10 for now
|
2023-10-21 07:32:48 -07:00
|
|
|
tool-pyocd ; include pyocd so user won't have to install it
|
2023-10-16 14:26:16 -07:00
|
|
|
|
|
|
|
|
2023-10-21 07:32:48 -07:00
|
|
|
[common]
|
|
|
|
build_flags =
|
|
|
|
-Wl,-Map=.pio/output_rel.map
|
|
|
|
-DUSE_FULL_LL_DRIVER
|
|
|
|
-L.
|
|
|
|
-Os
|
|
|
|
-std=gnu11
|
2023-10-16 14:26:16 -07:00
|
|
|
|
|
|
|
debug_build_flags =
|
|
|
|
-Wl,-Map=.pio/output_dbg.map
|
2023-10-19 16:20:41 -07:00
|
|
|
-DUSE_FULL_LL_DRIVER
|
|
|
|
-L.
|
|
|
|
-Os
|
|
|
|
-std=gnu11
|
|
|
|
-Wl,-Map=.pio/output_dbg.map
|
|
|
|
-g
|
2023-10-16 14:26:16 -07:00
|
|
|
|
|
|
|
|
2023-10-21 07:32:48 -07:00
|
|
|
[env:sc7-testobot_REV1-py32f-dbg_pyocd]
|
|
|
|
build_type = debug
|
2023-11-01 07:45:44 -07:00
|
|
|
board_upload.maximum_size = 32256 ; 512 bytes for config
|
2023-10-21 07:32:48 -07:00
|
|
|
debug_build_flags = ${common.debug_build_flags}
|
|
|
|
-DTESTO_REV1
|
|
|
|
|
|
|
|
|
|
|
|
[env:sc7-testobot_REV2-py32f-dbg_pyocd]
|
|
|
|
build_type = debug
|
2023-11-01 07:45:44 -07:00
|
|
|
board_upload.maximum_size = 32256 ; 512 bytes for config
|
2023-10-21 07:32:48 -07:00
|
|
|
debug_build_flags = ${common.debug_build_flags}
|
|
|
|
-DTESTO_REV2
|
|
|
|
|
|
|
|
|
|
|
|
[env:sc7-testobot_REV1-py32f-rel_bl]
|
2023-10-19 16:20:41 -07:00
|
|
|
build_type = release
|
2023-10-16 14:26:16 -07:00
|
|
|
board_build.ldscript = py32f030x6_bl.ld
|
2023-11-01 07:45:44 -07:00
|
|
|
board_upload.maximum_size = 30208 ; 2K reserved for bootloader, 512 bytes for config
|
2023-10-21 07:32:48 -07:00
|
|
|
build_flags = ${common.build_flags}
|
2023-10-31 07:46:25 -07:00
|
|
|
-DBOOTLOADED
|
2023-10-21 07:32:48 -07:00
|
|
|
-DTESTO_REV1
|
|
|
|
|
|
|
|
|
|
|
|
[env:sc7-testobot_REV2-py32f-rel_bl]
|
|
|
|
build_type = release
|
|
|
|
board_build.ldscript = py32f030x6_bl.ld
|
2023-11-01 07:45:44 -07:00
|
|
|
board_upload.maximum_size = 30208 ; 2K reserved for bootloader, 512 bytes for config
|
2023-10-21 07:32:48 -07:00
|
|
|
build_flags = ${common.build_flags}
|
2023-10-31 07:46:25 -07:00
|
|
|
-DBOOTLOADED
|
2023-10-21 07:32:48 -07:00
|
|
|
-DTESTO_REV2
|