MPC560xB exceptions

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

MPC560xB exceptions

774件の閲覧回数
peterstrbek
Contributor I

Hello all,

want to configure the exception-vector-table in RAM starting at address 4000_1000 with an entry location every 0x10 bytes: 4000_1000, 4000_1010 ... 4000_10F0. To achieve this,

I initialize IVPR with 4000_0000 and IVOR0..15 with 0000_1000...0000_10F0 using the following code:

e_lisr0,   0
e_or2ir0,   0x4000
mtsprivpr, r0
e_lisr0,  0

e_or2i      r0,  0x1000

mtspr

ivor0, r0

When executing the last instruction, the program jumps to a different location. Can somebody help?

0 件の賞賛
返信
0 返答(返信)