DSPRelated.com
Forums

SBSRAM troubles

Started by Unknown January 4, 2000
Hi,

I'm trying to use SBSRAM on an EVM6701 board. When I run a COFF file,
linked into SBSRAM, it runs OK under Code Composer, but hangs when I
run using the evm6xldr.exe utility. I believe I am initializing my
EMIF correctly. Any ideas as to what might be wrong?

Tim




Did you reset the evm by running evm6xrst. In addition reset the EMIF
registers. In the worst case try printing out stuff to see where the code
is???

Regards

Jgadeesh P.S:

Disclaimer:

TI does not in any way endorse or approve of any of the statements
above. I am merely contributing my views. TI is in no way responsible for
the result or outcome of any of my suggestions.

On Tue, 4 Jan 2000 wrote:

> Hi,
>
> I'm trying to use SBSRAM on an EVM6701 board. When I run a COFF file,
> linked into SBSRAM, it runs OK under Code Composer, but hangs when I
> run using the evm6xldr.exe utility. I believe I am initializing my
> EMIF correctly. Any ideas as to what might be wrong?
>
> Tim >
>




Yup,

I run evm6xrst first. One of the first things I do in my C67x code is to
reset the EMIF registers. I'm wondering if the evm6xldr works correctly
for the C67x since the EMIF registers are set differently from the C62x.

Tim

At 03:48 PM 1/4/00 -0600, you wrote:
>
>Did you reset the evm by running evm6xrst. In addition reset the EMIF
>registers. In the worst case try printing out stuff to see where the code
>is???
>
>Regards
>
>Jgadeesh >P.S:
>
>Disclaimer:
>
>TI does not in any way endorse or approve of any of the statements
>above. I am merely contributing my views. TI is in no way responsible for
>the result or outcome of any of my suggestions.
>
>On Tue, 4 Jan 2000 wrote:
>
>> Hi,
>>
>> I'm trying to use SBSRAM on an EVM6701 board. When I run a COFF file,
>> linked into SBSRAM, it runs OK under Code Composer, but hangs when I
>> run using the evm6xldr.exe utility. I believe I am initializing my
>> EMIF correctly. Any ideas as to what might be wrong?
>>
>> Tim
>>
>>
>>
>> >>
>>
> >
>Want to send money instantly to anyone, anywhere, anytime?
>You can today at X.com - and we'll give you $20 to try it! Sign
>up today at X.com. It's quick, free, & there's no obligation!
>http://click.egroups.com/1/332/3/_/14737/_/947022665
>
>-- Check out your group's private Chat room
>-- http://www.egroups.com/ChatPage?listName&m=1
>




Hello,

You may be seeing something else.  Are you sure you are doing
an evm_init() call in your code to link in the reset vectors?   This
is a classic symptom of  this not being done (where it works in
CCS but not from the command loader).  In CCS, the PC is set
to the entry point (c_int00), but when you run from the command
loader HPI boot is done and execution begins at address 0.
I assume you are using MAP0 with SBSRAM.  If you don't have
a reset vector to c_int00, then your application won't work.

There is no difference between the C62x and C67x in this
area.

Brian

Tim Jones wrote:

Yup,

I run evm6xrst first.  One of the first things I do in my C67x code is to
reset the EMIF registers.  I'm wondering if the evm6xldr works correctly
for the C67x since the EMIF registers are set differently from the C62x.

Tim

At 03:48 PM 1/4/00 -0600, you wrote:
>
>Did you reset the evm by running evm6xrst. In addition reset the EMIF
>registers. In the worst case try printing out stuff to see where the code
>is???
>
>Regards
>
>Jgadeesh
>s...@ti.com
>
>P.S:
>
>Disclaimer:
>
>TI does not in any way endorse or approve of any of the statements
>above. I am merely contributing my views. TI is in no way responsible for
>the result or outcome of any of my suggestions.
>
>On Tue, 4 Jan 2000 t...@mathworks.com wrote:
>
>> Hi,
>>
>> I'm trying to use SBSRAM on an EVM6701 board.  When I run a COFF file,
>> linked into SBSRAM, it runs OK under Code Composer, but hangs when I
>> run using the evm6xldr.exe utility.  I believe I am initializing my
>> EMIF correctly.  Any ideas as to what might be wrong?
>>
>> Tim
>>
>>
>>
>>
>> Want to send money instantly to anyone, anywhere, anytime?
>> You can today at X.com - and we'll give you $20 to try it!  Sign
>> up today at X.com.  It's quick, free, & there's no obligation!
>> http://click.egroups.com/1/332/3/_/14737/_/947021910
>>
>> eGroups.com Home: http://www.egroups.com/group/c6x/
>> http://www.egroups.com - Simplifying group communications
>>
>>
>>
>
>
>
>Want to send money instantly to anyone, anywhere, anytime?
>You can today at X.com - and we'll give you $20 to try it!  Sign
>up today at X.com.  It's quick, free, & there's no obligation!
>http://click.egroups.com/1/332/3/_/14737/_/947022665
>
>-- Check out your group's private Chat room
>-- http://www.egroups.com/ChatPage?listName&m=1
>


