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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

6,192 次查看
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 回复数

5,494 次查看
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 项奖励
回复

5,494 次查看
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 项奖励
回复

5,494 次查看
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 项奖励
回复

5,491 次查看
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 项奖励
回复