DSPRelated.com
Forums

printf with C5402

Started by lionelcretin October 9, 2003
Hello,
I've problem with using puts, prinf and fprintf with CCS1.2.
It works correctly with the example program but not with my program.
I've included <stdio.h> and RTS.lib, heap size = 0x0400.
Is there any specifications with the .cmd file, external or internal
program or data?
Here is my cmd file.
Thanks MEMORY /* TMS320C5402 microprocessor mode
memory map */
{
PAGE 0 :
PROG: origin = 0x0080, length = 0x0080
/************* MEMOIRE pour STACK ******************/
PAGE 1:
DATA: origin = 0x0100, length = 0x0100
/***************************************************/
PAGE 2 :
DATA: origin = 0x0200, length = 0x0100
/**************************************************/
PAGE 3 :
DATA: origin = 0x0300, length = 0x0500
/**************************************************/
PAGE 4 :
DATA: origin = 0x0800, length = 0x1A00
/**************************************************/
PAGE 5 :
PROG: origin = 0x2200, length = 0x1D00
/**************************************************/
PAGE 6 :
PROG: origin = 0x4000, length = 0x7000
/**************************************************/
PAGE 7 :
PROG: origin = 0xB000, length = 0x4000
/**************************************************/
PAGE 8 :
DATA: origin = 0xF000, length = 0x1000
/**************************************************/
}

SECTIONS
{
vec : load = PROG PAGE 0 /*Vecteurs d'interruption*/
.stack : load = DATA PAGE 1 /*Systeme de pile*/
bank0 : load = DATA PAGE 2 /*data Monitor*/
bank1 : load = DATA PAGE 3
.cio : load = DATA PAGE 4
.data : load = DATA PAGE 4
.bss : load = DATA PAGE 4
oniveau : load = PROG PAGE 6
.cinit : load = PROG PAGE 7
.pinit : load = PROG PAGE 7
.text : load = PROG PAGE 7
.trcinit : load = PROG PAGE 7
.gblinit : load = PROG PAGE 7
.sysinit : load = PROG PAGE 7
.bios : load = PROG PAGE 7
.sysmem : load = DATA PAGE 8
.MEM$obj : load = DATA PAGE 8
.sysheap : load = DATA PAGE 8
.switch : load = DATA PAGE 8
.const : load = DATA PAGE 8
.far : load = DATA PAGE 8
}