Virtual terminal within MPLAB?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Virtual terminal within MPLAB?

Post by zener »

Is there a virtual terminal within MPLAB, similar to what CodeWarrior has, that will display from printf instructions?

Thanks

User avatar
opossum
 
Posts: 636
Joined: Fri Oct 26, 2007 12:42 am

Re: Virtual terminal within MPLAB?

Post by opossum »

Yes, but only for PIC32 parts when debugged by ICD3 or Real Ice.

The feature is call "Application In/Out" - search the ICD3 or RI help files for more info.
MPLAB Help wrote:
Application In/Out
The Application In/Out window allows you to interact with a running application using the Application Input/Output feature supported on some devices. Using this feature, data may be sent serially to and from the target application and, during runtime, over the same PGC/PGD lines used for debugging. Data written to the APPOUT register will be displayed to the window, while user input will be sent to the target application and available in the APPIN register.

Note: This window is only available for devices that support the application in/out function (currently PIC32MX5XX/6XX/7XX MCUs) used with the MPLAB REAL ICE in-circuit emulator or MPLAB ICD 3 in-circuit debugger.
The application in/out function cannot be used with PIC32 Instruction trace.


For information on window controls, see Application In/Out Window (Device Dependent).

To use the Application In/Out window:

Use the device-specific header file when building your application to use the macros assigned in the header (per Example 8-1.)

Alternatively, the PIC32 MCU library has printf() and scanf() functions for use with the Application In/Out feature. Refer to the "PIC32 Debug-Support Library" chapter in 32-Bit Language Tools Libraries (DS51685).

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”