Menu

QS on Arduino DUE not working

KJC
2022-01-22
2022-01-23
  • KJC

    KJC - 2022-01-22

    Hi,

    I've defined QS_ON in the bsp.cpp as specified on the github.com/QuantumLeaps/qp-arduino web page and I don't see any output on the QSPY terminal. I've provided the correct COM port and BAUD rate parameters for QSPY. Also, the QS_GLB_FILTERS are provided below. Has anyone seen this issue?

    blinky_bsp-sam example

    COM10 is the same port used to download the code.

    qspy -cCOM10 -b 115200

    define QS_ON

    QS_GLB_FILTER(QP::QS_SM_RECORDS); // state machine records
    QS_GLB_FILTER(QP::QS_AO_RECORDS); // active object records
    QS_GLB_FILTER(QP::QS_UA_RECORDS); // all user records
    
     
  • Quantum Leaps

    Quantum Leaps - 2022-01-22

    Hi KJC,
    Thanks for your interest in QP for Arduino.

    The blinky_bsp-sam example works for me and I'm not sure why it doesn't work for you. Perhaps there is something wrong with your QSPY host app. To rule this out, perhaps you could just open the standard Arduino serial terminal to see if you have any activity on the serial port. Of course you will see garbage (because the output is not ASCII), but you should see something. I attach a screen shot with what I see in my Arduino terminal.

    Please post to this forum with the result of that test.

    --MMS

     
  • KJC

    KJC - 2022-01-23

    I have checked the local terminal and do not see any data being transmitted from the due. I reinstalled the qp-arduino files and uncommented the QS_ON define and recompiled/downloaded. I am getting the same results. I have verified that the state machine is running. What is the QSPY behavior supposed to be out of the box?

    Thanks

    Example - blinky_bsp-sam
    QSPY 6.9.3
    Arduino 1.8.13
    Port - Arduino Due USB Native Port

     
  • Quantum Leaps

    Quantum Leaps - 2022-01-23

    Hi KJC,
    It seems that you need to step back to the basics and verify that the serial port on your Arduino DUE works correctly. I would recommend to use one of the basic examples.

    For instance, please choose the following example (menu "File -> Examples -> 01 Basics -> DigitalReadSerial". After you build and upload the board, please open the serial port and set it for 9600 baud (because the example uses that lower baud rate). You should see scrolling output of the form:

    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    09:39:37.556 -> 1
    

    If you see this, your serial port is working. If not, you have a bigger problem.

    Please post to this forum with the result of that test.

    --MMS

     
  • KJC

    KJC - 2022-01-23

    I figured out the issue.

    You need to be connected to the Programming Port and NOT the Native Port

    Thanks

     

Log in to post a comment.