The documentation for debug_init_cmds shows the following example.
[env:debug]
platform = …
board = …
debug_init_cmds =
target extended-remote $DEBUG_PORT
$INIT_BREAK
monitor reset halt
$LOAD_CMDS
monitor init
monitor reset halt
Does anyone know where these upper case environment variables are documented? Are there any others?
All of that can be looked up in the PlatformIO core source code too
Plus some can be overriden by the development platforms.
"init_break": "thb app_main",
"init_cmds": [
"define pio_reset_halt_target",
" monitor reset halt",
" flushregs",
"end",
"define pio_reset_run_target",
" monitor reset",
"end",
"target extended-remote $DEBUG_PORT",
"$LOAD_CMDS",
"pio_reset_halt_target",
"$INIT_BREAK",
],
Thanks for your reply Max. The point I was making was that it would be nice if the documentation for the commands themselves mentioned the name of the the environment variable they cause to be created.
Roger
Please file an issue in Issues · platformio/platformio-docs · GitHub to get that tracked.