Buy Contact NSDSP Home

nsdsp_debug_enable_exec_bp

This function enables an execution breakpoint.

Syntax

int nsdsp_debug_enable_exec_bp(
        nsdsp_session_t   session,
        int               bp,
        unsigned int      addr,
        unsigned int      count
);

Parameters

session - a reference to the Debug Session Object obtained with nsdsp_session_program_for_debug or nsdsp_start_debug_session function

bp - the id of a hardware breakpoint

addr - the code memory address where the target device should halt

count - the counter. If specified, the breakpoint must be triggered the specified number of times before the halt occurs. If not used, specify zero.

Return

The function returns non-zero if the command to enable the breakpoint has been succesfully queued, or zero otherwise

Notes

Not all breakpoints support halt on execution. Not all breakpoints support counters. To check breakpoint capabilities, use mcu_bp_class_cap function.

This instruction only queues a command. The command will be sent to NSDSP when you queue enough commands to fill the buffer or when you call nsdsp_session_flush.

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

© 2007-2025 Northern Software Inc. All Rights Reserved.