Hi all,
I am porting a decoder into TMS320c6711( 6711) processor.i
would like to discuss some problem about memory configuration.
Case 1:
.text -> External RAM (origin : 80000000h,length : o700000h)
.stack-> Internal RAM (origin: 200h ,length : 0fd00h )
stack size = 10000h
"USE MEMORY MODEL" to "far aggregate Data(-ml0)" in build options
.text -> External RAM (origin : 80000000h,length : o700000h)
.stack-> Internal RAM (origin: 200h ,length : 0fd00h )
stack size = 10000h
"USE MEMORY MODEL" to "far aggregate Data(-ml0)" in build options
Working fine
Case 2:
.text -> External RAM (origin : 80000000h,length : o700000h)
.stack-> External RAM (origin : 80000000h,length : o700000h)
"USE MEMORY MODEL" to "far aggregate Data(-ml0)" in build options
stack size = 10000h
Working fine
Case 2:
.text -> External RAM (origin : 80000000h,length : o700000h)
.stack-> External RAM (origin : 80000000h,length : o700000h)
"USE MEMORY MODEL" to "far aggregate Data(-ml0)" in build options
stack size = 10000h
Working fine
Case 3:
.text -> Internal RAM (origin: 200h ,length :
0fd00h )
.stack-> Internal RAM (origin: 200h ,length : 0fd00h )
stack size = 10000h
.stack-> Internal RAM (origin: 200h ,length : 0fd00h )
stack size = 10000h
"USE MEMORY MODEL" to "far aggregate Data(-ml0)"
in build options
not running it is hanging ... some structure member is corrupted.,
not running it is hanging ... some structure member is corrupted.,
Question 1: is
there any special setting has to be done ?
so i throught that stack size is not sufficient .. so i kept some part of the code (text)
with in internal RAM and remains within external RAM .
like .....
-stack 0x2000
-heap 0x3A14C
-heap 0x3A14C
MEMORY
{
vecs: o = 00000000h l = 200h
IRAM: o = 00000200h l = 0000fde0h
CE0: o = 80000000h l = 07000000h
}
SECTIONS
{
.vectors > vecs
.cinit > CE0
.text > CE0
.stack > IRAM
.bss > CE0
.const > CE0
.far > CE0
.switch > CE0
.sysmem > CE0
.cio > CE0
.text_1 {
X.obj (.text)
} > IRAM
{
.vectors > vecs
.cinit > CE0
.text > CE0
.stack > IRAM
.bss > CE0
.const > CE0
.far > CE0
.switch > CE0
.sysmem > CE0
.cio > CE0
.text_1 {
X.obj (.text)
} > IRAM
i changed the "USE MEMORY MODEL" option "near calls"
in file specific options for x file.
(without changing this "USE MEMORY MODEL" i got build errors...)
(without changing this "USE MEMORY MODEL" i got build errors...)
then i got bulid errors ..."The 29-bit PC-relative
displacement 536802237 at this
location is too large to fit into the 21-bit PC-Relative field; the called function
is out of range from this call site. Consider using the '--trampolines'
linker option to generate trampolines to bridge the distance between far caller/callee pairs. "
location is too large to fit into the 21-bit PC-Relative field; the called function
is out of range from this call site. Consider using the '--trampolines'
linker option to generate trampolines to bridge the distance between far caller/callee pairs. "
Question 2:
what is "--trampolines" ?
can i place some part of code (text ..*.obj (.text) ) with in intrenal RAM ?
what i have to do to do this ?
Thanks ............................i am waiting
for ur reply...
Thanks &
Regards
Sandip Acharya







