This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DWT instruction address

Hello there,

As I was reading the arch TRM some doubts emerged in the DWT component. When it talks about instruction address watching I am not sure if this refers to the address of the instruction or instruction itself. For example, let's say that I have a branch instruction in the address 0x12000000. When I configure the comparator should I give it the address 0x12000000 or the opcode of the instruction?

Cheers 

Parents
  • Address.

    "C1.8.1   The DWT comparators

    ...

    A DWT comparator compares one of the following with the value held in its DWT_COMP register:
    • A data address.
    • An instruction address.
    • A data value.
    • The cycle count value, for comparator 0 only."

Reply
  • Address.

    "C1.8.1   The DWT comparators

    ...

    A DWT comparator compares one of the following with the value held in its DWT_COMP register:
    • A data address.
    • An instruction address.
    • A data value.
    • The cycle count value, for comparator 0 only."

Children