Setting watchpoints in J-Link commander

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Setting watchpoints in J-Link commander

    Hi,
    Sorry for the basic question but I'm having some problems setting watchpoints using J-Link Commander. It seems like the procedure I have to use to set the watchpoint is (on launching the j-link commander console):
    h
    setwp <address>
    setwp <same address as before>, S32
    g
    ...
    Whilst this works, it's not exactly conveniant, I'm only looking to trap write accesses, but I have many many read accesses in between writes and it's not really feasible to keep continuing the process to skip the reads to get to the next write of interest. Is there something I'm doing wrong here?
    If I try any other combination of this then it doesn't seem to work, e.g.:
    h
    setwp <address>, w, S32
    g
    ...
    doesn't trap anything. I'm not sure why it seems that I need to call setwp twice in the first example for this to work.
    I'm using a J-Link probe with a NXP 3250 (ARM926EJ-S). Any tips or pointers on the use of setwp would be gratefully received. Also, if anyone knows of any documentation for j-link commander would also be much appreciated.
    Thanks,
    Paul