Hi All,
My application runs on a 6748 and offers a text-based cli via one of the 6748
serial ports.
I'm running this application in the CCS5 67xx cycle-accurate simulator.
What I want is to exercise/debug my CLI through the debugger console.
I've tried using scanf and although it does pick up keystrokes as it
should, scanf also causes all other tasks to block.
I've also tried getchar() with similar results. ie It doesn't just
block the task that made the call, it also blocks all other tasks.
Thanks in advance,
Tom
_____________________________________
Connecting CCS5 debug console to a CLI in the 67xx simulator?
Started by ●April 13, 2012
Reply by ●April 13, 20122012-04-13
Tom,
For a suggestion..
You could open a serial device for non-blocking.
Here is a trivial example.
const char *device = "/dev/ttyS0";
fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY);
if(fd == -1) {
printf( "failed to open port\n" );
}
R. Williams
---------- Original Message -----------
From: "Tom"
To: c...
Sent: Thu, 12 Apr 2012 21:41:15 -0000
Subject: [c6x] Connecting CCS5 debug console to a CLI in the 67xx simulator?
> Hi All,
> My application runs on a 6748 and offers a text-based cli via one of
> the 6748 serial ports.
>
> I'm running this application in the CCS5 67xx cycle-accurate simulator.
>
> What I want is to exercise/debug my CLI through the debugger console.
>
> I've tried using scanf and although it does pick up keystrokes as it
> should, scanf also causes all other tasks to block.
>
> I've also tried getchar() with similar results. ie It doesn't just
> block the task that made the call, it also blocks all other tasks.
>
> Thanks in advance,
> Tom
------- End of Original Message -------
_____________________________________
For a suggestion..
You could open a serial device for non-blocking.
Here is a trivial example.
const char *device = "/dev/ttyS0";
fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY);
if(fd == -1) {
printf( "failed to open port\n" );
}
R. Williams
---------- Original Message -----------
From: "Tom"
To: c...
Sent: Thu, 12 Apr 2012 21:41:15 -0000
Subject: [c6x] Connecting CCS5 debug console to a CLI in the 67xx simulator?
> Hi All,
> My application runs on a 6748 and offers a text-based cli via one of
> the 6748 serial ports.
>
> I'm running this application in the CCS5 67xx cycle-accurate simulator.
>
> What I want is to exercise/debug my CLI through the debugger console.
>
> I've tried using scanf and although it does pick up keystrokes as it
> should, scanf also causes all other tasks to block.
>
> I've also tried getchar() with similar results. ie It doesn't just
> block the task that made the call, it also blocks all other tasks.
>
> Thanks in advance,
> Tom
------- End of Original Message -------
_____________________________________