Jonathan- Is your 2nd printf() located in an ISR? What is the difference between what our code is doing when the 1st one is called, and the 2nd one? Jeff Brower DSP sw/hw engineer Signalogic #JONATHAN SANITO# wrote: > > Hi, > > I have traced my program. It turns out the one that creates my program jumps to funny location was this "printf" statement. It was my 2nd "printf" of the program. The 1st printf works perfectly, but the 2nd "printf" as I traced out it goes to undefined memory location after sometime. > > If anyone have suggestions please help me on this. > > Thanks n regards, > > Jonathan > > -----Original Message----- > From: #JONATHAN SANITO# > Sent: Wed 1/22/2003 12:47 PM > To: > Cc: > Subject: Program jump to funny location - Creating Linker Command File > > Hi, > > I am using TMS320C6000, C6711 DSK, with CCS v2.0 > > I am Writing a program that used some C library functions (fopen/fclose, etc) > > I've experienced my program just jump to a funny location with NOPs. Does anyone experienced it before? A friend (Rajeev) suggest the .cmd file to be changed. Is there any constraint when creating this .cmd file? I am not too sure how to create this .cmd file will makes the program run well, and not just jump to somewhere. Anyone could highlight? > > here is my .cmd file, took from one of the textbook I read. > > MEMORY > { > PMEM : origin = 0x00000000, len = 0x00010000 > EXT2 : origin = 0x02000000, len = 0x01000000 > EXT3 : origin = 0x03000000, len = 0x01000000 > DMEM : origin = 0x80000000, len = 0x00010000 > } > > SECTIONS > { > .vectors > PMEM > .text > PMEM > > .bss > DMEM > .cinit > DMEM > .const > DMEM > .far > EXT2 > .stack > DMEM > .cio > DMEM > .sysmem > DMEM > .mydata > EXT3 > } > > Thanks n regards, > > Jonathan > > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: > > To Post: > > To Leave: > > Archives: http://www.yahoogroups.com/group/code-comp > > More Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ |