mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Configure a custom path to SVD file using "debug_svd_path" option
This commit is contained in:
@ -13,9 +13,11 @@ PlatformIO 3.0
|
||||
- "Recent News" block on "Welcome" page
|
||||
- Direct import of development platform's example
|
||||
|
||||
* Configure a custom path to SVD file using `debug_svd_path <http://docs.platformio.org/page/projectconf/section_env_debug.html#debug-svd-path>`__
|
||||
option
|
||||
* Describe your project with a new
|
||||
`description <http://docs.platformio.org/en/latest/projectconf/section_platformio.html#description>`_
|
||||
option for `Project Configuration File "platformio.ini" <http://docs.platformio.org/page/projectconf/section_platformio.html#build-dir>`__ (information will be used by
|
||||
option from `Project Configuration File "platformio.ini" <http://docs.platformio.org/page/projectconf/section_platformio.html#build-dir>`__ (information will be used by
|
||||
`PlatformIO Home <http://docs.platformio.org/page/home/index.html>`_)
|
||||
* Updated Unity tool to 2.4.3
|
||||
* Improved support for Black Magic Probe in "uploader" role
|
||||
|
2
docs
2
docs
Submodule docs updated: a3f4e765e5...84fd5fe430
@ -68,7 +68,7 @@ commonvars.AddVariables(
|
||||
|
||||
# debug options
|
||||
("DEBUG_TOOL",),
|
||||
|
||||
("DEBUG_SVD_PATH",),
|
||||
|
||||
) # yapf: disable
|
||||
|
||||
|
@ -108,6 +108,10 @@ def _dump_defines(env):
|
||||
|
||||
|
||||
def _get_svd_path(env):
|
||||
svd_path = env.subst("$DEBUG_SVD_PATH")
|
||||
if svd_path and isfile(svd_path):
|
||||
return abspath(svd_path)
|
||||
|
||||
if "BOARD" not in env:
|
||||
return None
|
||||
try:
|
||||
|
@ -143,8 +143,8 @@ class EnvironmentProcessor(object):
|
||||
"test_port", "test_speed", "debug_tool", "debug_port",
|
||||
"debug_init_cmds", "debug_extra_cmds", "debug_server",
|
||||
"debug_init_break", "debug_load_cmd",
|
||||
"debug_load_mode", "monitor_port", "monitor_baud",
|
||||
"monitor_rts", "monitor_dtr")
|
||||
"debug_load_mode", "debug_svd_path", "monitor_port",
|
||||
"monitor_baud", "monitor_rts", "monitor_dtr")
|
||||
|
||||
IGNORE_BUILD_OPTIONS = ("test_transport", "test_filter", "test_ignore",
|
||||
"test_port", "test_speed", "debug_port",
|
||||
|
Reference in New Issue
Block a user