| View previous topic :: View next topic |
| Author |
Message |
trysukanta
Joined: 29 Aug 2009 Posts: 22 Location: india
|
Posted: Tue Mar 15, 2011 4:46 am Post subject: Buffer is not playing |
|
|
While running the typical example as provided by the Innovative integration with AEcho.cpp modification, I could not see the output . the Program while running at the RTDX console, at the last stage buffer playing is stopping at 00 every time. It was supposed to stop at the keyboard hit.
I could able to run this exaple earlier as well as few hours ago.
Please suggest me what to do? _________________ Sukanta Das
West Bengal
India |
|
| Back to top |
|
 |
jhenderson Site Admin
Joined: 07 Mar 2006 Posts: 2254 Location: So. Cal. USA
|
Posted: Tue Mar 15, 2011 10:53 am Post subject: |
|
|
| Try power cycling all equipment, reloading and restarting. |
|
| Back to top |
|
 |
trysukanta
Joined: 29 Aug 2009 Posts: 22 Location: india
|
Posted: Sun Mar 20, 2011 10:50 pm Post subject: |
|
|
I tried these steps according to your suggestion. But still the problem persists.
I also tried the following step:
I have reloaded the software (CCSv_3.1) and hardware (SBC6713e).
Still the problem persist.
Is there any problem in RTDX console. Or can I reset buffer if it is somehow full. _________________ Sukanta Das
West Bengal
India |
|
| Back to top |
|
 |
jhenderson Site Admin
Joined: 07 Mar 2006 Posts: 2254 Location: So. Cal. USA
|
Posted: Mon Mar 21, 2011 1:59 pm Post subject: |
|
|
RTDXTerminal was last qualified using the toolchain listed at http://www.iidsp.com/forum/viewtopic.php?t=1091, in conjunction with our PCI-based Code Hammer JTAG debugger. Other versions of CCS, such as 3.1 (that you're using) or other vendor's JTAG hardware may not work.
If you cannot get the terminal emulator to function, remove the cio I/O calls and replace them with old-style printf messages, which are directed to the CCS output window. This will work on any version of CCS with any target. |
|
| Back to top |
|
 |
trysukanta
Joined: 29 Aug 2009 Posts: 22 Location: india
|
Posted: Mon Apr 18, 2011 3:28 am Post subject: |
|
|
what is the syntex for old-style 'printf' statement instead of 'cio'. Please show me an example for the following codes:
void IIMain()
{
IIString strIn;
int MaxChannels;
Loop.Resume();
volatile bool status;
float SampleRate;
falsezcd_initialize (1);
//
// Terminal I/O
cio << init;
cio.At(Point(25, 0));
cio << bold << "\7Echo Application\n\n" << normal << endl;
cio << "Loop Analog In to Analog Out on Module " << endl << endl;
//
// Set up module...
// ...Enter which module to use
Omnibus::ModuleType MT = PickModuleType();
LoadModule(Omnibus::mSite0, MT);
if (MT == Omnibus::mtA16D2)
MaxChannels = 1;
else
MaxChannels = std::min(AIn.Channels()->Channels(), AOut.Channels()->Channels());
cio << "Max # Channels for this hardware: " << MaxChannels << endl;
int Channels;
Channels = 0;
while (Channels == 0 || Channels > MaxChannels)
{
cio << "# of enabled channels: " << flush;
cio >> strIn;
cio << endl;
if (strIn == " ") // use default?
{
Channels = MaxChannels;
break;
}
Channels = std::atoi(strIn.c_str());
}
//
// ...Configure selected clock's properties
ConfigureClock(AIn.Clock());
// ...Get estimated sample rate if we can't read it from clock
if (ClockRateUIPtr(AIn.Clock()) != 0)
{
SampleRate = ClockRateUIPtr (AIn.Clock())->Rate();
}
else
{
cio << "Enter estimated sample rate (kHz): " << flush;
cio >> SampleRate;
cio << endl;
SampleRate *= 1000;
}
// ...Make sure output clock runs at same rate input clock
if (ClockRateUIPtr(AOut.Clock()) != 0)
{
ClockRateUIPtr(AOut.Clock())->Rate(SampleRate);
}
int EventsPerBuffer = std::min(SampleRate/BuffersPerSec, (float)500000.0);
int iRate = SampleRate;
cio << endl << "SampleRate " << iRate;
cio << endl << "Channels " << Channels;
cio << endl << "BuffersPerSec " << BuffersPerSec;
cio << endl << "EventsPerBuffer " << EventsPerBuffer;
cio << endl << endl;
// Enable all analog input and output channels
AIn.Channels()->EnableChannels(Channels);
// Size the stream buffers to signal at specified rate
AIn.Events(EventsPerBuffer);
AOut.Channels()->EnableChannels(Channels);
// Size the stream buffers to signal at specified rate
AOut.Events(EventsPerBuffer);
status = AOut.Open();
cio << "AOut open " << (status ? "ok" : "failed") << endl;
status = AIn.Open();
cio << "AIn open " << (status ? "ok" : "failed") << endl;
// echo input to output
cio << "\nEchoing A/D to D/A... at " << SampleRate << " Hz\n\n" << endl;
cio << noshowcursor << flush;
Loop.Start();
char Response;
cio << "Press any key to terminate..." << endl << flush;
while(!cio.KbdHit())
{
cio << "Playing buffer: " << Loop.Count() << cr;
Sleep(500);
}
cio >> Response;
Loop.Stop();
cio << showcursor << endl;
// Terminate streaming
status = AIn.Close();
cio << "AIn close " << (status ? "ok" : "failed") << endl;
status = AOut.Close();
cio << "AOut close " << (status ? "ok" : "failed") << endl;
falsezcd_terminte ();
cio << "\n\nProgram terminated." << endl;
cio.monitor();
} _________________ Sukanta Das
West Bengal
India |
|
| Back to top |
|
 |
