Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C54x | combine existing cmd-files

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

combine existing cmd-files - Author Unknown - Jan 30 12:50:00 2001

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) : o=00000h l=00080h /* Reserved */
DARAM (RWIX) : o=00080h l=03f80h /* On-Chip Dual-Access RAM */
EXT0 (R) : o=04000h l=0bf80h /* External Page 0 */
VECS (RWIX) : o=0ff80h l=00080h /* Interrupt Vector Table */

PAGE 1: /* Data Space */
MMRS (RW) : o=00000h l=00060h /* Memory-Mapped Registers */
SPAD (RW) : o=00060h l=00020h /* Scratch-Pad RAM */
DARAM (RWIX) : o=00080h l=03f80h /* On-Chip Dual-Access RAM */
EXT0 (R) : o=04000h l=0c000h /* 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


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )