For ETM-based targets, you can limit the trace capture to specific types of memory accesses:
read-only access
write-only access
any access.