Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | enabling program and data cache on Blackfin

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

enabling program and data cache on Blackfin - M B - Sep 16 17:27:00 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





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: enabling program and data cache on Blackfin - madhav shanbhag - Sep 17 3:17:00 2003

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 > _____________________________________
> /groups.php3

__________________________________

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



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )