[U-Boot-Users] Enabling Cache in MPC5200

Detlev Zundel dzu at denx.de
Wed Sep 5 12:54:42 CEST 2007


Hi San,

> I am using a LITE5200 evaluation board, and am not able to enable the cache.
> The execution hangs in these calls.
> void EnableInstCache(void)
> {

[...]

> }
>
> void EnableDataCache(void)
> {

[...]

> }
> What could be the problem?

It might be one of our favourites, i.e. wrong ram initialization.
When enabling the caches, the CPU generates burst accesses for the
first time.  It is pretty common (on this mailing list) that not quite
correctly initialized RAM works for single beat but fails for bursts.
So my advice would be to check the RAM init.

Is is really a standard lite5200 board that you use?

Cheers
  Detlev

-- 
The best way to predict the future is to invent it.
                                           -- Alan Kay
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de




More information about the U-Boot mailing list