diff --git a/targets/mbedos5/Makefile b/targets/mbedos5/Makefile index 4e0b5d67ab..dce65768a6 100644 --- a/targets/mbedos5/Makefile +++ b/targets/mbedos5/Makefile @@ -39,7 +39,7 @@ MBED_CLI_FLAGS += --build $(EXTERN_BUILD_DIR) endif ifeq ($(DEBUG), 1) -MBED_CLI_FLAGS += -o debug-info +MBED_CLI_FLAGS += --profile ./mbed-os/tools/profiles/debug.json endif ifeq ($(MBED_VERBOSE), 1)