/* Link template for TI Linker.  Tags are replaced by KMotion to create Link.cmd used in linking */

-q -c -x -e ___user_init
"C:\KMotionSrcKogna\C Programs\print.obj" 
"C:\KMotionSrcKogna\DSP_KOGNA\user_boot.obj"
--output_file="C:\KMotionSrcKogna\C Programs\print(1).out"
-m"C:\KMotionSrcKogna\C Programs\print.map"

-heap  0x100
-stack 0x100 
--diag_suppress=16002
--diag_suppress=10063
--cinit_compression=off
--ram_model // this eliminates the need for c initialization tables
"C:\KMotionSrcKogna\DSP_KOGNA\DSPKOGNA.sym"  /* include KFLOP Symbols */

MEMORY
{
	IRAM:     o = 0x11832780	l = 0x0000d880	/*  for FAST User C Programs use small leftover toward end of IRAM */                           
	USER_SA:  o = 0xc0080000	l = 0x00040000	/*  THREAD1 Starts at 0x80050000 */                        
}

SECTIONS
{
	GROUP
	{
		/* MUST PUT A NON ZERO WORD IN NORMAL FIRST WORD OF THREAD SPACE OR KFLOP WILL REFUSE TO RUN THREAD */
		.mytext: START(__start_.text), palign(8), fill = 0xAAAAAAAA {. += 4;}
		.text:  END(__stop_.text)
		.stack
		.bss: START( __start_.bss) END(__stop_.bss)
		.const: START( __start_.data)  
		.data: 
		.far 
		.fardata
		.switch 
		.cio
		.cinit: END(__stop_.data)
	}  >  USER_SA
	
	GROUP
	{
		.IRAM
		.IRAMP
		.IRAMD	
	}  >  IRAM
}                             


 