jhenderson Site Admin
Joined: 07 Mar 2006 Posts: 2254 Location: So. Cal. USA
|
Posted: Mon Apr 18, 2011 4:30 am Post subject: |
|
|
| When using the standard C style printf and putc functions, all text is directed to the Code Composer output window. However, to the best of my knowledge, CCS does not support standard input functions such as scanf and getc. So, you must either read this information from a file or hardcode that data into the code or set a breakpoint in the code and edit the variable values using the debugger. |
|
| Back to top |
|
 |
trysukanta
Joined: 29 Aug 2009 Posts: 22 Location: india
|
Posted: Tue Mar 20, 2012 9:03 pm Post subject: Buffer playing stopped for each run of program at RTDX conso |
|
|
Dear,
I am privilleged to acknowledge your support time and again.
My problem with SBC6713e is as follows:
I am facing a strange problem. I have a simple program for reflecting input waveform at output in a modified AEcho.cpp file. After burning the program on sbc6713e (servo 16 as omnibus module 0), when it was run from RTDX consloe, the out put waveform is not displayed on the scope. The input was given to the corresponding pins of chico plus board and the output is also taken from corresponding pin of same board as is given in SBC6713e user's manual.
The status of the RTDX console is given in the attached file which indicates buffer playing is not being updated.
Six months ago I could run the same program and I could capture the waveform in SCOPE.
I have tried following steps as suggested by you:
1. power recycling all the equipments,
2. reloading all the sotware including CCS_3.1, SBC6713e board
The problem is strange to me as I have worked earlier successfully. please examine the attached file. The program is stopping as it is indicated in the file. As a result unable to view the output.
Sukanta _________________ Sukanta Das
West Bengal
India |
|
| Back to top |
|
 |
jhenderson Site Admin
Joined: 07 Mar 2006 Posts: 2254 Location: So. Cal. USA
|
Posted: Wed Mar 21, 2012 12:04 pm Post subject: |
|
|
| When burning an application into the ROM of the SBC, you must eliminate all calls to stdio or cio, since they rely on communications with the JTAG debugger for proper operation. However, you can still debug such an application, devoid of stdio and cio calls, by loading the COFF symbols only in the debugger, rather than loading the entire COFF image+symbols. This will allow you to diagnose problems with the ROM-based code. |
|
| Back to top |
|
 |
trysukanta
Joined: 29 Aug 2009 Posts: 22 Location: india
|
Posted: Fri Apr 27, 2012 1:51 am Post subject: simple program |
|
|
Hi Dear,
Can you provide me a simple input output program so that I can test it on C6713e?
Or How can I modify AEcho.cpp example to get output corresponding to a input. _________________ Sukanta Das
West Bengal
India |
|
| Back to top |
|
 |
jhenderson Site Admin
Joined: 07 Mar 2006 Posts: 2254 Location: So. Cal. USA
|
Posted: Fri Apr 27, 2012 5:34 am Post subject: |
|
|
| The supplied Servo example illustrates low-latency ADC capture/Processing/DAC output using an ISR. That is the only example available since we are no longer actively supporting the toolchain on the SBC6713. |
|
| Back to top |
|
 |
|