uart not work after enable icache and dcache

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

uart not work after enable icache and dcache

887件の閲覧回数
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 件の賞賛
返信
1 返信

813件の閲覧回数
alexander_yakov
NXP Employee
NXP Employee

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

0 件の賞賛
返信