Buy Contact NSDSP Home

nsdsp_debug_get_flash_word

This function returns a value of flash word that was programmed by nsdsp_session_program_for_debug function.

Syntax

unsigned int nsdsp_debug_get_flash_word(
        nsdsp_session_t   session,
        unsigned int      addr
);

Parameters

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

addr - the address of the flash word. The address must be appropriately aligned:

Target Device Alignment Requirements
PIC12,PIC16none
PIC1816-bit
PIC24,dsPIC3316-bit
PIC3232-bit

Return

The function returns the flash word.

In PIC32, this function returns a 32-bit word from 4-byte aligned address. If PIC32 uses microMIPS, the instructions may be 2-byte or 4-byte long and are not aligned to 4-byte boundaries. Therefore, the word you retrieve may not represent a single instruction.

Notes

The value returned by this function may differ from the actual flash contents if the device has re-programmed flash through self-programming. To get actual flash value, use nsdsp_debug_read_rom and nsdsp_debug_fetch_flash_word functions. However, not all devices support reading flash.

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

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