Skip to content

Commit

Permalink
feature: memwatch: read memory while running
Browse files Browse the repository at this point in the history
  • Loading branch information
koendv committed Nov 19, 2023
1 parent d0c8bb7 commit 7181583
Show file tree
Hide file tree
Showing 7 changed files with 691 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ifeq ($(ENABLE_DEBUG), 1)
CFLAGS += -DENABLE_DEBUG
endif


SRC = \
adiv5.c \
adiv5_jtag.c \
Expand Down Expand Up @@ -132,6 +133,16 @@ CFLAGS += -DPC_HOSTED=0
include platforms/common/Makefile.inc
endif

ifdef ENABLE_MEMWATCH
CFLAGS += -DENABLE_MEMWATCH=$(ENABLE_MEMWATCH)
SRC += memwatch.c
ifndef PC_HOSTED
ifeq ($(ENABLE_MEMWATCH), 1)
SRC += ftoa.c
endif
endif
endif

ifeq ($(ENABLE_RTT), 1)
CFLAGS += -DENABLE_RTT
SRC += rtt.c rtt_if.c
Expand Down
Loading

0 comments on commit 7181583

Please sign in to comment.