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

breakpoints for cortex-m3

is keil using hardware or software breakpoints? Does that depend on the jtag debugger?

  • short answer: both, no.

    .
    long answer:

    Cortex-M3 has a BP Unit that allows up to 6 HW BPs. When setting BP in Flash, this Unit is used.
    When you use a JLink, and 6 HW BPs are already in Flash, uVision sets BP in Flash - if your JLink has a FlashBP License.

    When working in RAM, SW BPs can also be used (to increase the number).

    But ... who needs more than 6 BPs?
    I.e. in hardFault handler you can put a bkpt instruction...

    In General the capabillities of ULINK and JLink are the same.

    .
    BR,
    /th.