uart not work after enable icache and dcache

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uart not work after enable icache and dcache

413 Views
yangchaolin
Contributor I

I,m using MPC8315 and set immr WIMG to b0101. But uart got problem.

it work well before enable icache and dcache.

after enable icache and dcache,it not work.

I missed something?

valueu = MAKE_BATU( 0xe0000000, MAKE_BL( 1 * 1024 ), 1, 1 );//1M for IMMR

    valuel = MAKE_BATL( 0xe0000000, 0, 1, 0, 1, 2 ); //WIMG = b0101

  MOVE_TO_SPR( SPR_IBAT2U, valueu );
MOVE_TO_SPR( SPR_IBAT2L, valuel );
MOVE_TO_SPR( SPR_DBAT2U, valueu );

MOVE_TO_SPR( SPR_DBAT2L, valuel );

Enable_ICache();

Enable_DCache();

0 Kudos
1 Reply

339 Views
alexander_yakov
NXP Employee
NXP Employee

What is the exact (binary or hexadecimal) value you are writing to BATs?

0 Kudos