diff --git a/boards/common/cc26xx_cc13xx/Makefile.include b/boards/common/cc26xx_cc13xx/Makefile.include index 30f6b7f7eb..c5cfaf15be 100644 --- a/boards/common/cc26xx_cc13xx/Makefile.include +++ b/boards/common/cc26xx_cc13xx/Makefile.include @@ -1,5 +1,9 @@ # configure the flash tool -PROGRAMMER ?= uniflash +ifneq (,$(UNIFLASH_PATH)) + PROGRAMMER ?= uniflash +else + PROGRAMMER ?= openocd +endif # uniflash and openocd programmers are supported PROGRAMMERS_SUPPORTED += openocd uniflash