Cart Contact NSDSP Home

nsdsp_debug_single_step

This function executes a single target instruction and halts.

Syntax

int nsdsp_debug_single_step(
        nsdsp_session_t   session
);

Parameters

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

Return

The function returns non-zero if the single step command has been succesfully queued, or zero otherwise

Notes

On some of the devices, single step may execute multiple instructions. For example, in PIC32, the branch instruction and the instruction in the delay slot always execute together.

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.

Even though single step executes only a single instruction and returns very fast, it must be treated as a regular run. After executing the single step, you need to wait for halt. If you want to execute several steps at a time, consider nsdsp_debug_multi_step function.

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

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