Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
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 > _____________________________________ > /groups.php3 __________________________________ | |||
|