Other Parts Discussed in Thread: EK-TM4C1294XL
Tool/software: TI-RTOS
I'm trying to build the uartecho example that was included with the CCS V7 (C:\TI_CCS\tirtos_tivac_2_16_01_14\packages\examples\source\uartecho), which includes a uartecho.c and corresponding .cfg files. I created a new empty CCS project, and added the two files into the project. I had to also add an include path for the compiler in the Properties-ARM Compiler, and add the board.h file to the project, to get past compile step (a how-to-build readme would have been helpful). However after compile, there is a linker error:
<Linking>
"configPkg/linker.cmd", line 166: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".resetVecs" size 0x3c , overlaps with ".intvecs", size 0x208 (page 0)
After some poking around the forums, I discovered the linker .map file:
MEMORY CONFIGURATION
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
FLASH 00000000 00100000 00012392 000edc6e R X
SRAM 20000000 00040000 00003c4b 0003c3b5 RW X
SEGMENT ALLOCATION MAP
run origin load origin length init length attrs members
---------- ----------- ---------- ----------- ----- -------
00000000 00000000 0000003c 0000003c r--
00000000 00000000 0000003c 0000003c r-- .resetVecs
00000000 00000000 00000208 00000208 r--
00000000 00000000 00000208 00000208 r-- .intvecs
00000208 00000208 00012190 00012190 r-x
00000208 00000208 0000f0b2 0000f0b2 r-x .text
0000f2bc 0000f2bc 00002f20 00002f20 r-- .const
000121e0 000121e0 000001b8 000001b8 r-- .cinit
20000000 20000000 00000360 00000000 rw-
20000000 20000000 00000360 00000000 rw- .vecs
20000400 20000400 000038ec 00000000 rw-
20000400 20000400 00002ecb 00000000 rw- .bss
200032cc 200032cc 00000720 00000000 rw- .data
200039ec 200039ec 00000300 00000000 rw- .stack
SECTION ALLOCATION MAP
output attributes/
section page origin length input sections
-------- ---- ---------- ---------- ----------------
.intvecs 0 00000000 00000208
00000000 00000208 tm4c129enczad_startup_ccs.obj (.intvecs)
.resetVecs
* 0 00000000 0000003c FAILED TO ALLOCATE
.text 0 00000208 0000f0b2
00000208 0000065c EK_TM4C129EXL.obj (.text)
00000864 00000004 usblib.lib : usbdma.obj (.text:DMAUSBStatus)
It looks like the .resetVecs has the same start addr as intVecs? Why is this and how should I fix it?
Thank you for your time and help.