Cart Contact NSDSP Home

nsdsp_debug_get_info

This function extracts Debug Info object from the debug session.

Syntax

debug_info_t nsdsp_debug_get_info(
        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 a reference to the Debug Info object, or NULL if the operation fails.

Example

The Debug Info object may be used to start a new debug session without re-programming the target device, as shown in this example:

  hex_map_t hm;
  mcu_t mcu;
  nsdsp_session_t sess;
  nsdsp_t nsdsp;
  debug_info_t dinf;
  int tcy;

  hm = hex_map_read("your_hex_file.hex",NULL);
  nsdsp = nsdsp_connect(NULL);

  sess = nsdsp_start_prog_session(nsdsp,mcu,0);
  nsdsp_session_check_id(sess,1);
  nsdsp_session_program_for_debug(sess,hm,tcy);
  dinf = nsdsp_debug_get_info(sess);

  // Debugging here

  nsdsp_end_session(nsdsp);

  // Restarting without re-programming the chip
  sess = nsdsp_start_debug_session(nsdsp,dinf);

  // Debugging here

  nsdsp_end_session(nsdsp);
  nsdsp_free(nsdsp);

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

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