Want to send money instantly to anyone, anywhere, anytime?
You can today at X.com - and we'll give you $20 to try it!  Sign
up today at X.com.  It's quick, free, & there's no obligation!
http://click.egroups.com/1/332/3/_/14737/_/947023241

-- Easily schedule meetings and events using the group calendar!
-- http://www.egroups.com/cal?listname&m=1




Thanks for the response Brian,

My reset vector does point to c_int00, and the first thing I do in main is to
reset the evm and set the emif registers. I verified (using Code Composer)
that the registers are being set. Is this what you mean by doing an evm_init()
call in my code to link in the reset vectors?

I am using Map 1 instead of Map 0. How will that make a difference? My reset
vector is placed at the beginning of internal program memory, so when using the
evm6xldr it is executed first which then jumps to c_int00. By the way, when I
link to SDRAM, it seems to work fine, it's just the SBSRAM that gives me the
trouble.

Tim

At 09:11 PM 1/4/00 -0600, you wrote:
>
> Hello,
>
> You may be seeing something else. Are you sure you are doing
> an evm_init() call in your code to link in the reset vectors? This
> is a classic symptom of this not being done (where it works in
> CCS but not from the command loader). In CCS, the PC is set
> to the entry point (c_int00), but when you run from the command
> loader HPI boot is done and execution begins at address 0.
> I assume you are using MAP0 with SBSRAM. If you don't have
> a reset vector to c_int00, then your application won't work.
>
> There is no difference between the C62x and C67x in this
> area.
>
> Brian
>
> Tim Jones wrote:
>>
>> Yup,
>>
>> I run evm6xrst first. One of the first things I do in my C67x code is to
>> reset the EMIF registers. I'm wondering if the evm6xldr works correctly
>> for the C67x since the EMIF registers are set differently from the C62x.
>>
>> Tim
>>
>> At 03:48 PM 1/4/00 -0600, you wrote:
>> >
>> >Did you reset the evm by running evm6xrst. In addition reset the EMIF
>> >registers. In the worst case try printing out stuff to see where the code
>> >is???
>> >
>> >Regards
>> >
>> >Jgadeesh
>> >
>> >
>> >P.S:
>> >
>> >Disclaimer:
>> >
>> >TI does not in any way endorse or approve of any of the statements
>> >above. I am merely contributing my views. TI is in no way responsible for
>> >the result or outcome of any of my suggestions.
>> >
>> >On Tue, 4 Jan 2000 wrote:
>> >
>> >> Hi,
>> >>
>> >> I'm trying to use SBSRAM on an EVM6701 board. When I run a COFF file,
>> >> linked into SBSRAM, it runs OK under Code Composer, but hangs when I
>> >> run using the evm6xldr.exe utility. I believe I am initializing my
>> >> EMIF correctly. Any ideas as to what might be wrong?
>> >>
>> >> Tim
>> >>
>> >>
>> >>
>> >> >> >>
>> >>
>> >>
>> >
>> >
>> >
>> >Want to send money instantly to anyone, anywhere, anytime?
>> >You can today at X.com - and we'll give you $20 to try it! Sign
>> >up today at X.com. It's quick, free, & there's no obligation!
>>
>> ><http://click.egrou" target="_blank" rel="nofollow">http://click.egroups.com/1/332/3/_/14737/_/947022665>http://click.egrou
>> ps.com/1/332/3/_/14737/_/947022665
>> >
>> >-- Check out your group's private Chat room
>> >--
>> <http://www.egroups.com/" target="_blank" rel="nofollow">http://www.egroups.com/ChatPage?listName&m=1>http://www.egroups.com/
>> ChatPage?listName&m=1
>> >
>>
>>
>> Want to send money instantly to anyone, anywhere, anytime?
>> You can today at X.com - and we'll give you $20 to try it! Sign
>> up today at X.com. It's quick, free, & there's no obligation!
>>
>> <http://click.egroup" target="_blank" rel="nofollow">http://click.egroups.com/1/332/3/_/14737/_/947023241>http://click.egroup
>> s.com/1/332/3/_/14737/_/947023241
>>
>> -- Easily schedule meetings and events using the group calendar!
>> --
>> <http://www.egroups.com/cal?l" target="_blank" rel="nofollow">http://www.egroups.com/cal?listname&m=1>http://www.egroups.com/cal?l
>> istname&m=1 > ----------
> eGroups.com Home:
> <http://www.egroups.com/group/c6x" target="_blank" rel="nofollow">http://www.egroups.com/group/c6x>http://www.egroups.com/group/c6x
> www.egroups.com - Simplifying group communications