DSPRelated.com
Forums

enabling program and data cache on Blackfin

Started by M B September 16, 2003
Hi
Does anyone have an example on how to work with putting both data and program on
the SDRAM and have the program/data cache enabled.
I am using the BF533 EZ-Kit Lite.

There is an example in the BF535 Examples for the cache, but doing similar on
533, does not seem to be working, my code just hangs up in la la land.

Any pointers, sample code would be a great help

Best Regards



hi,
Can i know the Bf533 silicon version
If it is 0.1 then u may face caching problems as it is
provided in the Errata sheet of blackfin.The errata is
as follows:

Vectoring to an instruction that is presently being
filled into the instruction cache may
cause erroneous behavior [05000095]:
Description:
In some very rare situations it is possible that if
you vector to the last 64 bits being fetched for
a cache line fill, a random instruction will be
executed. Vectoring can be in the form of jumps,
calls, or returns. Because there is only a small
timing window in which performing the above
operation will actually cause a problem, it may be
possible to run your code without the
workaround and never see the problem.
Workaround:
When instruction cache is enabled.
1) Code written in C or C++ must not be configured as
cacheable.
2) Code written in assembly must not perform any
jumps, calls, or returns that have a
destination within 32-bytes (same cache line), in any
code configured as cacheable.
Applies to revision(s):
ADSP-BF533-0.1

If u have a higher version of silicon then u can try
the attached code .

Regards,
Madhav

--- M B <> wrote:
> Hi
> Does anyone have an example on how to work with
> putting both data and program on the SDRAM and have
> the program/data cache enabled.
> I am using the BF533 EZ-Kit Lite.
>
> There is an example in the BF535 Examples for the
> cache, but doing similar on 533, does not seem to be
> working, my code just hangs up in la la land.
>
> Any pointers, sample code would be a great help
>
> Best Regards > _____________________________________
> 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: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://groups.yahoo.com/group/adsp
>
> Other Groups: http://www.dsprelated.com/groups.php3 > ">http://docs.yahoo.com/info/terms/


__________________________________

Attachment (not stored)
cache.zip
Type: application/x-zip-compressed