0
\$\begingroup\$

This is my setup:

I have a 'smart display' connected to the serial interface of a PCB with a PIC microcontroller. The PIC powers the smart display. This smart display uses a boot mechanism. When the power is on, the display start bootup. This process takes a few seconds. At bootup, the display sends a hex string to the serial interface.

I want to debug this serial interface using MPLAB X: I want to see the values of the received hex data. However, during a debug session, it always hangs in an infinite while loop of an EUSART routine, waiting for data to receive.

I can't find a way to 'catch' this hex string during a debug session. Is there a way to receive hex string somehow?

\$\endgroup\$
7
  • \$\begingroup\$ why don't you use a serial terminal program to receive the serial data? ... it is unclear why you need to "debug" the data \$\endgroup\$
    – jsotola
    Commented Aug 10, 2020 at 14:30
  • \$\begingroup\$ I don't have the appropriate cable for connecting the display to the USB port at this moment. \$\endgroup\$
    – user270124
    Commented Aug 10, 2020 at 14:34
  • \$\begingroup\$ I was thinking of UART connection as well to read from something like PuTTY. How about possibly an oscilloscope to capture byte readouts over serial interface? And if you say that you don’t have an oscilloscope, then perhaps you need to provide details on what equipment you do have. \$\endgroup\$
    – user103380
    Commented Aug 10, 2020 at 14:43
  • \$\begingroup\$ Is the EUSART configured correctly? Are you sure there is data to receive? Can you receive data from the display at other times? \$\endgroup\$ Commented Aug 10, 2020 at 14:48
  • \$\begingroup\$ I have captured the byte readouts using an oscilloscope.The hex data looked fine. My PCB also has an LCD. However, it did not show the correct data when I wrote to it during a test. \$\endgroup\$
    – user270124
    Commented Aug 10, 2020 at 14:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.