DSPRelated.com
Forums

put and printf dont work.why?

Started by ahmadagha23 June 27, 2005
Dear friends
I am implementing the lab1 project from dsp application book
authored by "Naser Kehtarnavaz"
it is a simple 6711 dsk project but when I build and run it on c6711
dsk, nothing appear at output (stdout) window.do you know why? ( I
also add rts6701.lib and enable the run time autoinitialization).

the project .cmd .asm and .c files are as follow respectively:

cmd file:

MEMORY
{
vecs: o = 00000000h l = 00000200h
IRAM: o = 00000200h l =
0000FE00h
CE0: o = 80000000h l = 01000000h }

SECTIONS
{
"vectors" > vecs
.cinit > IRAM
.text > IRAM
.stack > IRAM
.bss > IRAM
.const > IRAM
.data > IRAM
.far > IRAM
.switch > IRAM
.sysmem > IRAM
.tables > IRAM
.cio > IRAM
.mydata > CE0
}

---------------------------------
--------------
asm file:

.sect ".mydata"
.short 0
.short 7
.short 10
.short 7
.short 0
.short -7
.short -10
.short -7
.short 0
.short 7

---------------------------------
-------------
c file:

#include <stdio.h>
void main()
{
int i;
short *point;
point= (short *) 0x80000000;
puts("volume example started\n");
printf("BEGIN\n");
puts("volume example started\n");
for(i=0;i<10;i++)
{
puts("volume example started\n");
printf("[%d] %d\n",i, point[i]);
}
printf("END\n");
}