Application IO
Restarting Sessions Swappable Partitions Multi-core devicesApplication IO
Some of the devices allow the user code being debugged to communicate to the debugger. NSDSP Interface library allows only one-sided communications - from the target device to the debugger.
This mechanism can be linked to printf() to deliver textual information to your debug console.
PIC24E, dsPIC33E, and dsPIC33C
The register to write is called APPO (or _APPO on some devices) and is 16-bit wide. The data may be sent as follows:
void SendAppData(uint16_t val) {
while (APPSbits.APOFUL);
APPO = val;
}
PIC32MX
The register to write is called _APPO and is 32-bit wide. The data may be sent as follows:
void SendAppData(uint32_t val) {
while (_DDPSTATbits.APOFUL);
_APPO = val;
}
Receiving data
Before trying to receive data from the device, use the MCU object to check if the device is capable of such communications.
The Debug Session object provides functions to check whether the data was received and to retrieve the received data.
© 2007-2025 Northern Software Inc. All Rights Reserved.