This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
First of all I like to thank Ki soo Lee and the guys in the C/C++ forum for all there efforts in helping me get off the ground using my 5535ezdsp emulator board. I like to tell the community that I am a student at wpi in boston and I'm uisng an older computer running Vista on a Dell Vostro 2510 with 4G ram 2.0 Dual Core processor 2.0 GHz 32 bit operating system which meets the requirement for both CCS4 and CCS5.Before I like to begin by saying that both CCS4 and CCS5 are running on my system. Now I run both examples of blink led and hello world on ccs4 and I get no problems with the builder linker or debugger and i can run it to my xds100 emulator with the dsp 5535 blink the leds and allowed to prinf hello world with out a memory problem. Here is the problem while i was trying to port the Led program over to CCSv5 I start to get memory and library issues( IFyou like you can read it in my threads on blinking the lights for ez5535dsp) So to determing if it was a system issue my pc I set up a simple Printf ("hello world\n "); on CCSv5 When I build the project the linker complains that I am using to much memory for my simple printf function but when i use a put function the problem goes away. in addition i set up a hello world project in CCSv5 using the DSP6067 processor and I got no error when I built the project.(Please try it your self) I have sent this example over to the folks on C/C++ forum and they are telling me that my PC is simply running out of memory. Simply how could this be if it runs with no problem in CCS4 but when you try to build in CCSv5 you get the memory error on the printf function but not using a put function. We have to understand that this is the most simple program you can write in C and Do we really need to ask this question is there something wrong when you set up a simple hello world dsp5535 project that the builder and linker are off somethings wrong guys it should not be this difficult all i want to do is verify my platform works on CCS5 so I can be supported and start development on my project here at school. Your efforts in responding to this post is greatly appreciated.
Regards,
JEFF
It is not your PC running out of memory, it is the C5535 eZdsp. This board contains a TMS320C5535, which has 64KB DARAM and 256KB SARAM on-chip, which is more than enough for a "hello, world" program. Your post at http://e2e.ti.com/support/development_tools/compiler/f/343/t/298792.aspx shows an error message that indicates your linker command file is restricting the program code (.text) to DARAM1, which is defined to be of size 0x2000. This is much smaller than actual DARAM. I asked you to produce and post the linker map file so that I could see the memory areas defined by your linker command file so that I could advise how to adjust it. Please produce and post the linker map file to that thread.
I do not know what has changed for C5500 between CCS4 and CCS5 to have changed your linker command file. That is a question you should probably ask on the CCS forum, but they will also want to see either the linker command file or the linker map file.
Yes, we should strive to make projects seamlessly portable from older CCS versions, and to make building the simplest of programs simpler.
****************************************************************************** TMS320C55x Linker PC v4.4.1 ****************************************************************************** >> Linked Sun Oct 27 17:16:51 2013 OUTPUT FILE NAME: <Hello_C5535_2.out> ENTRY POINT SYMBOL: "_c_int00" address: 00003f3b MEMORY CONFIGURATION name origin length used unused attr fill (bytes) (bytes) (bytes) (bytes) ---------------------- -------- --------- -------- -------- ---- -------- MMR 00000000 000000c0 00000000 000000c0 RWIX DARAM0 000000c0 00001f40 000009c0 00001580 RWIX DARAM1 00002000 00002000 00000000 00002000 RWIX DARAM2 00004000 00002000 00000000 00002000 RWIX DARAM3 00006000 00002000 00000000 00002000 RWIX DARAM4 00008000 00002000 00000400 00001c00 RWIX DARAM5 0000a000 00002000 000004d4 00001b2c RWIX DARAM6 0000c000 00002000 00000000 00002000 RWIX DARAM7 0000e000 00002000 00000000 00002000 RWIX SARAM0 00010000 00002000 00000000 00002000 RWIX SARAM1 00012000 00002000 00000000 00002000 RWIX SARAM2 00014000 00002000 00000000 00002000 RWIX SARAM3 00016000 00002000 00000000 00002000 RWIX SARAM4 00018000 00002000 00000000 00002000 RWIX SARAM5 0001a000 00002000 00000000 00002000 RWIX SARAM6 0001c000 00002000 00000000 00002000 RWIX SARAM7 0001e000 00002000 00000000 00002000 RWIX SARAM8 00020000 00002000 00000000 00002000 RWIX SARAM9 00022000 00002000 00000000 00002000 RWIX SARAM10 00024000 00002000 00000000 00002000 RWIX SARAM11 00026000 00002000 00000000 00002000 RWIX SARAM12 00028000 00002000 00000000 00002000 RWIX SARAM13 0002a000 00002000 00000000 00002000 RWIX SARAM14 0002c000 00002000 00000000 00002000 RWIX SARAM15 0002e000 00002000 00000000 00002000 RWIX SARAM16 00030000 00002000 00000000 00002000 RWIX SARAM17 00032000 00002000 00000000 00002000 RWIX SARAM18 00034000 00002000 00000000 00002000 RWIX SARAM19 00036000 00002000 00000000 00002000 RWIX SARAM20 00038000 00002000 00000000 00002000 RWIX SARAM21 0003a000 00002000 00000000 00002000 RWIX SARAM22 0003c000 00002000 00000000 00002000 RWIX SARAM23 0003e000 00002000 00000000 00002000 RWIX SARAM24 00040000 00002000 00000000 00002000 RWIX SARAM25 00042000 00002000 00000000 00002000 RWIX SARAM26 00044000 00002000 00000000 00002000 RWIX SARAM27 00046000 00002000 00000000 00002000 RWIX SARAM28 00048000 00002000 00000000 00002000 RWIX SARAM29 0004a000 00002000 00000000 00002000 RWIX SARAM30 0004c000 00002000 00000000 00002000 RWIX SARAM31 0004e000 00002000 00000000 00002000 RWIX ROM 00fe0000 0001ff00 00000000 0001ff00 RWIX VECS 00ffff00 00000100 00000100 00000000 RWIX SECTION ALLOCATION MAP (Addresses surrounded by []'s are displayed for convenience only!) output attributes/ section page orgn(bytes) orgn(words) len(bytes) len(words) input sections -------- ---- ----------- ----------- ---------- ---------- -------------- .text 0 00000000 [ 00000000 ] 00004071 * FAILED TO ALLOCATE .const 0 [ 000000c0 ] 00000060 * 0000014c [ 000000c0 ] 00000060 * 00000101 rts55x.lib : ctype.obj (.const:__ctypes_) [ 000002c2 ] 00000161 * 00000001 --HOLE-- [fill = 0] [ 000002c4 ] 00000162 * 00000024 : _printfi.obj (.const:.string) [ 0000030c ] 00000186 * 0000000e hello.obj (.const:.string) [ 00000328 ] 00000194 * 0000000c rts55x.lib : _printfi.obj (.const) [ 00000340 ] 000001a0 * 00000008 : divd.obj (.const:_initial_approx$1) [ 00000350 ] 000001a8 * 00000002 : fputs.obj (.const:.string) [ 00000354 ] 000001aa * 00000002 : fltlid.obj (.const) .cio 0 [ 00000358 ] 000001ac * 00000120 UNINITIALIZED [ 00000358 ] 000001ac * 00000120 rts55x.lib : trgmsg.obj (.cio) .stack 0 [ 00000598 ] 000002cc * 00000100 UNINITIALIZED [ 00000598 ] 000002cc * 00000100 --HOLE-- .sysstack * 0 [ 00000798 ] 000003cc * 00000100 UNINITIALIZED [ 00000798 ] 000003cc * 00000100 --HOLE-- .cinit 0 [ 00000998 ] 000004cc * 00000074 [ 00000998 ] 000004cc * 0000002d rts55x.lib : lowlev.obj (.cinit) [ 000009f2 ] 000004f9 * 0000002a : defs.obj (.cinit) [ 00000a46 ] 00000523 * 0000000a : _lock.obj (.cinit) [ 00000a5a ] 0000052d * 0000000a : exit.obj (.cinit) [ 00000a6e ] 00000537 * 00000004 : fopen.obj (.cinit) [ 00000a76 ] 0000053b * 00000004 : memory.obj (.cinit) [ 00000a7e ] 0000053f * 00000001 --HOLE-- [fill = 0] .sysmem 0 [ 00008000 ] 00004000 * 00000200 UNINITIALIZED [ 00008000 ] 00004000 * 00000200 --HOLE-- .data 0 [ 00008000 ] 00004000 * 00000000 UNINITIALIZED .bss 0 [ 0000a000 ] 00005000 * 0000026a UNINITIALIZED [ 0000a000 ] 00005000 * 00000119 rts55x.lib : defs.obj (.bss) [ 0000a232 ] 00005119 * 000000d0 : trgdrv.obj (.bss) [ 0000a3d2 ] 000051e9 * 00000001 : fopen.obj (.bss) [ 0000a3d4 ] 000051ea * 00000071 : lowlev.obj (.bss) [ 0000a4b6 ] 0000525b * 00000001 --HOLE-- [ 0000a4b8 ] 0000525c * 00000006 : memory.obj (.bss) [ 0000a4c4 ] 00005262 * 00000004 : _lock.obj (.bss) [ 0000a4cc ] 00005266 * 00000004 : exit.obj (.bss) vectors 0 00ffff00 [ 007fff80 ] 00000100 * NOLOAD SECTION 00ffff00 [ 007fff80 ] 00000100 * rts55x.lib : vectors.obj (vectors) GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name abs. value/ byte addr word addr name --------- --------- ---- 00000002 $TI_capability$C5500$CallingConvention 00000002 $TI_capability$C5500$MemoryModel 00000001 $TI_capability_requires_rev3 00005000 .bss 00004000 .data 00000000 .text 00004069 C$$EXIT 0000379a C$$IO$$ 00004029 I$$LMPY 00003f99 I$$UDIV 00003fae I$$UMOD 00001fb1 _HOSTclock 00001f46 _HOSTclose 00001e91 _HOSTlseek 00001df2 _HOSTopen 00001d65 _HOSTread 00001cb7 _HOSTrename 00001c59 _HOSTtime 00001bef _HOSTunlink 00001b62 _HOSTwrite 00ffff00 _Reset 000001ac __CIOBUF_ 000003cc __STACK_END 00000200 __STACK_SIZE 00000400 __SYSMEM_SIZE 00000200 __SYSSTACK_SIZE 00000001 __TI_args_main ffffffff ___binit__ 00005000 ___bss__ ffffffff ___c_args__ 000004cc ___cinit__ 00004000 ___data__ 00004000 ___edata__ 0000526a ___end__ 00004071 ___etext__ 00003fe6 ___isinf ffffffff ___pinit__ 00000000 ___text__ 00002d6d __addd 00003de0 __args_main 000029b1 __cleanup 00005266 __cleanup_ptr 00003159 __cmpd 00000060 __ctypes_ 000024c4 __divd 00003e76 __divli 00002d38 __divlli 00003f99 __divu 00003845 __divul 00002c44 __divull 00003623 __doflush 00005268 __dtors_ptr 00003125 __eqld 00003f6f __fixdi 00003b39 __fixdli 00003c80 __fltlid 000039de __frcmpyd 00003a54 __frcmpyd_div 00005118 __ft_end 00005000 __ftable 000030db __geqd 00003090 __gtrd 00003043 __leqd 00005262 __lock 00002ffb __lssd 00003314 __mpyd 00004029 __mpyli 00002b8c __mpylli 0000404e __negd 00002fc7 __neqd 0000404c __nop 00001362 __printfi 000035c6 __rd_ok 00004044 __register_lock 0000403c __register_unlock 00003e2b __remli 00002b5d __remlli 00003fae __remu 00003ac7 __remul 00002b0f __remull 000002cc __stack 00004015 __subd 00004000 __sys_memory 000003cc __sysstack 00005078 __tmpnams 00005264 __unlock 00003546 __wrt_ok 00004068 _abort 000019f7 _add_device 00003ce7 _atoi 00003d93 _auto_init 00003f3b _c_int00 0000249e _calloc 00002496 _chkheap 00001984 _close 00003efd _exit 00003963 _fclose 0000368c _fflush 0000197b _find_registered_device 00002ad4 _fopen 0000379f _fputc 000031b1 _fputs 0000200f _free 00002440 _free_memory 00002a0b _freopen 00003c15 _fseek 00001ae7 _getenv 00001915 _lseek 000038e6 _ltoa 00004000 _main 00002140 _malloc 000023e6 _max_free 00003fc3 _memccpy 00003ebe _memcpy 000020db _minit 00001856 _open 00003d43 _printf 0000379f _putc 00003836 _putchar 000032e6 _puts 000017a8 _read 00003ba8 _readmsg 00002235 _realloc 0000405e _remove 00001772 _remove_device 00001719 _rename 00003460 _setvbuf 000016e6 _unlink 000015a4 _write 000036e5 _writemsg ffffffff binit 000004cc cinit 00004000 edata 0000526a end 00004071 etext ffffffff pinit GLOBAL SYMBOLS: SORTED BY Symbol Address abs. value/ byte addr word addr name --------- --------- ---- 00000000 .text 00000000 ___text__ 00000001 $TI_capability_requires_rev3 00000001 __TI_args_main 00000002 $TI_capability$C5500$CallingConvention 00000002 $TI_capability$C5500$MemoryModel 00000060 __ctypes_ 00000200 __STACK_SIZE 00000200 __SYSSTACK_SIZE 000001ac __CIOBUF_ 00000400 __SYSMEM_SIZE 000002cc __stack 000003cc __STACK_END 000003cc __sysstack 000004cc ___cinit__ 000004cc cinit 00001362 __printfi 000015a4 _write 000016e6 _unlink 00001719 _rename 00001772 _remove_device 000017a8 _read 00001856 _open 00001915 _lseek 0000197b _find_registered_device 00001984 _close 000019f7 _add_device 00001ae7 _getenv 00001b62 _HOSTwrite 00001bef _HOSTunlink 00001c59 _HOSTtime 00001cb7 _HOSTrename 00001d65 _HOSTread 00001df2 _HOSTopen 00001e91 _HOSTlseek 00001f46 _HOSTclose 00001fb1 _HOSTclock 0000200f _free 000020db _minit 00002140 _malloc 00002235 _realloc 000023e6 _max_free 00002440 _free_memory 00002496 _chkheap 0000249e _calloc 000024c4 __divd 000029b1 __cleanup 00002a0b _freopen 00002ad4 _fopen 00002b0f __remull 00002b5d __remlli 00002b8c __mpylli 00002c44 __divull 00002d38 __divlli 00002d6d __addd 00002fc7 __neqd 00002ffb __lssd 00003043 __leqd 00003090 __gtrd 000030db __geqd 00003125 __eqld 00003159 __cmpd 000031b1 _fputs 000032e6 _puts 00003314 __mpyd 00003460 _setvbuf 00003546 __wrt_ok 000035c6 __rd_ok 00003623 __doflush 0000368c _fflush 000036e5 _writemsg 0000379a C$$IO$$ 0000379f _fputc 0000379f _putc 00003836 _putchar 00003845 __divul 000038e6 _ltoa 00003963 _fclose 000039de __frcmpyd 00003a54 __frcmpyd_div 00003ac7 __remul 00003b39 __fixdli 00003ba8 _readmsg 00003c15 _fseek 00003c80 __fltlid 00003ce7 _atoi 00003d43 _printf 00003d93 _auto_init 00003de0 __args_main 00003e2b __remli 00003e76 __divli 00003ebe _memcpy 00003efd _exit 00003f3b _c_int00 00003f6f __fixdi 00003f99 I$$UDIV 00003f99 __divu 00003fae I$$UMOD 00003fae __remu 00003fc3 _memccpy 00003fe6 ___isinf 00004000 _main 00004015 __subd 00004029 I$$LMPY 00004029 __mpyli 0000403c __register_unlock 00004044 __register_lock 0000404c __nop 0000404e __negd 0000405e _remove 00004068 _abort 00004069 C$$EXIT 00004071 ___etext__ 00004071 etext 00004000 .data 00004000 ___data__ 00004000 ___edata__ 00004000 __sys_memory 00004000 edata 00005000 .bss 00005000 ___bss__ 00005000 __ftable 00005078 __tmpnams 00005118 __ft_end 00005262 __lock 00005264 __unlock 00005266 __cleanup_ptr 00005268 __dtors_ptr 0000526a ___end__ 0000526a end 00ffff00 _Reset ffffffff ___binit__ ffffffff ___c_args__ ffffffff ___pinit__ ffffffff binit ffffffff pinit [136 symbols]
Your linker map file shows tons of unused DARAM and SARAM sliced up into smaller sections. Go into your linker command file and find the line which allocates .text. Change it to use the split operator (">>") to distribute your .text section among multiple DARAM sections, like so:
.text >> DARAM0 | DARAM1 | DARAM2 | DARAM3 | DARAM4 | DARAM5 | DARAM6 | DARAM7
From the linker command file, I can see that you are using large model, which is good.
****************************************************************************** TMS320C55x Linker PC v4.4.1 ****************************************************************************** >> Linked Mon Oct 28 16:46:21 2013 OUTPUT FILE NAME: <Hello_C5535_2.out> ENTRY POINT SYMBOL: "_c_int00" address: 00003f3b MEMORY CONFIGURATION name origin length used unused attr fill (bytes) (bytes) (bytes) (bytes) ---------------------- -------- --------- -------- -------- ---- -------- MMR 00000000 000000c0 00000000 000000c0 RWIX DARAM0 000000c0 00001f40 000009c0 00001580 RWIX DARAM1 00002000 00002000 00000000 00002000 RWIX DARAM2 00004000 00002000 00000000 00002000 RWIX DARAM3 00006000 00002000 00000000 00002000 RWIX DARAM4 00008000 00002000 00000400 00001c00 RWIX DARAM5 0000a000 00002000 000004d4 00001b2c RWIX DARAM6 0000c000 00002000 00000000 00002000 RWIX DARAM7 0000e000 00002000 00000000 00002000 RWIX SARAM0 00010000 00002000 00000000 00002000 RWIX SARAM1 00012000 00002000 00000000 00002000 RWIX SARAM2 00014000 00002000 00000000 00002000 RWIX SARAM3 00016000 00002000 00000000 00002000 RWIX SARAM4 00018000 00002000 00000000 00002000 RWIX SARAM5 0001a000 00002000 00000000 00002000 RWIX SARAM6 0001c000 00002000 00000000 00002000 RWIX SARAM7 0001e000 00002000 00000000 00002000 RWIX SARAM8 00020000 00002000 00000000 00002000 RWIX SARAM9 00022000 00002000 00000000 00002000 RWIX SARAM10 00024000 00002000 00000000 00002000 RWIX SARAM11 00026000 00002000 00000000 00002000 RWIX SARAM12 00028000 00002000 00000000 00002000 RWIX SARAM13 0002a000 00002000 00000000 00002000 RWIX SARAM14 0002c000 00002000 00000000 00002000 RWIX SARAM15 0002e000 00002000 00000000 00002000 RWIX SARAM16 00030000 00002000 00000000 00002000 RWIX SARAM17 00032000 00002000 00000000 00002000 RWIX SARAM18 00034000 00002000 00000000 00002000 RWIX SARAM19 00036000 00002000 00000000 00002000 RWIX SARAM20 00038000 00002000 00000000 00002000 RWIX SARAM21 0003a000 00002000 00000000 00002000 RWIX SARAM22 0003c000 00002000 00000000 00002000 RWIX SARAM23 0003e000 00002000 00000000 00002000 RWIX SARAM24 00040000 00002000 00000000 00002000 RWIX SARAM25 00042000 00002000 00000000 00002000 RWIX SARAM26 00044000 00002000 00000000 00002000 RWIX SARAM27 00046000 00002000 00000000 00002000 RWIX SARAM28 00048000 00002000 00000000 00002000 RWIX SARAM29 0004a000 00002000 00000000 00002000 RWIX SARAM30 0004c000 00002000 00000000 00002000 RWIX SARAM31 0004e000 00002000 00000000 00002000 RWIX ROM 00fe0000 0001ff00 00000000 0001ff00 RWIX VECS 00ffff00 00000100 00000100 00000000 RWIX SECTION ALLOCATION MAP (Addresses surrounded by []'s are displayed for convenience only!) output attributes/ section page orgn(bytes) orgn(words) len(bytes) len(words) input sections -------- ---- ----------- ----------- ---------- ---------- -------------- .text 0 00000000 [ 00000000 ] 00004071 * FAILED TO ALLOCATE .const 0 [ 000000c0 ] 00000060 * 0000014c [ 000000c0 ] 00000060 * 00000101 rts55x.lib : ctype.obj (.const:__ctypes_) [ 000002c2 ] 00000161 * 00000001 --HOLE-- [fill = 0] [ 000002c4 ] 00000162 * 00000024 : _printfi.obj (.const:.string) [ 0000030c ] 00000186 * 0000000e hello.obj (.const:.string) [ 00000328 ] 00000194 * 0000000c rts55x.lib : _printfi.obj (.const) [ 00000340 ] 000001a0 * 00000008 : divd.obj (.const:_initial_approx$1) [ 00000350 ] 000001a8 * 00000002 : fputs.obj (.const:.string) [ 00000354 ] 000001aa * 00000002 : fltlid.obj (.const) .cio 0 [ 00000358 ] 000001ac * 00000120 UNINITIALIZED [ 00000358 ] 000001ac * 00000120 rts55x.lib : trgmsg.obj (.cio) .stack 0 [ 00000598 ] 000002cc * 00000100 UNINITIALIZED [ 00000598 ] 000002cc * 00000100 --HOLE-- .sysstack * 0 [ 00000798 ] 000003cc * 00000100 UNINITIALIZED [ 00000798 ] 000003cc * 00000100 --HOLE-- .cinit 0 [ 00000998 ] 000004cc * 00000074 [ 00000998 ] 000004cc * 0000002d rts55x.lib : lowlev.obj (.cinit) [ 000009f2 ] 000004f9 * 0000002a : defs.obj (.cinit) [ 00000a46 ] 00000523 * 0000000a : _lock.obj (.cinit) [ 00000a5a ] 0000052d * 0000000a : exit.obj (.cinit) [ 00000a6e ] 00000537 * 00000004 : fopen.obj (.cinit) [ 00000a76 ] 0000053b * 00000004 : memory.obj (.cinit) [ 00000a7e ] 0000053f * 00000001 --HOLE-- [fill = 0] .sysmem 0 [ 00008000 ] 00004000 * 00000200 UNINITIALIZED [ 00008000 ] 00004000 * 00000200 --HOLE-- .data 0 [ 00008000 ] 00004000 * 00000000 UNINITIALIZED .bss 0 [ 0000a000 ] 00005000 * 0000026a UNINITIALIZED [ 0000a000 ] 00005000 * 00000119 rts55x.lib : defs.obj (.bss) [ 0000a232 ] 00005119 * 000000d0 : trgdrv.obj (.bss) [ 0000a3d2 ] 000051e9 * 00000001 : fopen.obj (.bss) [ 0000a3d4 ] 000051ea * 00000071 : lowlev.obj (.bss) [ 0000a4b6 ] 0000525b * 00000001 --HOLE-- [ 0000a4b8 ] 0000525c * 00000006 : memory.obj (.bss) [ 0000a4c4 ] 00005262 * 00000004 : _lock.obj (.bss) [ 0000a4cc ] 00005266 * 00000004 : exit.obj (.bss) vectors 0 00ffff00 [ 007fff80 ] 00000100 * NOLOAD SECTION 00ffff00 [ 007fff80 ] 00000100 * rts55x.lib : vectors.obj (vectors) GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name abs. value/ byte addr word addr name --------- --------- ---- 00000002 $TI_capability$C5500$CallingConvention 00000002 $TI_capability$C5500$MemoryModel 00000001 $TI_capability_requires_rev3 00005000 .bss 00004000 .data 00000000 .text 00004069 C$$EXIT 0000379a C$$IO$$ 00004029 I$$LMPY 00003f99 I$$UDIV 00003fae I$$UMOD 00001fb1 _HOSTclock 00001f46 _HOSTclose 00001e91 _HOSTlseek 00001df2 _HOSTopen 00001d65 _HOSTread 00001cb7 _HOSTrename 00001c59 _HOSTtime 00001bef _HOSTunlink 00001b62 _HOSTwrite 00ffff00 _Reset 000001ac __CIOBUF_ 000003cc __STACK_END 00000200 __STACK_SIZE 00000400 __SYSMEM_SIZE 00000200 __SYSSTACK_SIZE 00000001 __TI_args_main ffffffff ___binit__ 00005000 ___bss__ ffffffff ___c_args__ 000004cc ___cinit__ 00004000 ___data__ 00004000 ___edata__ 0000526a ___end__ 00004071 ___etext__ 00003fe6 ___isinf ffffffff ___pinit__ 00000000 ___text__ 00002d6d __addd 00003de0 __args_main 000029b1 __cleanup 00005266 __cleanup_ptr 00003159 __cmpd 00000060 __ctypes_ 000024c4 __divd 00003e76 __divli 00002d38 __divlli 00003f99 __divu 00003845 __divul 00002c44 __divull 00003623 __doflush 00005268 __dtors_ptr 00003125 __eqld 00003f6f __fixdi 00003b39 __fixdli 00003c80 __fltlid 000039de __frcmpyd 00003a54 __frcmpyd_div 00005118 __ft_end 00005000 __ftable 000030db __geqd 00003090 __gtrd 00003043 __leqd 00005262 __lock 00002ffb __lssd 00003314 __mpyd 00004029 __mpyli 00002b8c __mpylli 0000404e __negd 00002fc7 __neqd 0000404c __nop 00001362 __printfi 000035c6 __rd_ok 00004044 __register_lock 0000403c __register_unlock 00003e2b __remli 00002b5d __remlli 00003fae __remu 00003ac7 __remul 00002b0f __remull 000002cc __stack 00004015 __subd 00004000 __sys_memory 000003cc __sysstack 00005078 __tmpnams 00005264 __unlock 00003546 __wrt_ok 00004068 _abort 000019f7 _add_device 00003ce7 _atoi 00003d93 _auto_init 00003f3b _c_int00 0000249e _calloc 00002496 _chkheap 00001984 _close 00003efd _exit 00003963 _fclose 0000368c _fflush 0000197b _find_registered_device 00002ad4 _fopen 0000379f _fputc 000031b1 _fputs 0000200f _free 00002440 _free_memory 00002a0b _freopen 00003c15 _fseek 00001ae7 _getenv 00001915 _lseek 000038e6 _ltoa 00004000 _main 00002140 _malloc 000023e6 _max_free 00003fc3 _memccpy 00003ebe _memcpy 000020db _minit 00001856 _open 00003d43 _printf 0000379f _putc 00003836 _putchar 000032e6 _puts 000017a8 _read 00003ba8 _readmsg 00002235 _realloc 0000405e _remove 00001772 _remove_device 00001719 _rename 00003460 _setvbuf 000016e6 _unlink 000015a4 _write 000036e5 _writemsg ffffffff binit 000004cc cinit 00004000 edata 0000526a end 00004071 etext ffffffff pinit GLOBAL SYMBOLS: SORTED BY Symbol Address abs. value/ byte addr word addr name --------- --------- ---- 00000000 .text 00000000 ___text__ 00000001 $TI_capability_requires_rev3 00000001 __TI_args_main 00000002 $TI_capability$C5500$CallingConvention 00000002 $TI_capability$C5500$MemoryModel 00000060 __ctypes_ 00000200 __STACK_SIZE 00000200 __SYSSTACK_SIZE 000001ac __CIOBUF_ 00000400 __SYSMEM_SIZE 000002cc __stack 000003cc __STACK_END 000003cc __sysstack 000004cc ___cinit__ 000004cc cinit 00001362 __printfi 000015a4 _write 000016e6 _unlink 00001719 _rename 00001772 _remove_device 000017a8 _read 00001856 _open 00001915 _lseek 0000197b _find_registered_device 00001984 _close 000019f7 _add_device 00001ae7 _getenv 00001b62 _HOSTwrite 00001bef _HOSTunlink 00001c59 _HOSTtime 00001cb7 _HOSTrename 00001d65 _HOSTread 00001df2 _HOSTopen 00001e91 _HOSTlseek 00001f46 _HOSTclose 00001fb1 _HOSTclock 0000200f _free 000020db _minit 00002140 _malloc 00002235 _realloc 000023e6 _max_free 00002440 _free_memory 00002496 _chkheap 0000249e _calloc 000024c4 __divd 000029b1 __cleanup 00002a0b _freopen 00002ad4 _fopen 00002b0f __remull 00002b5d __remlli 00002b8c __mpylli 00002c44 __divull 00002d38 __divlli 00002d6d __addd 00002fc7 __neqd 00002ffb __lssd 00003043 __leqd 00003090 __gtrd 000030db __geqd 00003125 __eqld 00003159 __cmpd 000031b1 _fputs 000032e6 _puts 00003314 __mpyd 00003460 _setvbuf 00003546 __wrt_ok 000035c6 __rd_ok 00003623 __doflush 0000368c _fflush 000036e5 _writemsg 0000379a C$$IO$$ 0000379f _fputc 0000379f _putc 00003836 _putchar 00003845 __divul 000038e6 _ltoa 00003963 _fclose 000039de __frcmpyd 00003a54 __frcmpyd_div 00003ac7 __remul 00003b39 __fixdli 00003ba8 _readmsg 00003c15 _fseek 00003c80 __fltlid 00003ce7 _atoi 00003d43 _printf 00003d93 _auto_init 00003de0 __args_main 00003e2b __remli 00003e76 __divli 00003ebe _memcpy 00003efd _exit 00003f3b _c_int00 00003f6f __fixdi 00003f99 I$$UDIV 00003f99 __divu 00003fae I$$UMOD 00003fae __remu 00003fc3 _memccpy 00003fe6 ___isinf 00004000 _main 00004015 __subd 00004029 I$$LMPY 00004029 __mpyli 0000403c __register_unlock 00004044 __register_lock 0000404c __nop 0000404e __negd 0000405e _remove 00004068 _abort 00004069 C$$EXIT 00004071 ___etext__ 00004071 etext 00004000 .data 00004000 ___data__ 00004000 ___edata__ 00004000 __sys_memory 00004000 edata 00005000 .bss 00005000 ___bss__ 00005000 __ftable 00005078 __tmpnams 00005118 __ft_end 00005262 __lock 00005264 __unlock 00005266 __cleanup_ptr 00005268 __dtors_ptr 0000526a ___end__ 0000526a end 00ffff00 _Reset ffffffff ___binit__ ffffffff ___c_args__ ffffffff ___pinit__ ffffffff binit ffffffff pinit [136 symbols]
I found the .text section of the map file in the project but its did not work. When you said the linker command file you meant the map file of the project. I added the .text >> DARAM0 .... |..... but I get the following message when I went back to the map file there was only .text there and the other parts were not there like they were over written Any ideas Thanks in advance.
JEFF
**** Build of configuration Debug for project Hello_C5535_2 ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../hello.c'
'Invoking: C5500 Compiler'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5535 --display_error_number --diag_warning=225 --ptrdiff_size=16 --preproc_with_compile --preproc_dependency="hello.pp" "../hello.c"
'Finished building: ../hello.c'
' '
'Building target: Hello_C5535_2.out'
'Invoking: C5500 Linker'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --define=c5535 --display_error_number --diag_warning=225 --ptrdiff_size=16 -z -m"Hello_C5535_2.map" --stack_size=0x200 --heap_size=0x400 -i"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/lib" -i"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --reread_libs --display_error_number --warn_sections --xml_link_info="Hello_C5535_2_linkInfo.xml" --mapfile_contents=--mapfile_contents=sections,nosymbols --rom_model --sys_stacksize=0x200 -o "Hello_C5535_2.out" "./hello.obj" "../C5535.cmd" -l"libc.a"
<Linking>
"../C5535.cmd", line 69: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section ".text" size
0x4071 page 0. Available memory ranges:
DARAM1 size: 0x2000 unused: 0x2000 max hole: 0x2000
warning #10260-D: unrecognized --mapfile_contents attribute:
--mapfile_contents=sections
warning #10260-D: unrecognized --mapfile_contents attribute: symbols
error #10010: errors encountered during linking; "Hello_C5535_2.out" not built
>> Compilation failure
gmake: *** [Hello_C5535_2.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Edit C5535.cmd and make the .text line look something like this ...
.text >> DARAM0 | DARAM1 | DARAM2 | DARAM3
Thanks and regards,
-George
George,
It work for all my printf function. thank you and archoligist for your help.... Just one question. When writing a program with printf function will i need to edit the cmd file all the time like you suggested so that i can print to the console and what other variable should i be concerned about when writing simple to medium c programs. thanks in advance
Regards,
JEFF