Reply by January 30, 20012001-01-30
hi,

i was trying to combine two example applications from the ccs1.21 for
the c54x. The first example uses RTDX to receive an array of integers
from the host. The second one uses the codec to transmit data between
the audio input and output. Both of the projects do not use any cdb-
files. My goal is to create one project through the combination of
the two example projects in order to process the received host data
and send it directly to the audio output. However, my program did not
work, because i could not combine the two original cmd-files to
create one cmd-file for my project. The two cmd-file are:

RTDX example

-c
-stack 0x0256
-heap 0x0256

/* This symbol defines the interrupt mask to be applied to IMR inside
RTDX Critical Code sections.

This example masks the timer interrupt.
*/
_RTDX_interrupt_mask = ~0x0008; /* interrupts masked by RTDX */

MEMORY
{
/* Note: Assume PMST = 0xffe0
PMST Bit Name Value
15-7 IPTR 0xff80
6 MP/!MC 1
5 OVLY 1
3 DROM 0
*/
PAGE 0: /* Program Space */
RSV1 (R) : o000h l080h /* Reserved */
DARAM (RWIX) : o080h lf80h /* On-Chip Dual-Access RAM */
EXT0 (R) : o000h lf80h /* External Page 0 */
VECS (RWIX) : of80h l080h /* Interrupt Vector Table */

PAGE 1: /* Data Space */
MMRS (RW) : o000h l060h /* Memory-Mapped Registers */
SPAD (RW) : o060h l020h /* Scratch-Pad RAM */
DARAM (RWIX) : o080h lf80h /* On-Chip Dual-Access RAM */
EXT0 (R) : o000h l000h /* External Page 0 */
}

SECTIONS
{
GROUP : > DARAM /* group sections in overlay for contiguous addresses
*/
{
.text /* User code */
.rtdx_text /* RTDX code */
.cinit /* initialization tables */
.pinit /* initialization functions */
.switch /* for C-switch tables */

.cio /* C-IO Buffer */
.bss /* global & static vars */
.rtdx_data /* RTDX data area */
.const /* C constant tables */

.sysmem : fill = 0DEADh /* dynamic heap */
.stack : fill = 0BEEFh /* system stack */
}

.intvecs : > VECS PAGE 0 /* interrupt vector table */

.data : > SPAD PAGE 1 /* asm data area */
} Codec example

MEMORY
{
PAGE 0: VECS: origin = 0080h, length = 0080h /* Internal Program RAM
*/
PRAM: origin = 7600h, length = 8000h /* Internal Program RAM */

PAGE 1: SCRATCH: origin = 0060h, length = 0020h /* Scratch Pad Data
RAM */
DMARAM: origin = 0C00h, length = 0300h /* DMA buffer */
DATA: origin = 1100h, length = 0080h /* Internal Data RAM */
STACK: origin = 1180h, length = 0560h /* Stack Memory Space */
INRAM: origin = 1900h, length = 0100h /* Internal Data RAM */
HPRAM0: origin = 1A00h, length = 0002h /* HPI memory accessible by
Host and DSP */
HPRAM1: origin = 1A02h, length = 0280h /* HPI memory accessible by
Host and DSP */
HPRAM2: origin = 1C82h, length = 0280h /* HPI memory accessible by
Host and DSP */
EXRAM: origin = 1F10h, length = 4000h /* External Data RAM */
}

/*********************************************************************
********/
/* DSP Memory Allocation */
/*********************************************************************
********/

SECTIONS
{
.cinit > PRAM PAGE 0
.text > PRAM PAGE 0
.vectors > VECS PAGE 0

init_var > PRAM PAGE 0
detect > PRAM PAGE 0
vrcprg > PRAM PAGE 0
matprg > PRAM PAGE 0

.stack > STACK PAGE 1
.trap > SCRATCH PAGE 1

.const > EXRAM PAGE 1
.data > EXRAM PAGE 1
.bss > EXRAM PAGE 1
.cio > EXRAM PAGE 1

.switch > EXRAM PAGE 1

tables > EXRAM PAGE 1
var > EXRAM PAGE 1
svctab > EXRAM PAGE 1 /* SS_V LSP table */
vctab > EXRAM PAGE 1 /* V LSP table */
uvctab > EXRAM PAGE 1 /* UV LSP table */
cuvtab > EXRAM PAGE 1 /* Stochastic codebook */
cdbktab > EXRAM PAGE 1 /* various codebook tables*/

logtab > EXRAM PAGE 1 /* table for log2 */
powtab > EXRAM PAGE 1 /* table for pow2 */
hamtab > EXRAM PAGE 1 /* table for hamming */
lgwtab > EXRAM PAGE 1 /* table for lag window */
acostab > EXRAM PAGE 1 /* table for arccos */
sqrtab > EXRAM PAGE 1 /* table for square root */
acbtab > EXRAM PAGE 1 /* table for thresholds in acb */
pm03tab > EXRAM PAGE 1 /* table for x^(-0.3) computation */
costab > EXRAM PAGE 1 /* table for cosine */

V23 > INRAM PAGE 1
FSK > INRAM PAGE 1

hpibuff0 > HPRAM0 PAGE 1
hpibuff1 > HPRAM1 PAGE 1
hpibuff2 > HPRAM2 PAGE 1
dma_buff > DMARAM PAGE 1
}

Any suggestions?

thanks, jim