How do I set a breakpoint in ROM?

If code is in ROM, you cannot set a software breakpoint on an instruction. You must use hardware breakpoints, if your target supports them.

To check the break capability of your target, select the Show Break Capabilities of HW… option from the Complex Breakpoints submenu of the Code window Debug menu.

To set a simple breakpoint on an instruction, double-click on the line in the margin of the source file. If there is a hardware break available, RealView sets it automatically and you can see it in the File Editor pane and Break/Tracepoints pane in the same way as a software breakpoint.

You can set conditional breakpoints using options in the Code window Debug menu:

HW Break if in Range...

HW While in func/range, Break if X...

HW Break if X, then if Y...

HW Break on Data Value match...

Related Topics