AnsweredAssumed Answered

uart not work after enable icache and dcache

Question asked by yang chaolin on Feb 18, 2016
Latest reply on Feb 19, 2016 by alexander.yakovlev

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();

Outcomes