This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TDA4VMXEVM: Waiting for user input in Console

Part Number: TDA4VMXEVM

Tool/software: Code Composer Studio

Dear experts,

I'm using CCS to debug my code to J721E_EVM target. When I click on Resume(F8) I see the following in Debug tab:

In my code, there is no function that waits for an input.

I go to Console and type two random numbers, then it turns to "Running".

Do you have an explanation about this input?

Regards,

Brahim

  • Hi Brahim,

    Brahim Salh said:
    In my code, there is no function that waits for an input.

    If you manually halt the target at that point, where (in the source) are you halted?

    Thanks

    ki

  • Ki,

    Could you please tell me how I can halt the target at that point?

    Regards,

    Brahim

  • Brahim Salh said:
    Could you please tell me how I can halt the target at that point?

    Halt R5_0_1 via 'Run -> Suspend' menu item.

  • Ki,

    When it shows "Running - waiting for user input,,," and I click on Suspend, I got this:

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    ___________________________________________________________________________________________________________________________

    Regards,

    Brahim

  • In your call stack, you can see that scanf was called. Looks like it is waiting for input from the serial terminal.

  • Ki,

    The serial terminal is the same CCS console ?

    Regards,

    Brahim

  • Brahim Salh said:
    The serial terminal is the same CCS console ?

    No, they are different. But it is possible to re-route C I/O to use a different transport like serial so that it can be used from a serial terminal/console.

    Thanks

    ki