8.9 X2Cscope Configuration Options

This section covers LNet protocol settings and configuration options for X2Cscope connections in MPLAB Data Visualizer.

Connection Settings

Navigate to the X2Cscope Protocol panel. Select the COM port connected to your target's UART:
  1. Click the connection source selector.
  2. Choose the appropriate serial port.
Configure the baud rate to match your target's UART configuration:
  • Baud rate: 115200 (default)
  • Data bits: 8
  • Stop bits: 1
  • Parity: None
Figure 8-5. USB Serial Device

Scope Configuration

Scope Sample Time: This setting indicates the time between calls to X2CScope_Update() in the firmware.

Time factor: This setting configures a divisor for how often a call to X2CScope_Update in the firmware will produce a data sample. 1 means ever y sample, 2 means ever y second sample, and so on.

See Scope Channels for details on sample time and sample time factor settings.

Saving and Loading the Configuration

X2Cscope configuration parameters, along with the content in the X2Cscope Channels and X2Cscope Watch tables, are saved in the Workspace file. The X2Cscope configuration is saved together with other settings like time plot and terminal settings, panel layout etc.

The workspace file can be loaded at a later time to recreate the setup.

Status Information

When connected, the target may provide device information:
  • Device type/identifier
  • Firmware version

This information helps verify you are connected to the correct target.

Troubleshooting

IssuePossible CauseSolution
Frequent timeoutsSlow main loopEnsure X2CScope_Communicate is called frequently.
Checksum errorsBaud rate mismatchVerify baud rate matches firmware configuration.
No responseWrong COM portCheck port selection in Device Manager.
Intermittent connectionElectrical noiseUse shorter cables, add filtering.
Wrong time scaleSample time mismatchVerify scope sample time matches firmware.