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.

Enabling GPIO interrupt while waiting console input through CCS

Other Parts Discussed in Thread: SYSBIOS

Hi, everybody.

I'm using DM8148evm, CCS 5.2, and sys/bios 6.33.5.46.

I implemented console diagnostic mode task which is based on <stdio.h> console input and System_printf() console output.

The source code of this Diag_Task is as follows:

===============================================================================================

#include <ti/sysbios/knl/Task.h>
#include <xdc/runtime/System.h>

#include <stdio.h>
#include <stdlib.h>

Task_Handle DiagTask_Handle;

void Diag_Task()
{
 char diag_cmd[15];

 for(;;)
 {
  System_printf("C>:");
  fgets(diag_cmd, sizeof(diag_cmd), stdin);
  diag_cmd[strlen(diag_cmd)-1] = '\0';
  fflush(stdin);

  if(strcmp(diag_cmd, "Command1") == 0)
  {

          ........
   }
  if(strcmp(diag_cmd, "Command2") == 0)
  {

        ..........
    }
  } // for(;;)
}

========================================================================================

If I execute this program in CCS Jtag emulation mode, I can input string through console window.

However, interrupt service routine function is not called, when executing this program.

I setup the GPIO interrupt. If I delete the Diag_Task code, the ISR is called correctly.

How can I make the ISR called, while waiting the console input ?

 

Thank you.