Hello,
I have created a custom target. I would like to build first one of the environments default targets and then run my custom target.
Now I need to do this in two steps:
- pio run -e l432_debug
- pio run -e l432_debug -t meta
I would like to have it in one step
pio run -e l432_debug -t debug -t meta
If I do something like the above I get:
*** Do not know how to make File target `debug’ (xxx/projects/bootloader/debug). Stop.
If I run only pio run -e l432_debug -t meta
only the meta target being run
It would be so cool to specify a target as dependency of another target
so if I run:
pio run -e l432_debug -t meta
the default project is also automatically being run
My platformio.ini
[platformio]
build_dir = build/
default_envs = l432_debug
[env]
custom_firmware_config = firmware/firmware.conf
platform = ststm32
board = nucleo_l432kc
lib_extra_dirs = lib/common
build_flags =
;-Wl,-Map,output.map
-I src/Core/Inc
-I src/Drivers/STM32L4xx_HAL_Driver/Inc
-I src/Drivers/STM32L4xx_HAL_Driver/Inc/Legacy
-I src/Drivers/CMSIS/Device/ST/STM32L4xx/Include
-I src/Drivers/CMSIS/Include
-I src/App
-I src/Loader
-I src/Loader/ARMCM4_STM32L4
-D USE_FULL_LL_DRIVER
-D USE_HAL_DRIVER
-D STM32L432xx
-D STM32L4xx
extra_scripts =
post:scripts/build_srec.py
scripts/modify_meta.py
board_build.ldscript = src/STM32L432KCUX_FLASH.ld
[env:l432_release]
build_type = release
build_flags =
${env.build_flags}
;-Os ; optimize for space
-Os
[env:l432_debug]
build_type = debug
debug_build_flags =
${env.build_flags}
-Og -ggdb3 -g3 ; -O0 make the image bigger
how to do this? has the environments some kind of special target names??
But maybe I think wrong with wrong approach.
Thank you!