How to set the Interrupt table base address of MPC5775KN and S32R274

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

How to set the Interrupt table base address of MPC5775KN and S32R274

2,815件の閲覧回数
julieliu
Contributor I

hello,

I set INTC in hardware interrupt mode, the following is my memory map and implementation for platform S32R274

144864_144864.pngpastedImage_0.png

 

144865_144865.pngpastedImage_1.png

IntcVectorTableHw is the start addrss of interrupt vector table and all ISRs will be mapped into intctab, so the value is qual to 0x01003000.

 

Code above can actually work, but I want to know why I can not set intctab to another address, and exctab also seems can not be changed .

If I exchange them there will be a crash then.

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

2,117件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

I am not sure what you are trying to show us on these screens.

But you need to align the Exception Vector Table (IVPR) to align 64Kbyte boundary. In other words 0x10000 hex alignment.

pastedImage_0.png

And then align also ISR vector table section (external interrupt table):

at least to 2k:

pastedImage_2.png

Peter

0 件の賞賛
返信

2,117件の閲覧回数
julieliu
Contributor I

hello Peter,

I am sorry for not providing information clearly, my issue is I can not set the interrupt vector table base address to another address except 0x01003000, when changed to another address for example 0x01004000 ,a exception will  be generated.

So do you have any idea why this issue happen ?

Thank you.

0 件の賞賛
返信

2,117件の閲覧回数
alexvinchev
Contributor V

At first look, this is 4k (0x1000) aligned, not 64k (0x10000) aligned...

If it works with 0x01003000, you should try with 0x01013000...

0 件の賞賛
返信

2,117件の閲覧回数
julieliu
Contributor I

Hello , Peter:

Thanks for your response, I mean when I set intctal and exctab like below and when I trigger a interrupt use TRIGGER_INT() manually,there will be a exception.

But the interrupt will be generated normally when I use the following map.

so ,do you have any idea.

Last I want to correct you on IVPR, I think you use the wrong menual.

Thanks.

Br,

Julie.

0 件の賞賛
返信