INT_SYS_InstallHandler

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

INT_SYS_InstallHandler

4,226 次查看
dearwww2000
Contributor I

example "wdg_pal_interrupt_s32k118" , there are two "INT_SYS_InstallHandler":

/* Install IRQ handlers for WDOG and SysTick interrupts */

INT_SYS_InstallHandler(WDOG_IRQn, wdg_pal_Handler, (isr_t *)0);

INT_SYS_InstallHandler(SysTick_IRQn, SysTick_Handler, (isr_t *)0);

 

But the project no "flash_vector_table " define.

If we need to define "flash_vector_table ", where we need put it ?

标签 (2)
标记 (1)
0 项奖励
回复
4 回复数

3,663 次查看
Lanson
Contributor I

i have put "flash_vector_table" where you describe,but it doesn't work,why?

0 项奖励
回复

4,034 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

by default is vector table copied from FLASH to RAM. This allows you to add new interrupt handler in runtime by INT_SYS_InstallHandler() function. 

When the vector table is only in the FLASH, you can't use INT_SYS_InstallHandler() SDK function. 

If you need only FLASH vector table - just define this symbol in preprocessor settings: 

pastedImage_1.png

Jiri

0 项奖励
回复

3,586 次查看
Lanson
Contributor I

i have put "flash_vector_table" where you describe,but it doesn't work,why?

0 项奖励
回复

4,034 次查看
dearwww2000
Contributor I

It is very nice of you! Thank you!

0 项奖励
回复